Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare Azure environments for new workloads—subscriptions, networking, identity, and landing zones
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/functions/templates/recipes/mcp/README.md
1# MCP (Model Context Protocol) Recipe23MCP tool endpoints for AI agent integration via the JSON-RPC 2.0 protocol.45## Template Selection67Resource filter: `mcp`8Discover templates via MCP or CDN manifest where `resource == "mcp"` and `language` matches user request.910## Protocol1112MCP uses the **JSON-RPC 2.0** protocol. Two template types with different transport support:1314- **Extension-based** (`mcp-server-remote-*`) supports both Streamable HTTP and SSE transports15- **Self-hosted** (`mcp-sdk-hosting-*`) — supports Streamable HTTP only1617See [MCP Specification](https://modelcontextprotocol.io/) for protocol details.1819## Troubleshooting2021### Transport Mismatch2223**Cause:** Client and server using different transports — SSE client gets `404`/`405`, HTTP client gets unexpected `text/event-stream`.24**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.2526### Missing App Settings After Deploy2728**Cause:** Required app settings not configured on the function app.29**Solution:** Ensure protected resource metadata settings are present. For C# self-hosted servers, verify `host.json` `arguments` points to the compiled DLL path.3031See [MCP extension trigger and bindings](https://learn.microsoft.com/azure/azure-functions/functions-bindings-mcp) for extension-based servers, [Self-hosted MCP servers](https://learn.microsoft.com/en-us/azure/azure-functions/self-hosted-mcp-servers) for self-hosted architecture, and [MCP tutorial troubleshooting](https://learn.microsoft.com/en-us/azure/azure-functions/functions-mcp-tutorial?tabs=self-hosted#troubleshooting) for self-hosted deployment issues.3233## Eval3435| Path | Description |36|------|-------------|37| [eval/summary.md](eval/summary.md) | Evaluation summary |38| [eval/python.md](eval/python.md) | Python evaluation results |39