Subchapter 21.125
references/services/functions/templates/recipes/mcp/README.mdMarkdown2 KBView on GitHub
MCP tool endpoints for AI agent integration via the JSON-RPC 2.0 protocol.
Resource filter: mcp
Discover templates via MCP or CDN manifest where resource == "mcp" and language matches user request.
MCP uses the JSON-RPC 2.0 protocol. Two template types with different transport support:
mcp-server-remote-*) supports both Streamable HTTP and SSE transportsmcp-sdk-hosting-*) — supports Streamable HTTP onlySee MCP Specification (opens in a new tab) for protocol details.
Cause: Client and server using different transports — SSE client gets 404/405, HTTP client gets unexpected text/event-stream.
Solution: Extension-based templates support both Streamable HTTP and SSE. Self-hosted templates support Streamable HTTP only. In VS Code mcp.json, set "type": "sse" or "type": "http" to match the server.
Cause: Required app settings not configured on the function app.
Solution: Ensure protected resource metadata settings are present. For C# self-hosted servers, verify host.json arguments points to the compiled DLL path.
See MCP extension trigger and bindings (opens in a new tab) for extension-based servers, Self-hosted MCP servers (opens in a new tab) for self-hosted architecture, and MCP tutorial troubleshooting (opens in a new tab) for self-hosted deployment issues.
| Path | Description |
|---|---|
| eval/summary.md | Evaluation summary |
| eval/python.md | Python evaluation results |