Alter is an MCP client
Alter connects to MCP servers and uses their tools. Alter does not expose itself as an MCP server. There is no endpoint to connect another tool to. To hand Alter information from another program, see Reporting from Claude Code.
A connected MCP server is called a source. Alter ships ready-made sources, and you can add any other MCP server yourself. The ready-made ones are covered in the user guide: Sources.
Adding a server
There are two kinds of server.
A server at an https address
sh
alter source add tracker --url https://mcp.example.com/ --label "Issue tracker" --token--token reads a bearer token from standard input and puts it in the system keychain. The address must be https.
A server started by a local command
sh
alter source add files --label "Local files" -- npx -y some-mcp-server /pathIf the command needs one token in its environment, name the variable. The token is read from standard input and passed to the command, never written to the settings file:
sh
printf '%s' "$TOKEN" | alter source add tracker --token-env TRACKER_TOKEN -- tracker-mcpIf it needs several secrets, give --secret-env once per variable. Alter reads one secret per line from standard input, in order:
sh
printf '%s\n%s\n' "$ID" "$SECRET" | alter source add svc --secret-env SVC_ID --secret-env SVC_SECRET -- svc-mcpalter source list shows each source, whether it is connected, and its tools. alter source remove <id> disconnects it and forgets its token.
Permissions per tool
Every tool of every source has one of three settings:
| Setting | Meaning |
|---|---|
| Allow | The tool runs without asking. |
| Ask first | Alter shows you the exact call and waits for your approval. |
| Off | The tool is not available to Alter. |
sh
alter source allow tracker search_issues
alter source ask tracker create_issue
alter source off tracker delete_issue
alter source ask tracker allOnly read-only tools may be set to Allow. A tool that acts (creates, changes, sends or deletes) can only be Ask first or Off. This is enforced in code, so neither the model nor the server can change it. You can also manage these settings in Settings, under Sources.
An approval is bound to the exact call and its arguments, can be used once, and expires after 24 hours. See Approvals.
Outside content
Everything a source returns is outside content. Alter marks it as such, and a conversation that has read it cannot take an outward action without your approval, whatever the content says. In unattended runs such as routines, outside content passes through the private reader first, a model with no tools. What cannot be screened is sealed. The mechanism is described in the security model.
This means a malicious tool result cannot talk Alter into acting on your behalf. It does not make a server trustworthy. Only connect servers you would trust with the data that you let them read, since your tool arguments are sent to them.
Routines and realms
A routine can read only the sources you choose for it, and can pin an exact call that it runs before each run (alter routine pin). A realm can be limited to some sources. See the CLI reference.