logoalt Hacker News

zingartoday at 11:48 AM4 repliesview on HN

Can you not just install/ restrict the available CLIs in the same way you do with MCPs?

Or what else am I missing about why MCP is more secure than a CLI?


Replies

rubslopestoday at 11:55 AM

MCP allows you to easily separate API requests from their access tokens, so that the LLM only has access to the requests part. Giving an LLM CLI access removes all boundaries, anything goes.

EDIT: to add an example: I have a personal claw agent that I only use CLI, I don't care. But I'm also building an agent inside a company product, and there we use MCP all the way.

show 1 reply
mrgarotoday at 1:22 PM

Another examole which is trivial with MCP but hard with cli binaries: blocking certain commands, such as write operations from the agent. With MCP your client can easily have a blocklist for commands, but with cli you would need to code custom logic for each cli separately.

show 3 replies
zaphirplanetoday at 12:19 PM

How do you ensure the cli can use the auth without knowing how to read it ? It’s potentially a bearer Token

wolttamtoday at 12:27 PM

[dead]