N×M hell · JSON-RPC stack · MCP vs REST · 4 vendor timeline · 6-step runbook · hard data
Пишете отдельные CRM-адаптеры под Claude, GPT и Gemini? N models × M tools integration nightmare — как до TCP/IP, когда каждая сеть говорила на своём языке. Anthropic open-sourced Model Context Protocol (MCP) в ноябре 2024, чтобы унифицировать discovery, selection и invocation tools. Гайд для Agent-разработчиков и tech leads: разбираем N×M problem и трёхслойную архитектуру MCP, сравниваем MCP vs REST, timeline adoption четырёх вендоров 2026 и экосистему 10 000+ Server, плюс 6-step MCP Server deployment runbook.
В 1970-х ARPAnet, Ethernet и packet radio требовали custom translation layers для связи. TCP/IP зафиксировал единый rule set; HTTP абстрагировал ещё сильнее — и web взорвался. До 2024 AI жил в том же хаосе: каждая модель, IDE и Agent framework подключали tools по-своему.
У LLM hard limits: training cutoff, нет live data, нет direct action. Fix — дать AI «руки» через Tool Use / Function Calling. Reality messier: ChatGPT Plugins, OpenAI Function Calling, Claude Tool Use, LangChain, CrewAI, Cursor — у каждого свой integration shape. Сменили model vendor — переписываете весь tool layer.
Enterprise CRM + AI: отдельные adapter layers под Claude, GPT, Gemini — три schema, три auth flow, три ops surface.
IDE AI assistants: file system, database, internal API access patterns различаются по продуктам, reuse между IDE невозможен.
Agent orchestration: tool definitions не портируются между LangChain и CrewAI; orchestration assets привязаны к framework, не к команде.
Vendor lock-in: integration logic сцеплена с конкретной model API shape; смена модели = rewrite tool layer.
Linear cost growth: N models × M external tools = N×M custom integrations; maintenance burden растёт со scale.
До USB-C зарядные порты множились бесконечно. MCP хочет быть USB-C для AI tool integration — устройству не важно, кто на другом конце; все говорят на одном языке.
Model Context Protocol (MCP) — open standard от Anthropic, релиз ноябрь 2024. Определяет unified communication между AI models (clients) и external tools/data (servers). Core idea: стандартизировать, как AI discovers и invokes tools.
Host-приложения — Claude Desktop, Cursor, VS Code — встраивают MCP Client, держа 1:1 session на каждый MCP Server. Client общается с Server через JSON-RPC 2.0. Server экспонирует Tools (actions), Resources (read-only data), Prompts (reusable templates) и коннектится к databases, APIs, file systems.
| Transport | Use case | Traits |
|---|---|---|
| STDIO | Local subprocess | Zero deps, fast startup, strong isolation |
| HTTP + SSE | Remote / cloud | Cross-network, horizontal scaling |
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "query_database",
"arguments": { "sql": "SELECT * FROM users LIMIT 10" }
},
"id": 1
}
Key RPC methods: tools/list — live tool catalog в runtime; resources/read — files или DB rows. В отличие от REST, Server может push messages обратно в Client.
| Dimension | Traditional REST API | MCP |
|---|---|---|
| Tool discovery | Dev читает docs, hard-code endpoints | Agent вызывает tools/list при старте — live catalog |
| Session state | Stateless; каждый request standalone | Persistent connection держит context для multi-step workflows |
| Self-description | API не говорит AI, что умеет | Каждый tool шипит JSON Schema с params и side effects |
| Direction | One-way request-response | Bidirectional: Server может запросить reasoning у LLM или user input |
| Integration scale | N×M custom integrations | Write one Server — любой MCP Client подключается |
REST API отвечает «можно ли вызвать». MCP отвечает «как AI discovers, selects и correctly invokes tools» — центральный вопрос Agent era.
Path работает в Cursor и Claude Desktop: сначала local STDIO validation, потом upgrade на HTTP+SSE для remote deploy. Цель — превратить single-model glue code в portable MCP asset.
Pick one atomic capability: начните с highest-frequency external dependency команды — internal ticket API, read-only Postgres query или GitHub PR status. Не делайте universal gateway в v1.
Scaffold с official SDK: MCP SDK под ваш язык (TypeScript, Python и т.д.), реализуйте tools/list и tools/call, JSON Schema + side effects на каждый tool.
Local STDIO integration: зарегистрируйте Server command в MCP config Cursor, restart, убедитесь что Agent discovers и calls tools. Три positive prompts на parameter pass-through и error handling.
Resources / Prompts (optional): read-only docs и schema snapshots через resources/read; repetitive multi-step prompts как prompts templates — меньше improvisation у Agent.
Lock down security: auth на Server layer (API Key / OAuth 2.0 в 2026 roadmap); secrets никогда в tool schema. Allowlists и audit logs на write ops.
Production deploy + observability: для 24/7 uptime или multi-client sharing — HTTP+SSE remote mode. Мониторьте tools/call latency, failure rate, session affinity; launchd на Mac hosts при необходимости.
Portability payoff: MCP Server задеплоен — любой compatible Client подключается. Cursor сегодня, Claude Desktop или VS Code завтра — tool layer не трогаете. Противоположность Function Calling adapters per model.
LLM capability пересёк Agent threshold в 2024 — fragmented tool calling стал болезненно виден. MCP пришёл с правильной абстракцией в правильный момент. Credibility Anthropic как AI safety lab, reference implementation в Claude и open-source adoption — snowball поехал быстро.
| Date | Milestone |
|---|---|
| November 2024 | Anthropic open-sources MCP specification |
| 2025 | Cursor, Zed, Continue и другие IDE — native support |
| Q1 2026 | OpenAI announces MCP adoption (January) |
| Q2 2026 | Google DeepMind CEO — Gemini MCP support (February) |
| Q2 2026 | Microsoft completes support; governance → Linux Foundation AAIF |
От private standard одной компании к industry public infrastructure — AAIF governance как IETF для internet protocols. MCP становится protocol owned by the whole industry. К 2026 экосистема насчитывает 10 000+ MCP Servers: каждый новый Server мгновенно доступен каждому MCP Client; каждый новый Client наследует все existing tools — тот же network effect, что HTTP использовал для web.
Google Agent-to-Agent (A2A) — communication между AI agents. Не конкуренты, а layers: MCP — model ↔ tool/data (vertical); A2A — agent ↔ agent (horizontal orchestration). Вместе — protocol stack agent internet.
MCP не finished. OAuth 2.0/2.1 standardized auth на 2026 roadmap; universal MCP server registry ещё нет (internet без DNS); SSE transport требует session affinity; ~1000 MCP Servers exposed и unauthorized, indirect prompt injection documented. Production deploy — enforce permissions на Server layer.
Для devs MCP Servers — write once, run everywhere. Swap LLM Claude → GPT → Gemini без touch tool layer. Industry surveys: enterprise AI integration costs падают на 38–55%; standardized interfaces снижают entry barrier стартапов ~62%, custom work у system integrators ~43%. Vertical-domain MCP Servers — wide open blue ocean.
tools/list pulls.HTTP не изобрёл browser, но без HTTP нет browser ecosystem. TCP/IP не изобрёл email, но без TCP/IP нет email. MCP не изобрёл AI Agent, но становится infrastructure, без которой Agent ecosystem невозможен. Через годы open-sourcing MCP Anthropic в ноябре 2024 может вспоминаться как HTTP moment AI era.
Laptop — ок для MCP Server POC, но проигрывает на lid-close sleep, missing macOS-native toolchains и long-running process supervision. Pure Linux VPS хорошо hostит remote HTTP+SSE, но Keychain, Xcode, Apple-ecosystem MCP tools — боль. Команды, которые treat multiple MCP Servers как always-on infrastructure — Agents compound tool-call value over weeks — нужен predictable uptime. VpsMesh Mac Mini M4 cloud rental упаковывает uptime, remote KVM и predictable monthly OpEx в production-grade hosting. Цены аренды Mac Mini M4, центр помощи, оформить заказ.
REST API — «можно ли вызвать»: dev читает docs, hard-code endpoints. MCP — «как AI discovers, selects, correctly invokes tools»: Agents fetch catalog via tools/list в runtime, каждый tool несёт JSON Schema self-description, stateful sessions и Server push built-in. N×M custom integrations схлопываются в write-once Server, many Clients.
MCP — vertical layer: model ↔ tools/data (databases, APIs, file systems). Google A2A (Agent-to-Agent) — horizontal: agent ↔ agent orchestration. Дополняют друг друга — agent internet protocol stack, как HTTP coexists с WebSocket и SMTP на разных layers.
Не всегда. Pure STDIO local Servers — на dev machine; remote HTTP+SSE — на Linux cloud. Когда toolchain завязан на macOS native APIs, Keychain, или Cursor agents + несколько Servers 24/7 без lid-close sleep — Mac Mini M4 monthly rental проще. One-month trial для валидации tools/call latency curves. Цены аренды Mac Mini M4, оформить заказ.