[claude] Set up MCP bridge for Qwen3 via Ollama (#1067) #1081

Merged
Rockachopa merged 1 commits from claude/issue-1067 into main 2026-03-23 15:09:12 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
498d3d7061 feat: add MCP bridge for Qwen3 via Ollama (#1067)
Some checks failed
Tests / lint (pull_request) Failing after 59s
Tests / test (pull_request) Has been skipped
Implements a lightweight MCP bridge that connects Qwen3 models in Ollama
directly to Timmy's tool ecosystem (Gitea, shell) via Ollama's native
/api/chat tool-calling API. This complements the existing Agno-based
MCP integration with a simpler, standalone path for direct tool calling.

- src/timmy/mcp_bridge.py: MCPBridge class with tool-call loop, Gitea
  tools (list/create/read issues), and shell execution via ShellHand
- tests/timmy/test_mcp_bridge.py: 24 unit tests covering tool schema
  conversion, bridge lifecycle, tool-call loop, error handling
- docs/mcp-setup.md: architecture, bridge option evaluation, setup guide
- config.py: mcp_bridge_timeout setting (60s default)

Fixes #1067

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 09:59:25 -04:00