Get started

Install

One line in front of any MCP server — npx today, brew and uvx as fast-follows.

The gateway ships as a launcher that resolves a prebuilt binary for your platform. There is no toolchain to install and nothing to build.

Prerequisites

  • Node 18 or newer.
  • A downstream MCP server to wrap (any stock MCP server works — the gateway speaks ordinary MCP up to your agent and down to the server).

The one line

bash
npx -y @auths-dev/mcp wrap --scope fs.read --budget '$5' --ttl 30m -- <downstream server>

Availability

@auths-dev/mcp is publishing now; prebuilt binaries ship for linux-x64, linux-arm64, and darwin-arm64. If npx cannot resolve the package yet, build the gateway from source (github.com/auths-dev/auths) and point GATEWAY_BIN at target/release/auths-mcp-gateway. The brew and uvx forms are fast-follows.

In these docs, commands use auths-mcp — the installed binary name. The no-install form is the same command through npx: npx -y @auths-dev/mcp wrap ….

The wrap shape

One shape for every downstream — everything after -- is the untouched server command you already had:

FlagValueMeaning
--scopeCAP (repeatable)a capability granted to the agent, e.g. fs.read, paid.call
--budget$5 or 20callsthe cross-rail spend cap — mandatory when the scope grants paid.call
--ttl30mthe delegation lifetime
--railstripe or x402the payment rail the wrapped downstream settles on; when set, every call is metered on this rail from the rail's own response
--test-modeflagopt into sandbox rails; real money is the default. Env twin: AUTHS_MCP_TEST_MODE=1
--show-modeflagresolve and disclose the payment mode, then exit — no proxy, no charge
--custody-credentialNAME[=VALUE] (repeatable)a downstream secret the gateway holds; bare NAME adopts it from the gateway's environment
-- <DOWNSTREAM>requiredthe wrapped MCP server command

Verify without touching anything

--show-mode resolves what a wrap would do — the payment mode and the rails it names — then exits without serving the proxy or touching a rail:

bash
auths-mcp wrap --show-mode --scope fs.read --budget '$5' -- <downstream server>

That's the whole install. Next: wrap your first server no money, five minutes.