MCP 与 CLI 在 AI Agent 工具集成中的对比分析
原标题:MCP vs CLI for AI Agents: A Comparative Analysis of Tool Integration Strategies for Autonomous Systems
AI 摘要
该论文对 AI Agent 的工具集成方式进行了比较分析,对比了 CLI(直接执行 shell 命令)与 MCP(Model Context Protocol,基于 JSON-RPC 的结构化工具访问协议)。研究从 14 个维度评估,结论是 CLI 在单用户本地场景下效率更高,而 MCP 在细粒度访问控制、凭证隔离、结构化审计和多租户治理方面具备 CLI 无法满足的能力;渐进式披露技术可消除 MCP 的上下文窗口开销。论文建议生产系统采用混合架构,并引用 NSA 指南、OWASP 标准及 BCG、Gartner 的经济模型作为依据。
正文节选
MCP vs CLI for AI Agents: A Comparative Analysis of Tool Integration Strategies for Autonomous Systems Abstract AI agents require interfaces to interact with external systems such as files, APIs, databases, and cloud services. Two competing paradigms have emerged: CLI (Command Line Interface), where agents execute shell commands directly, and MCP (Model Context Protocol), a structured JSON-RPC protocol providing governed, typed tool access. This paper presents a comparative analysis across 14 ev