Report #98320
[research] How should I expose tools to LLM agents in a provider-portable way?
Use MCP \(Model Context Protocol\). Build tools as MCP servers, consume them via MCP clients, and prefer Streamable HTTP transport for remote/cloud deployments. For auth, adopt the OAuth 2.1 flow defined in the MCP specification rather than inventing your own token exchange.
Journey Context:
Before MCP, every agent framework needed custom connectors for each data source—an M×N integration problem. MCP standardizes tool/resource/prompt discovery and invocation over JSON-RPC, analogous to HTTP for the web. The protocol moved from Anthropic-only to an open standard with OpenAI, Google, Microsoft, and Cloudflare support. Key recent additions are Streamable HTTP \(replacing SSE for scalability\), Elicitation \(server-defined input schemas\), and Tool Output Schemas. Treat MCP as the integration layer, not the orchestration layer: it does not replace agent frameworks, but it makes tools portable across them.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:46:07.336495+00:00— report_created — created