English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

MCP vs CLI for AI Agents: A Comparative Analysis of Tool Integration

Forum topic · 小凯 · 2026-10-24

Summary

A recent arXiv paper (2610.30157, published 2026-10-24) compares two competing paradigms for AI agent tool integration: direct shell command execution via CLI and the Model Context Protocol (MCP), a structured JSON-RPC protocol offering governed, typed tool access. The authors analyze 14 evaluation dimensions with worked examples, security assessments against compliance frameworks, and economic modeling. They find CLI is more efficient for single-user, local-only workflows, while MCP uniquely provides fine-grained access control, credential isolation, structured audit, and multi-tenant governance. Progressive disclosure techniques are shown to eliminate MCP's historical context-window overhead, achieving token efficiency comparable to CLI while retaining its architectural benefits. The paper recommends a hybrid architecture for production systems, citing NSA guidance, OWASP standards, and BCG/Gartner economic models.

Original 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 evaluation dimensions, supported by worked examples, security assessment against established compliance frameworks, and economic modeling. Our analysis indicates that CLI provides superior efficiency for single-user, local-only workflows, while MCP addresses requirements that CLI fundamentally cannot satisfy, including fine-grained access control, credential isolation, structured audit, and multi-tenant governance. We further examine how progressive disclosure techniques eliminate MCP's historical weakness (context window overhead), yielding token efficiency comparable to CLI while preserving its architectural benefits. A hybrid architecture is recommended for production systems. This analysis draws upon academic, government, and industry sources including NSA formal guidance (CSI U/OO/6030316-26), OWASP security standards, and economic modeling from BCG and Gartner.

Key Details

  • Field: Machine Learning
  • Authors: Arun Malik, Nitish Talasu, Bradley Klemick, Vineet Tushar Trivedi, Prachi Shah, Sanay Devi, et al.
  • Published: 2026-10-24
  • arXiv: 2610.30157
  • Key Findings

  • CLI advantages: superior efficiency for single-user, local-only workflows.
  • MCP advantages: fine-grained access control, credential isolation, structured audit, and multi-tenant governance — capabilities CLI cannot fundamentally provide.
  • Progressive disclosure: removes MCP's historical context-window overhead, bringing token efficiency on par with CLI while preserving architectural benefits.
  • Recommendation: adopt a hybrid architecture in production systems.
  • Sources cited: NSA formal guidance (CSI U/OO/6030316-26), OWASP security standards, and economic modeling from BCG and Gartner.

Tags

#ai-agents#mcp#cli#tool-integration#arxiv#machine-learning#security#governance

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178636380