MCP、CLI、Skill 三者如何选择
决定一个 AI feature 该用 MCP server / CLI / Skills / LLM function calling, 不是技术品味问题, 是 token economics + audience + governance 三轴决策。
§0. 核心结论 (30 秒版本)
四种"让 LLM 调用工具"的方式, 不是替代关系, 是不同场景的最优解:
Token 排序: CLI < Skills < Function Calling < MCP。默认选小的, 只在场景必须时用大的。
§1. 2026 业内对 MCP 的真实 backlash
2026 年 3 月业内对 MCP 出现 backlash 的真实数据:
Public 抛弃 MCP 的 case (2026/3 同期爆发):
- Perplexity CTO (Denis Yarats): "We are moving away from MCP internally, going back to REST APIs and CLIs"
- Y Combinator CEO (Garry Tan): "MCP sucks honestly" — 引用 (a) 吃 context window 太多 (b) 认证 broken (c) "我 30 分钟写个 CLI wrapper 就替代了"
- Simon Willison (Python 社区核心 + Anthropic 顾问): "Skills might be a bigger deal than MCP"
MCP 不死, 但找到真 sweet spot: Tyk 原话 "MCP 不死, 只是退出 hype phase, 进入 enterprise actually ships with it 阶段"。真正用 MCP 赢的是 GitHub / Linear / Notion / Stripe — 把 MCP 作为 product 卖给企业客户的 SaaS。
§2. MCP 协议本质
3 个 capability primitives:
- Tools — LLM 可调用的 actions (
add_order_item,lookup_table_status) - Resources — LLM 可读的 read-only 数据 (
current_menu.json,tonight_reservations.json) - Prompts — 预设 task template (
generate weekly insights for franchise X)
MCP server 最小实现需要:
- JSON-RPC 2.0 endpoint (HTTP/SSE for remote, stdio for local)
- Tools 定义 (JSON Schema describing inputs/outputs)
- 业务执行逻辑 (可以调你的 REST API、直接调 DB、发 message queue、whatever)
- Auth: OAuth 2.1 (remote) 或 API key (local)
- 错误处理 + 限流
MCP server 部署模式:
- Local stdio: 用户机器跑 (Claude Desktop pattern), 适合 dev tools
- Remote HTTP/SSE: 你的云跑 (AWS Lambda / Cloudflare Workers / ECS), SaaS 通常这个
- MCP Gateway (2026 新类别): 多个 MCP server 前的反向代理, handle session 路由、auth、observability
Spec version: 当前 2025-11-25, 下一版 RC 2026-07-28。Production 必须用 remote HTTPS transport + OAuth 2.1/OIDC。
§3. 务实决策树
核心 framing: 个人 / 小团队 default CLI, enterprise multi-tenant default MCP, 中间地带 Skills。
§4. MCP server 真 sweet spot — 什么场景 CLI cover 不了
判断要点: 你的 AI feature 客户是不是"在他自己电脑上跑 LLM client"? 是 → MCP。否 → 多半不需要。
§5. 自建 MCP server 经济账
→ 结论: 你 SaaS 当前 0-2 个 AI integration → 不该自建 MCP server, 用 partner 提供的 MCP server。
§6. MCP 自建 vs Hosted Platform 4-Layer 生态 (2026)
三种拿到 MCP 能力的路径
路径 A — 用现成 MCP server (zero build cost)
适合: 工程团队想让 Claude 接 GitHub / Linear / Notion / Stripe / Slack 等 SaaS 数据。
Cost: $0 (open source) 或 $10-50/月 (Composio Pro hosted) Time: 半天 风险: 跟前面讲的 token 成本 / 52% abandoned 问题。只在 Q1/Q2 场景用。
路径 B — Hosted MCP Platform 帮你建
适合: 你想给客户提供 "他能用 ChatGPT/Claude 接你 SaaS" 能力, 但不想自己运维 MCP infra。
Cost: $500-$5,000/月 (取决 tenant 数 + traffic) Time: 2-4 周 默认推荐: TrueFoundry (full lifecycle, 给 multi-tenant SMB 客户最稳)
路径 C — 完全自建 MCP server
适合: 极特殊场景 (例如需要跟 internal 支付链路深度集成, hosted platform 拿不到 access)。
Cost: $25K-150K MVP + $500-25K/月 operational Time: 1-3 月 Team: 1 senior backend + 1 security + 1 SRE 适合何时: 几乎从来不应该选。Year 2+ 再说。
§7. 如果你真要建自己的 MCP server
v1 应该只暴露 read-heavy tools
Transport + Auth (production 必需)
- HTTPS (不能 stdio for production)
- OAuth 2.1 + PKCE + iss parameter validation per RFC 9207
- Streamable HTTP transport with
Mcp-Method+Mcp-Nameheaders (load balancers/gateways 用) - Session ID format:
<tenant_id>:<user_id>:<session_id> - W3C Trace Context propagation in
_meta(cross-SDK distributed tracing)
Production 必须 stateless
为 scalability, default stateless MCP server — 每个 request carry all necessary context。stateful 只用于真的需要 session resource 的场景。
§8. 给特定公司怎么用
Internal dev workflow (case Q1)
工程团队用 Claude Code + 现成 CLI (gh / aws / dotnet / mongosh / docker)。写几个 Anthropic Skill 教 Claude 怎么用这些 CLI 在公司 specific scenario 下。0 backend 改动, PM 1 周写完几个 skill。
→ 详细 tutorial 见 build-cli-with-skills-2026.md
客户在 dashboard 内用 AI (case Q3)
LLM function calling 直接调 internal REST API。不需要 MCP, 不需要 CLI。
客户想用 ChatGPT 接你 SaaS (case Q2)
4 个 signal 出现任一才考虑:
- 客户主动问 "我能不能在 ChatGPT 里连你 SaaS?"
- 客户的 AI agent 想接入 (e.g. 老板自己买了 Cursor)
- 大 enterprise 客户要求 "用我们公司 AI assistant 集成"
- 你自己要做 MCP marketplace (像 Linear / Stripe)
→ 详细 hosted vs build 决策见 mcp-platforms-vs-build-yourself.md
§9. Sources
MCP 官方
- MCP Specification 2025-11-25
- MCP Authorization Spec (OAuth 2.1 based)
- MCP 2026 Roadmap
- MCP 2026-07-28 Release Candidate
2026 业内 debate
- MCP is Dead; Long Live MCP! (Charles Chen, 2026/3)
- Is MCP dead in 2026? — Tyk
- MCP Is Being Abandoned (DEV)
- 52% of MCP Servers Are Dead — Rapid Claw
- MCP vs CLI Arize AI eval
- Skills vs MCP Token Efficiency War
MCP vs REST API
- What is an MCP Server? 2026 Architecture Guide (Truto)
- MCP vs REST API (WorkOS)
- Azure expose REST as MCP server
Hosted MCP platforms
- Composio — 500+ pre-built integrations
- TrueFoundry MCP Gateway
- Glama Registry — 26K+ MCP servers
- Best MCP Deployment Platforms 2026 (Prefect)