The coding agent setup I trust is small on purpose
The #mcp tag on DEV has been loud this week, and a lot of it is no longer just about tokens. It is about trust. Atul Kumar's "Your AI Agent Trusted the Tool. The Tool Changed Overnight." is the post that stuck with me.
The #mcp tag on DEV has been loud this week, and a lot of it is no longer just about tokens. It is about trust.
Atul Kumar's "Your AI Agent Trusted the Tool. The Tool Changed Overnight." is the post that stuck with me. You approve a tool. It keeps the same name. The connection still works. Then the schema or the behavior behind that name is not what you approved. A familiar label is not an identity. That point is right, and it should change how we connect tools to coding agents.
I already wrote about the context side of this in Your coding agent doesn't need more MCP tools. It needs a map. That post is about why a lean tool list still fails if the agent spends the rest of the window grepping and opening files. This one is about why the same habits also make the setup easier to trust.
I work on Graphify, so I have a stake in this. The advice below still holds if you never touch our product.
Fewer tools means fewer contracts to watch
Every MCP tool you connect is a contract. The name, the description, the input shape, and what the tool is allowed to do. Atul's point is that this contract can move after you approve it. The simplest way I know to live with that is to keep the list short.
A long tool list does two things at once. It fills the context window on every turn, even for tools the agent never calls. And it gives you more surfaces that can change without you noticing. I would rather keep a short list I can actually reread when a server updates than a pile of tools I connected once and forgot.
If a task does not need a server, I do not leave that server connected just in case.
Keep access read only when the job is to understand code
Most of what I ask a coding agent to do first is understand a repo. Who calls this? What does this change touch? Where should I start reading? Those questions do not need write access.
So I keep the codebase tools read only. The agent can query the map and open files. It cannot merge, push, or rewrite the graph. If a tool later grows a new parameter that writes something, that should stand out, because the original grant was narrow.
This is the same instinct as not handing someone production write access so they can look around. Looking around should not require a write scope.
One map, pulled only when the task needs it
The other habit is to stop making the agent rediscover the repo with grep and a stack of file reads. I want one map of the codebase. I want the agent to read that map when the task actually needs structure, not as a giant prompt on every turn.
A map here is not a markdown file that goes stale. It is a queryable picture of functions, calls, imports, and the rest, served behind one MCP server. The schemas for that server still sit in context, so the server itself should stay small. The graph is fetched for the question, then it gets out of the way.
I already walked through why a map beats a pile of file reads in the earlier post, so I will not rerun that here. The trust angle is the part I care about today. One server is one contract to watch. A read only map cannot quietly grow into a tool that edits your repo. And because the agent only pulls from the map when the question needs it, you are not dumping the whole repo into the window to be safe.
How I point people at the hosted setup
If you want to try this on a GitHub repo without running a local server, the hosted setup is at app.graphify.com. The MCP endpoint is https://api.graphify.com/mcp, and it uses OAuth.
That is the version I point people to when they want the map in Claude Code or Cursor and they do not want another process on their machine.
If you do want the local CLI, uv tool install graphifyy is enough to start. This post is not about the install path, though. It is about the shape of the setup: fewer tools, read only access, and one map the agent reads when the work needs it.
What I would check on your own stack
Before you add another MCP server this week, I would ask three things:
- Does this task need this server on every turn, or can it stay disconnected until you need it?
- Can this tool stay read only?
- If the schema changed tomorrow, would you notice?
Atul is right that a tool name is not a promise. A smaller, narrower setup will not solve that by itself. It just leaves you with less to verify, and a clearer idea of what you actually approved.
If you have a lean MCP setup you actually trust for coding work, I would love to hear what you left out.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.