Listed from the MCP registry; nobody on Odel publishes it.
Puts an MCP tool server behind Archytan Lite: each tool call is authorized and spent before it runs.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/High-ArchyTech-Solutions/archytan-mcp-gate/releases/download/v2.9.0/archytan-mcp-gate.mcpb`) — download it and import the bundle in your MCP client.
archytan-mcp-gate sits between an MCP host (Claude Code, Claude Desktop,
an IDE agent, your own agent) and an MCP tool server. Before any tool call
reaches the server, an Archytan Lite gate
service has to authorize it. The MCP gate checks the signed receipt for that
decision and spends a single-use capability, and only then forwards the call.
A call the policy doesn't allow comes back to the agent as a tool error it
can read, and never reaches the server.
This repository is the MCP gate's source, under the Apache License 2.0. The Archytan Lite gate service it talks to is a separate product, distributed as a signed container image; its quickstart is in archytan-lite-community.
The host launches the MCP gate in place of the tool server, and the MCP gate
launches the server itself, so it becomes the only path between the agent
and its tools. For every tools/call it:
If any step fails, the call is refused and the server never sees it. The agent never holds anything that could skip these steps: the MCP gate holds the agent's credential, and the agent only ever speaks MCP.
ARCHYTAN_LITE_CAPABILITIES=on). The tests run against version 2.7.0,
the first whose policy can scope a role to named resources.callergen. The MCP gate never sends a role; the agent's role is whatever
its credential holds.Download the binary for your platform from this repository's
releases.
SHA256SUMS covers every binary and is signed by the workflow that built
them, with cosign keyless signing:
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.cosign.bundle \
--certificate-identity-regexp '^https://github.com/High-ArchyTech-Solutions/archytan-mcp-gate/\.github/workflows/release\.yml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMS --ignore-missing
Or build it yourself with Go:
go install github.com/high-archytech-solutions/archytan-mcp-gate/v2/cmd/archytan-mcp-gate@latest
Each release also attaches archytan-mcp-gate.mcpb, an
MCP bundle for hosts that
install them, and lists it in the
MCP Registry as
io.github.High-ArchyTech-Solutions/archytan-mcp-gate. The host asks for
four things: an mcp-gate.json that names the tool server in its
server field (see Configure), the gate service's URL, the
agent's token file and the service's public key. The bundle carries the
builds for macOS and Linux on amd64 and arm64, and for Windows on amd64,
which Windows on Arm runs under emulation. SHA256SUMS covers it too.
The macOS builds aren't notarized by Apple, so macOS may refuse to run
one that arrived through a browser until you clear its quarantine
(xattr -d com.apple.quarantine <file>).
Map each tool you want the agent to have to a policy action in
mcp-gate.json. resource_id_arg names the argument that identifies the
resource the call acts on:
{
"version": 1,
"agent_uid": "agent-invoices",
"tools": {
"delete_invoice": { "action": "invoice.delete", "resource_type": "invoice", "resource_id_arg": "invoice_id" },
"read_invoice": { "action": "invoice.read", "resource_type": "invoice", "resource_id_arg": "invoice_id" }
}
}
Then point the host at the MCP gate instead of the tool server. The same
mcpServers entry works in Claude Desktop's claude_desktop_config.json
and a project's .mcp.json:
{
"mcpServers": {
"invoices": {
"command": "archytan-mcp-gate",
"args": ["--config", "/etc/archytan/mcp-gate.json", "--", "node", "/opt/invoice-server/index.js"],
"env": {
"ARCHYTAN_MCP_GATE_URL": "https://gate.internal:8421",
"ARCHYTAN_MCP_GATE_CALLER_TOKEN_PATH": "/etc/archytan/agent-invoices.token",
"ARCHYTAN_MCP_GATE_PUBLIC_KEY_HEX": "<the gate service's receipt-signing public key>"
}
}
}
}
| Variable | Meaning |
|---|---|
ARCHYTAN_MCP_GATE_URL | Base URL of the Archytan Lite gate service. Plain http is accepted only to loopback, because every request carries the agent's credential. |
ARCHYTAN_MCP_GATE_CALLER_TOKEN_PATH | File holding the agent's caller token. |
ARCHYTAN_MCP_GATE_PUBLIC_KEY_HEX | The service's Ed25519 receipt-signing public key, in hex. Receipts signed by any other key are refused. |
ARCHYTAN_MCP_GATE_HOLD_WAIT_SECONDS | Optional. How long to wait for a person to answer an action the policy holds for approval, in whole seconds up to 3600. Default 0: don't wait, refuse at once. See Actions held for a person's approval. |
The tool server can be named in mcp-gate.json instead of after --,
which suits a host or bundle that only lets you pass a config file:
{
"version": 1,
"agent_uid": "agent-invoices",
"server": { "command": "node", "args": ["/opt/invoice-server/index.js"] },
"tools": {
"read_invoice": { "action": "invoice.read", "resource_type": "invoice", "resource_id_arg": "invoice_id" }
}
}
The host's entry is then "args": ["--config", "/etc/archytan/mcp-gate.json"].
The command runs exactly as written and inherits the MCP gate's
environment, the same as after --. Name the server in one place: with a
server in the config and a command after --, the MCP gate refuses to
start rather than pick one.
mcp-gate.json is read as strictly as host messages are. An unknown
field, a key that repeats or differs only in case at any depth, and text
that isn't valid UTF-8 or escapes an unpaired surrogate all stop the MCP
gate at startup, so a second server can't quietly decide which program
runs.
Some tool servers name the resource a call acts on with more than one
argument. GitHub's MCP server takes owner and repo separately, and its
write tools add a branch. List them in resource_id_args instead of
resource_id_arg, and the MCP gate joins their values with / into the
resource id it sends:
"get_file_contents": { "action": "repo.read", "resource_type": "repo", "resource_id_args": ["owner", "repo"] },
"push_files": { "action": "repo.push", "resource_type": "repo_branch", "resource_id_args": ["owner", "repo"], "resource_id_path_arg": "branch" }
A push_files call with owner acme, repo web-shop and branch
feature/login is authorized as acme/web-shop/feature/login. With
Archytan Lite 2.7.0's grants, the policy can then scope the agent's role:
{ "action": "repo.read", "grants": [{ "roles": ["repo_agent"], "resource_ids": ["acme/web-*"] }] },
{ "action": "repo.push", "grants": [{ "roles": ["repo_agent"], "resource_ids": ["acme/web-*/feature/**"] }] }
The agent can read the acme/web-* repositories and push to their
feature/ branches. A push to main, or to another owner's repository, is
refused.
resource_id_args value must be a single name. A value containing
/ or \ is refused, because joined with the others it would name a
different resource: owner a/b with repo c reads the same as owner a
with repo b/c, and only the MCP gate knows which argument a segment came
from.resource_id_path_arg is joined last and may span several segments, like
a branch name. There's at most one, since two values with separators in
them could be split more than one way..., empty segments and characters outside its
grammar before any grant is matched, so feature/../main doesn't reach
main.ACME/web-shop is refused.Scope each tool at the level its id actually names. An argument left out of
the id doesn't narrow anything: push_files takes a files array, so scope
it by repository and branch, never by file path, and get_file_contents
takes an optional ref and a sha that overrides it, so scope reads by
repository. Branch scoping covers only the tools that take a branch; merging
a pull request into main is merge_pull_request, which names a pull
request number, so give it an action of its own.
An MCP gate older than 2.8.0 refuses to start with a config that uses
resource_id_args, rather than ignore it.
An Archytan Lite 2.9.0 policy can hold an action until a person approves it
(a hold block on the action, with the approver roles and a ttl). The
service answers such a request with a HOLD instead of an ALLOW, and a HOLD
is never an allow: nothing is forwarded, and no capability exists, until a
person with an approver role approves it. The MCP gate handles it like
this:
202 counts as a hold only if its receipt verifies with the key the
MCP gate sent, says HOLD, describes this call, and the hold's id is the
receipt's id. Anything else is a plain refusal.GET /v1/holds/{id} every two seconds until
the hold is answered, the hold's expiry (plus two seconds of grace for
clock skew) passes, the wait limit runs out, or the host cancels the
call. Reading a hold mints nothing.hold: plus the HOLD
receipt's id (which is what ties an approval to that hold), both name the
same action and resource, and a capability came with it. The approver's
name is on the resolution receipt, not on the call, so the usual
comparison with the request is made on the HOLD receipt. Then it redeems
the capability and forwards the call, as for any other ALLOW.ARCHYTAN_MCP_GATE_HOLD_WAIT_SECONDS sets the longest the MCP gate waits
for the answer, in whole seconds up to 3600. The default is 0: it doesn't
wait. A held action is refused at once with a message that says it is held
as hold <id> and that this gate is set not to wait. The reason is that
MCP hosts commonly give up on a tool call after about a minute, and a call
that waits longer than its host does gets abandoned: the person may then
approve something nobody is waiting for. Pick a value below your host's
tool-call timeout, say 45, if you want the agent to wait for a person who is
at their desk, and leave it at 0 where approvals take longer. The MCP gate
sends no progress notifications while it waits, so a host that doesn't
extend its timeout on progress will not wait longer than its own limit
whatever you set here. While a call waits, the calls behind it wait too,
since calls run in the order the agent issued them.
Each attempt uses a fresh idempotency key, so asking again after a refusal opens a new hold; an approval is used only by the call that opened its hold.
tools/list
shows the agent only mapped tools, and a call to any other name is refused
without reaching the service or the server. resources/*, prompts/*,
completion/*, tasks/* and unknown methods are refused, and those
capabilities are removed from what the server advertises.initialize
handshake and MCP 2026-07-28: server/discover, requests that carry their
own capabilities, input_required round trips for elicitation and
sampling, and subscriptions/listen, narrowed to tool list changes. Each
round of a call that stops to ask the user something is authorized and
spent on its own, since each is a call the server may act on.isError set and a plain explanation the model can act on.traceparent in a tool
call's params._meta is passed to the service, so its log lines and
version 2 receipt carry the agent's trace id. Trace context never changes
a decision.| Host or server | Through the MCP gate |
|---|---|
MCP TypeScript client SDK 2.3.1, initialize handshake | Works |
Same SDK, auto negotiation | Works. Reaches a server's MCP 2026-07-28 support, and falls back to initialize when the server predates it |
| Same SDK, pinned to 2026-07-28 | Works with a 2026-07-28 server. With an older server it fails at connect, as the SDK intends |
| Same SDK, reusing a cached discovery result | Works, and the host's roots still don't reach the server |
| MCP TypeScript server SDK 2.3.1 (both protocol generations) | Works with every client mode above |
@modelcontextprotocol/server-filesystem 1.0.0 (initialize only) | Works, and keeps its configured folder |
Report vulnerabilities privately, as SECURITY.md describes. Past advisories are listed there, including GHSA-9ff5-c4g4-rx92, fixed in 2.5.1 and 2.6.0.
go test ./...
The tests in testing/mcpgate drive the real binary between a scripted
host, a fixture tool server and a real Archytan Lite gate service. By
default they run the published, signed service image with Docker. To use
local binaries instead, set ARCHYTAN_LITE_BIN and
ARCHYTAN_LITE_KEYGEN_BIN. Without either, they skip and say why; CI sets
ARCHYTAN_MCP_GATE_E2E_REQUIRED=1 so they can't pass by skipping.
Contributions are welcome; see CONTRIBUTING.md.
Apache License 2.0; see LICENSE and NOTICE. The Archytan Lite gate service is licensed separately.