惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
U
Unit 42
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
小众软件
小众软件
V
Visual Studio Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 叶小钗
GbyAI
GbyAI
爱范儿
爱范儿
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
博客园_首页
D
Docker
A
About on SuperTechFans
G
Google Developers Blog
I
InfoQ
T
The Blog of Author Tim Ferriss
V
V2EX
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why CLI over MCP?
Marcelo · 2026-05-02 · via DEV Community

Everyone wants to make things agent-friendly now, so are MCPs better than CLIs?

When Claude Code started hitting limits, I began using Kimi (with OpenCode) alongside Claude. Only then, I realized the portability issue: I needed to set up MCP again on OpenCode, and again for Codex.

While MCPs are tied to the integration layer, CLIs are tied to the operating system. So if you build a CLI, you are betting on something much simpler, that the agent can run a shell command. 😁

A few days ago I asked my friend Marco why Struere, his agent management platform, had a CLI instead of an MCP. He said:

The problem with MCPs is that you add an extra tool to the agent, which by definition makes it work worse. A CLI is different. It uses the tool the agent already had, and you just give it context on how to use that tool.

When an agent already has a bunch of tools, adding one more means that the model now has one more thing to choose from, one more schema to understand, one more tiny decision before it gets to the actual work. You might think you are giving the agent more power, and sometimes you are, but you are also giving it more surface area to reason about. (And where to invest more tokens 😬)

Claude and most of the frontier models have gotten much better at MCP tools, and when the integration is good, it does feel nice because the output is structured. The model does not have to read a messy terminal response and guess what matters. I do not want to flatten the argument into "MCP bad, CLI good," because that is not what I believe.

I still think MCPs are useful when the model needs structured context inside the conversation. I just do not think MCP should be the automatic answer because the product is meant for agents. A good CLI covers a lot of the same use cases with less setup and less context overhead.

If I were building a dev tool today, I would start with the CLI. Then add the MCP.

In my case with Experiwall, that makes A/B testing easier for websites. We still shipped an MCP because some workflows work better when the agent can inspect experiments, variants, and results directly inside the conversation. But I've also added CLI support, so you don’t have to reconnect everything if a developer changes agents (as was my experience 😅).

But if I had to choose which interface gets used more a year from now, I would choose the CLI.