Secure every MCP tool call with custody, scope, and an audit record.
MCP made it easy to connect agents to tools. It also made it easy to accumulate credentials, grant more access than a task needs, and lose track of which calls were made. Gradient puts credential custody, per-call scope, and a signed record under every MCP call, and treats each server as something that could be compromised, so that if one is, the damage stays contained.
"mcpServers": {
"github": {
"env": { "GITHUB_TOKEN": "ghp_••••" }
// no standing secret to paste, leak, or commit
}
}
}
MCP connects agents to tools. It does not decide who should be trusted.
The protocol’s success is also its security problem. In an afternoon, one engineer can hand an agent working access to your repos, your tickets, your wiki, and your database. Each new server is a new integration that never went through the review a new integration used to get.
And while the MCP spec’s authorization story is maturing, most real deployments today run on the oldest pattern in the book: a long-lived token pasted into a config file. That token is the entire security model. It works for anyone who has it, from anywhere, for everything it was ever granted, until someone remembers to rotate it. Multiply that by every server, every agent, and every laptop in the company.
Three ways MCP deployments go wrong, and how Gradient for Agents contains each one
Every config is a key store
Tokens for GitHub, databases, and SaaS accumulate in mcp.json files, env vars, and dotfiles, on laptops, in containers, sometimes in committed repos. Any one of them, stolen, works from anywhere.
Custody moves to the gateway
Target credentials never sit in agent or server configs. The gateway attaches authority per call. There is nothing in the agent’s config to steal, commit by accident, or forget to rotate.
One server, all the tools
An MCP server typically fronts an entire account’s worth of capability. Connect it, and every agent that can reach it inherits everything. The reconciliation agent gets the same reach as the deploy agent, because reach was never scoped to the task.
Scope is per agent, per task, per call
The owner defines what each agent may touch: which MCP servers it can reach, and within each server, which resources, a subset of repos, projects, or datasets. The gateway enforces that on every individual call. Two agents with two scopes see two different sets of resources behind the same server.
The server itself is in the supply chain
Community MCP servers are npm packages with credentials. A malicious or compromised server can misuse the token it holds, and anything a server returns can carry injected instructions for the agent that reads it.
A compromised server gets a scoped credential, not a master key
A hostile server sees only per-call, task-scoped authority, never a master key. Instructions smuggled into tool output cannot widen the agent’s scope or expose credentials it does not hold. The same controls that contain prompt injection apply to everything a server returns.
The same four controls, under every MCP call
Credential custody
Secrets come out of mcp.json and into the gateway. Agents and servers request actions; the gateway attaches per-call, platform-bound authority. Your MCP configs are no longer the most sensitive files on the laptop.
Per-call scope enforcement
Task scope names the servers an agent may reach and the resources behind them, a subset of repos, not the whole account. Every call is checked at the moment it is made. A call outside scope is denied and recorded, regardless of what produced it.
Fail-close, short-lived authority
Authority renews only while the session keeps proving what it is: verified platform, named owner, unchanged scope. Pull renewal on one agent and its MCP access ends within minutes, everywhere, with no tokens to hunt down.
Per-call audit
Every tool call, allowed or denied, is logged in the authorization path with session identity, owner identity, scope, and decision. When someone asks what your agents did through MCP last quarter, this is the answer.
Gradient for Agents does not vet your servers. It limits the damage when one turns out to be bad.
Gradient does not review MCP server code, detect malicious tools, or tell you which community packages to trust. You should still vet what you install, and you will still sometimes be wrong.
What Gradient guarantees is what happens when you’re wrong: the compromised server held no master key, the calls it could influence stayed inside one task’s scope, its authority expired in minutes, and every attempt, allowed or denied, is in a log the server couldn’t edit. Vetting reduces how often this happens. Gradient for Agents limits how much it costs when it does.
Treat every MCP server the way you treat the public internet.
The protocol will keep spreading because it makes connection nearly free. Your job is to make sure anything connected can only do what its owner scoped it to do, with every call authorized and recorded, and no standing credential left to steal.
Put a gateway under your MCP servers
Book a session. Bring the MCP servers your teams already run, and we’ll show scope, custody, and audit working against them.