Hello everyone.
Our last post was about Chute learning to explain itself. It ended with a limit: “A proxy’s job is to move traffic, and an assistant that can act on the proxy is a much larger surface than one that explains it.”
That was not a promise to leave the surface alone. It was a note that acting deserves its own design.
This post is about that design. Chute’s engine has an MCP server: a standard endpoint that an AI agent — Claude Code, Codex, Cursor, anything that speaks the Model Context Protocol — connects to, asks what it can do, and calls. It can find the rule that carried a connection and write the rule that should have. It can test every node in a group and report as each one answers. It can change a server’s port without ever seeing its password.
MCP is in testing and not yet available; it ships in an upcoming update. This post describes the build under test. If a key, a tool name or a screen changes before it ships, the manual will be the record.
What MCP Is
MCP is a small protocol, not a model. A client asks a server what tools it has, with JSON schemas; the model chooses one, the client calls it, and the result comes back as JSON. The server decides what exists. A proxy is an unusually good fit: its state is rich, its actions are bounded, and most of what an agent needs is already an API. The protocol is the easy part. The hard part is deciding what a proxy should let an agent do, and what it must never let it see.
Chute’s server exposes fifty-one tools at the moment, in four kinds: read-only, tests that send traffic, settings, and destructive. The kind is an annotation, and clients use it to decide what to ask you before a call. Reading the log is not the same risk as flushing the DNS cache, and neither is the same as running a script.
What It Feels Like
The point of an agent is that you ask in your own words and it picks the tools. Four questions we have used it for:
“Why does api.example.com go out through Edge-01?” match_rule reports the rule and the policy that would carry the name, before and after it resolves, without making the request. If the answer is a surprise, the agent can try a fix with edit_user_rules, see it on the next connection, and then write the line into [Rule] with replace_profile_section — on the Mac, a change that survives a restart.
“Which nodes in Auto still work?” test_policy on the group makes an HTTPS request through each member and returns each result as it finishes; a client that asked for progress shows them arriving one by one. The group’s own test runs afterwards and chooses the way it always does.
“The app can’t reach the server since this morning.” list_connections with the failure filter, get_logs around the first failure, and run_diagnostics for the network underneath: is there Internet at all, what is the egress address, does DNS answer, which policy would carry the name.
“Block the ads on this site.” add_mitm_host and add_rewrite put it in force in the running engine; the lines to keep go into the configuration afterwards. On a free install the decryption does not run; the agent is told that this is a Chute Pro feature, so it can tell you instead of pretending.
None of this is a Chute-only protocol. It is the control plane the Web Console and the chute command already call — most tools map onto existing routes, a few needed new ones — with a schema in front. One implementation, one more way in, and no second definition of what “select a policy” means to drift.
A Listener of Its Own
The MCP server is not a feature of the app; it is a listener in the engine, on its own port, at /mcp. It does not need external-http-controller or the Web Console. Turning those off does not turn it off. It is off by default, and when you turn it on it listens on 127.0.0.1:6180 unless you say otherwise.
It starts and stops with the engine. That is the first security decision, and it is worth being explicit about: an agent cannot start Chute, stop it, or switch to another configuration. If the engine is not running, there is no server to talk to. MCP is a way to steer a running engine, not a way to run one.
The token is the HTTP Control API’s token: external-http-secret when the configuration has one, otherwise the token Chute generates and keeps in control-token in the share folder, which the apps show. external-http-secret = none is accepted only on loopback.
Off loopback — a Mac driving a phone, a computer driving an Apple TV — the server requires an explicit secret; the generated token is not enough. A listener on the LAN with a token that is easy to find is not a feature.
On iOS and tvOS the engine is a network extension, so the MCP server runs inside the tunnel process, not the app. The app reads its status and token through the channel it already uses to talk to the extension. On the Mac the engine is in the app; on Android it is the process that owns the VPN. In every case the agent talks to the same engine the packets do, not to a copy of its state.
A client that only launches MCP servers as programs uses chute mcp as a relay: it passes each line from standard input to the server and each answer back. It reads the endpoint file the engine writes while listening — at every message, so a Chute that starts after the client is still found. The token can come from --token-file or CHUTE_MCP_TOKEN, or, for a server on this Mac, from the endpoint file and control-token; --token on the command line is refused, because that puts it in the client’s configuration and the process list.
The listener speaks MCP 2026-07-28 and accepts clients back to 2025-03-26. It keeps no session: one POST per message, JSON back, or an event stream for a long tool. Bodies are limited to 1 MB, eight connections are served at once, and GET, DELETE and OPTIONS are refused.
The Secrets It Never Sees
This is where most of the work went.
An agent that can edit a configuration has to read it. A configuration is full of passwords, UUIDs, private keys, subscription tokens. Sending those to a model provider is not acceptable for a proxy.
The redaction Chute already has — in diagnostics and logs — is one-way and line-based: it hides a value for a human to read, and if the line changes it cannot put the value back. That is the right shape for a bug report and the wrong shape for an editor. An agent that changes the port on a line with a password would either lose the password or be unable to save at all.
So MCP has a layer of its own. The engine knows which fields are secrets because the configuration model says so, rather than by guessing from the text. Each value is replaced by a handle: a type and a short, keyed hash of the value.
1 | [Proxy] |
The host stays visible; the path and query of the subscription URL do not. The same value always gets the same handle, so an agent can see that two nodes share a password. A handle lasts for the life of the process that issued it. Quit Chute Mac, or disconnect the VPN on iOS, and old handles are refused; the agent reads the configuration again.
When the agent writes text back, a handle left in place becomes the value again. It can change the port, rename the node, move the line — without ever holding the password.
Two constraints keep that from becoming a way around the mask: a handle goes back only into a field of the same kind, and only on a line that reaches the same server (or the same [General] key). A password handle cannot go into a rule; a subscription token cannot be moved to another host. An unknown, expired or misplaced handle is refused with the line number, and nothing is applied. A new secret the agent writes out in full is taken as written — at that point, of course, it is in the agent’s context.
The switch in the apps turns masking off (external-mcp-mask-secrets = false), and the agent is told that it is off. That is a choice for someone who accepts the trade.
What this is not: access control. Whoever holds the token can call the HTTP Control API directly and read everything. MCP does not add a narrower permission than that; the token is the permission. Masking is about what enters a model’s context; the token is about who can connect; the listener’s address is about what can reach it. Each one matters, and none of them replaces the others.
Credentials in your own traffic — a cookie a website set, an Authorization header an app sent — are not configuration secrets and are not masked. They are returned only when the agent explicitly asks for a connection’s headers or body.
Editing Without Collisions
The other dangerous part is writing. Two things go wrong: an agent writes a whole file from a stale read and undoes a change someone else made, or it writes a line and the engine normalizes it, so the next write is based on text that no longer exists.
Every configuration has a revision, and every section has a revision of its own. get_profile_section returns one section and its revision; replace_profile_section takes the text back with that revision. If the section changed in between, the write is refused with a conflict and the agent reads it again.
A change to a different section does not get in the way, so two agents — or an agent and you in the editor — can work on different parts of the same file. A section that holds #!include, every section after it, and the section that holds #!MANAGED-CONFIG cannot be written this way; the file is not ours to reassemble.
What a write means depends on the platform. On iOS and tvOS every change is to the running engine only; a restart brings back what the file says.
On the Mac the app keeps what it would keep from its own menus: the outbound mode and policy selections, the MitM and recording switches, and configuration writes, which go through the same path as Save & Apply and say persisted: true. Rewrites, MitM hosts, module switches, the log level and runtime rules last for the run; reload_profile undoes the first three without the side effects of a full reload — the log level, the LAN switch, the outbound mode and your policy selections stay.
Writes are refused when the app has unsaved changes, when the file changed outside Chute, or when a dialog is waiting; the agent gets a word for each and can tell you what to do. A configuration the engine refuses is not written either. The point is not that an agent never makes a mistake. It is that the mistake has a name, a small blast radius, and a way back.
What Comes Back
Request and response headers and bodies, log lines, script output, the text of a module downloaded from a URL: all of it is written by someone else, and some of it may be written to look like instructions to an agent. That is the prompt-injection problem, and a proxy is full of other people’s text.
By default, tools return metadata: hosts, URLs, ports, policies, rules, process names, byte counts, times, status. Content comes only when the agent asks for it — include on a connection, get_logs, get_module, run_script — and it comes under an untrusted key, with instructions to read it as data and never as instructions.
Lists are summaries by default; detail: true asks for every field; long answers are paged; and a result over 256 KB is cut at an entry boundary with truncated: true and the next_offset to continue from. Errors are sentences: what failed, and what to try.
This keeps the context clean and the bill small. It is not access control either: an agent holding the token can call the API and read everything. Defaults are for the ordinary case, not for an adversary with your token.
Free, and What Stays Pro
MCP is free. The HTTP Control API and the chute command were already free, and MCP calls the same routes; charging for the transport would be charging for the door. What needs Chute Pro still needs it: without a license, HTTPS is not decrypted, no body is recorded or read, no rewrite or Mock Response applies, no script runs, and run_script is refused with 403. get_status reports features.licensed, and the server’s instructions tell the agent what that means, so it tells you rather than trying the switch.
That is the same line Chute draws everywhere else. MCP does not move it.
Turning It On
On the Mac: Config → General → MCP Server → Enable MCP Server. On iOS: External Controller → MCP Server. On Android: External Controller → AI Agent (MCP). On tvOS: Configuration Edit → GENERAL → MCP Server. Turn it on and it listens on 127.0.0.1:6180; the status page shows the address, the token hidden until you ask for it, and a ready-made command.
For Claude Code over HTTP:
1 | claude mcp add --transport http chute http://127.0.0.1:6180/mcp --header "Authorization: Bearer <token>" |
For a client configured with JSON:
1 | {"mcpServers": {"chute": {"type": "http", "url": "http://127.0.0.1:6180/mcp", "headers": {"Authorization": "Bearer <token>"}}}} |
For a client that only starts programs:
1 | claude mcp add chute -- chute mcp |
In Claude Code, claude mcp list should show it connected, and the tools appear as mcp__chute__get_status and its siblings.
From a computer to a phone or an Apple TV, turn on Allow Access From Wi-Fi (on tvOS, set Listen Address to 0.0.0.0), set a long random external-http-secret, and use the LAN address the app shows. The connection is plain HTTP: the token crosses the network unencrypted and failed attempts are not locked out. Use it on a network you trust, and go back to 127.0.0.1 when you are done.
Then ask it something. “Which policy carried the last connection to github.com?” is a good first question: it costs one tool call, and the answer is in the dashboard anyway.
The Surface, With Edges
An agent that can act on a proxy is a larger surface. That is still true. What we spent this cycle on is the edges: the server is off by default, listens on loopback, and needs a token; it runs only while the engine does; configuration secrets arrive as handles and go back as values; writes carry a revision; third-party text arrives only on request and is labelled; and what needs Chute Pro still needs Chute Pro.
The agent gets fifty-one tools. It cannot start or stop the engine, switch to another configuration, evaluate arbitrary JavaScript, or read the configuration’s secrets by default.
MCP ships in an upcoming update for Chute Mac, Chute iOS, Chute tvOS and Chute Android. The manual has the full tool list, every key, and the client setups for each platform.
Thanks.
Chute Devs