關於這個工具
Go
Micro 是什麼 Go Micro 是一個 Go 微服務框架,主要用途是建置 Go 微服務,以及建置可透過 MCP(Model Context Protocol)和 A2A(Agent2Agent)閘道被 AI 呼叫的代理。
主要能力
- 服務即工具:可用 Go 撰寫服務,或從提示詞產生服務。
- MCP 閘道:每個服務端點都會透過 Model Context Protocol 自動成為可被 AI 呼叫的工具。
- A2A 閘道:每個代理都可透過 Agent2Agent 協定被存取,可被任何框架上的代理發現和呼叫。
- 代理執行框架(Agent Harness):每個代理都帶有模型、記憶、工具、計畫/委派、護欄和執行中介軟體。
適用對象 AI 代理開發者、Go 開發者和微服務開發者。
取得方式
Go Micro 是開源專案,採用免費模式,並提供公開 API。學習曲線為中等。
功能與使用情境
) # Agent has both document search AND service access all_tools = [rag_tool] + toolkit// Agent connects and discovers tools const ws = new WebSocket("ws://localhost:3000/mcp/ws", { headers: { "Authorization": "Bearer my-token" } })// Call a tool ws// List tools ws←Previous Next→ Last modified September 10, 2026: model: rename AI package and remove legacy data model (#4918) (8288b16be)🌐 MCP Gateway Every service endpoint is automatically an AI-callable tool via the Model Context Protocol🔧 Services as Tools Build services in Go or generate them from a prompt🤖 Agent Harness A model, memory, tools, plan/delegate, guardrails, and execution middleware around every agent🤝 A2A Gateway Every agent is reachable over the Agent2Agent protocol — discovered and called by agents on any framework0 protocol as stdio (initialize, tools/list, tools/call), so any MCP client that speaks WebSocket can connect0", id: 2, method: "tools/list" }))0", id: 3, method: "tools/call", params: { name: "users