mait.sh1.132.1

Private beta: features and content may change. No warranty; use at your own risk.

Tools

What the stub passes through to your agent, the few commands it answers itself, its settings and its limits.

Beta
Overview

No tools of its own, everything passes through.

MCP Stub adds no task tools. It exposes supported capabilities published by the connected service; your agent must support the returned content and any skills extension. The stub answers a few commands of its own for the people who install and support it, and it takes its settings when your agent starts it with serve.

mcp-stubmait0.6.10the connection
Passes through

Five kinds of content reach your agent.

ContentWhat the agent getsLimit
ToolsThe service's tools, and a changed list when the service publishes one. The previously discovered list stays visible during an outage.A visible tool can still fail, and a new or empty service shows an empty list
ResultsText, images, audio, embedded resources and resource linksDisplay and follow-up reads depend on your agent and your permissions
ResourcesPublished resources it can readLists can be empty while disconnected, and resource templates are not offered
PromptsPublished prompts it can requestThey arrive as text
SkillsSkills the service publishes, listed and read through the connection. Needs release 0.5.0 or later and a service that offers skills.Available when the service offers skills

Why: the stub protects discovery, not execution. A failed call is returned to the agent and never repeated, and a restart does not keep a remote sign-in, transaction or terminal: those belong to the service.

Commands

What the program answers itself.

CommandUse it toNotes
mcp-stub serveRun the connection for your agent over standard input and output. Your agent's configuration starts it; running it by hand lists nothing.Settings below
mcp-stub versionIdentify the installed buildPrints the version, with a commit suffix on some builds
mcp-stub legalList the third-party components built into this binary. --full adds the notices, and --json or --markdown change the format.Works offline and starts no connection
mcp-stub completions SHELLPrint shell completion textbash, elvish, fish, powershell and zsh
Identify the build and its components
# Commands to run; version, target and component count depend on your installed binary.
$ mcp-stub version
$ mcp-stub legal
Settings

Choose the service, then the labels.

An argument wins over its environment variable. Choose either --server or --registry-key, never both.

ArgumentEnvironmentDefault or rule
--server ENDPOINTMCP_STUB_SERVERAn existing service: a Unix socket path or an HTTP address
--registry-key KEYMCP_STUB_REGISTRY_KEYStarts a registry on demand and reuses a reachable one with the same key
--registry-json PATHMCP_STUB_REGISTRY_JSONRequired with a key, as an absolute path
--registry-binary PATHMCP_STUB_REGISTRY_BINARYOptional absolute path; otherwise the folder of mcp-stub, then PATH
--session-tag TAGMCP_STUB_SESSION_TAGdefault; a label for diagnosis, not an access grant
--identity-tag TAGMCP_STUB_IDENTITY_TAGA fresh identifier for each start; keep it unless the service owner asks for another

Display, audio and GPU settings from the stub's environment are passed to a registry it starts. MCP_STUB_FORWARD_ENV replaces that selection and MCP_STUB_REGISTRY_ENV adds KEY=VALUE overrides. These apply only when a new registry starts.

Limits

What to expect when something fails.

LimitValue
Sign-inHandled by the connected service
RecoveryAutomatic, with no fixed deadline; failed calls are not repeated
NotificationsAdvisory and can be missed; verify from the response or the destination
On-demand readinessWaits about 30 seconds, which does not guarantee useful tools
Exit codes2 for a usage error, 1 for a startup failure after the arguments were accepted

Use on-demand startup only on a single-user host. On shared hosts, use an existing service with an owner-approved private socket. Confirm a network endpoint's access restrictions with its owner. Keep HTTP on loopback, or put an authenticated, encrypted proxy that you operate in front of it. See Troubleshooting for recovery steps.