Model Context Protocol (MCP)

adapterJSON-RPC call
IDE agentChat hostCLI agentCustom hostGitHubPostgresFilesystemMCPToolsResourcesPromptsM + N = 7 adapters
  1. Bespoke connectors: M × N = 12 integrations.
  2. MCP: one JSON-RPC protocol, M + N = 7 adapters.
  3. Server primitives: Tools, Resources, Prompts.
  4. Any host invokes any server via tools/call.
Notes & references

Use when

Tools must be portable across hosts.

Avoid

Eagerly loading every server schema: pair with tool search or Code Mode.

# what can this server do?
-> { method: "tools/list" }
<- { tools: [{ name: "query_sql", ... }] }

# use one of its tools
-> { method: "tools/call",
     params: { name: "query_sql", arguments: { sql } } }
<- { content: [{ type: "text", text: "42 rows" }] }