WeChat Official Accounts-Tools per MCP mit Ihrem Agenten verbinden
OrcaRouter stellt jedes Katalog-Tool über einen MCP-Server bereit. Ihr Agent findet WeChat Official Accounts-Tools mit orca_tools_discover, prüft eines mit orca_tools_inspect und ruft es mit orca_tools_run auf – abgerechnet pro Aufruf über Ihren OrcaRouter-API-Schlüssel.
API-Schlüssel holen
Ein Schlüssel gilt für alle Tools im Katalog; jeder Aufruf wird zum Preis auf seiner Seite abgerechnet.
API-Schlüssel holenGehosteten Server hinzufügen
Fügen Sie dies in die Konfiguration Ihres MCP-Clients ein und ersetzen Sie den Platzhalter durch Ihren Schlüssel. Der Server spricht streamfähiges HTTP, es muss also nichts installiert werden.
Gehosteter MCP-Server { "mcpServers": { "orcarouter": { "type": "http", "url": "https://api.orcarouter.ai/v1/tools/mcp", "headers": { "Authorization": "Bearer <ORCAROUTER_API_KEY>" } } } }Oder lokal ausführen
Lieber ein lokaler stdio-Server? Das Paket @orcarouter/mcp stellt dieselben Tools auf Ihrem Rechner bereit.
Lokaler MCP-Server { "mcpServers": { "orcarouter": { "command": "npx", "args": [ "-y", "@orcarouter/mcp" ], "env": { "ORCAROUTER_API_KEY": "<ORCAROUTER_API_KEY>", "ORCAROUTER_BASE_URL": "https://api.orcarouter.ai" } } } }Fragen Sie Ihren Agenten
Bitten Sie um etwas, das WeChat Official Accounts beantworten kann. Der Agent findet das passende Tool, prüft dessen Eingaben und führt es aus.
Lieber Function Calling?
GET /v1/tools/functions liefert jedes Katalog-Tool als OpenAI- oder Anthropic-Funktionsdefinition; ausführen mit POST /v1/tools/{id}/run.
Clients, die sich über MCP verbinden
- MastraConnect a Mastra agent to the OrcaRouter MCP server with MCPClient, so it can search the tool catalog and run what it finds.
- CrewAIGive a CrewAI agent the OrcaRouter tool catalog through MCPServerAdapter, so it can find and run tools while it works on a task.
- LlamaIndexLoad the OrcaRouter MCP server's tools with McpToolSpec and use them in a LlamaIndex FunctionAgent.
- Claude CodeAdd the OrcaRouter MCP server to Claude Code with one command; Claude can then search the tool catalog and run tools while it works.
- CursorRegister the OrcaRouter MCP server in Cursor's mcp.json so its agent can find and run catalog tools from chat.
