Token Vault sign-in
Let an MCP server you run accept Token Vault as its sign-in. It stores no value. Each calling agent gets a 15-minute identity pass that only that MCP server accepts.
Token Vault sign-in is a kind of credential for an MCP server you run yourself. The MCP server needs to know which agent is calling. It has no API key to protect. So there is no value to store.
Instead, Token Vault gives each calling agent a short identity pass for that MCP server. Your MCP server checks the pass with one call to Token Vault, then decides which tools that agent may use.
No value, nothing to leak
A Token Vault sign-in credential holds no secret. Your webhook stores only its name. The pass is Token Vault's own identity token. It is not a credential for any other service.
What the pass is
| Item | Value |
|---|---|
| Who gets one | The agent that is calling, one pass per agent and MCP server |
| Lifetime | 15 minutes. Token Vault reuses it until 5 minutes before it ends, then mints a new one |
Audience (aud) | The URL of your MCP server. No other MCP server accepts it |
| What it proves | The agent's identity. Nothing else |
| What it can do in Token Vault | Nothing. It cannot call Token Vault or read a credential. Every Token Vault route refuses it with 403 IDENTITY_ONLY_SESSION. Only the introspection endpoint accepts it |
| Does the agent hold it? | No. Token Vault adds it to the request. The agent's own Authorization header is removed |
| Access | MCP only. You cannot grant Value on this kind of credential |
How a call works
Token Vault calls your MCP server directly. It does not go through your webhook, so it works when your webhook is down.
Why this keeps the no-values rule
Your webhook exists so that no credential value passes through Token Vault. Here the pass is Token Vault's own token. No third party issued it and no secret of yours is in it. So there is nothing for the webhook to hold. Token Vault keeps the two paths apart:
- A
${TOKEN}MCP server is never called directly. It always goes through your webhook. - A
${AGENT_SESSION}MCP server never goes to your webhook. Token Vault calls it directly.
Token Vault checks this when you save the MCP server and again on every call. A config that fits neither is refused with 500 PROXY_CONFIG_INVALID.
Tool results pass through Token Vault in transit, as on every MCP path. Token Vault does not log them.
| Hop | Moved | Saw a credential value |
|---|---|---|
| Agent to Token Vault | Agent key or app session, JSON-RPC body | No (there is none) |
| Token Vault to your MCP server | The pass, JSON-RPC body | No |
| Your MCP server to Token Vault | The pass, to check it | No |
Add one
- Open Add credential and pick the Token Vault sign-in preset.
- Name it. The name appears in the MCP server URL.
- The value row is a note: no value is stored.
- Under MCP servers, enter the URL of your MCP server. The default header is
Authorization: Bearer ${AGENT_SESSION}. - Under Access, pick the agents. Each gets MCP. Value is not offered.
- Press Save.
The credential page shows the kind. It has no reveal and no rotate. The MCP servers tab says tools are decided per agent by your MCP server, and has no Fetch.
Then connect the app to https://api.tokenvault.uk/api/mcp/home-hub/home-hub as for any MCP server (Connect your apps). A sign-in MCP server is always connected by its own URL. It never joins the combined tool list on /api/agents/mcp.
Rules
| Rule | Detail |
|---|---|
| URL | https, passes the address check, and is not a Token Vault address (422 SIGNIN_URL_ON_TOKEN_VAULT) |
| Headers | At least one holds ${AGENT_SESSION}. None holds ${TOKEN}. A header that names a credential may hold only the ${AGENT_SESSION} placeholder. Hop headers such as Host and X-Forwarded-For are refused |
| Who may set the MCP server | A person with a recent sign-in. A key or agent gets 403 HUMAN_ONLY. Removing one is allowed to anyone with tokens:update |
| Grants | tools for an agent. A value grant, or any key grant, is 409 SIGNIN_TOOLS_ONLY |
| Value actions | Credential ticket, store ticket, OAuth connect, refresh, rotate and TOTP code are 409 SIGNIN_NO_VALUE |
| Tool list | Not cached. Your MCP server answers tools/list for each caller |
API: POST /api/tokens/sign-in.
How your MCP server checks the pass
Your MCP server gets Authorization: Bearer tvsess_... on every call. It sends that same token to Token Vault, with ?resource= set to its own URL:
POST /api/mcp-oauth/introspect?resource=https://hub.example.com/mcp HTTP/1.1
Host: api.tokenvault.uk
Authorization: Bearer tvsess_...{
"active": true,
"sub": "firebase-uid",
"agent_id": "agent-doc-id",
"agent_name": "claude-code",
"exp": 1751234567,
"aud": "https://hub.example.com/mcp",
"authorization": { "allowed": true, "reason": null, "retry_after": null }
}Do these five things:
- Send
?resource=with your own URL. It is required for a sign-in pass: without it, or with another URL, the answer is{"active": false}. A pass sent to the wrong server therefore tells that server nothing. - Treat
active: falseas a denial. - Compare
audwith your own URL. Deny a differentaud. Ifaudis missing, treat the pass as valid only when you sent?resource=. - Check that
subis your own Token Vault account id. Any Token Vault account can get a pass whoseaudis your URL, because the URL is only an address.subsays whose pass it is. Deny every othersub. The account id is not shown in the web app. Use thesubyou see when you introspect a pass for one of your own agents. - Read
Cache-Controland do not cache longer than it says.active: falseisno-store.
Then map agent_id to your tool list. One rule per agent id is enough. Deny an agent you have not mapped. Do not give it a default tool list.
Stop all access, a suspended agent and an expired pass all show as active: false. Full contract and a code sample: Introspection.
Policies and limits
Policies on the MCP server (mcp_server:{service}:{server}), the agent and the credential apply as for any MCP server. See Policies. Stop all access blocks the call before Token Vault mints a pass.
Errors
| HTTP | Code | When |
|---|---|---|
| 403 | SIGNIN_SESSION_REFUSED | The agent cannot get a pass: suspended, expired, no mcp:use, or deleted |
| 423 | VAULT_LOCKED | You stopped all access |
| 503 | SIGNIN_SESSION_UNAVAILABLE | The lock state could not be read. Retry-After: 60 |
| 502 | SIGNIN_SSRF_GUARD | The address of your MCP server resolved to a refused address |
| 502 | SIGNIN_UPSTREAM_ERROR | The call to your MCP server failed |
| 409 | SIGNIN_TOOLS_ONLY, SIGNIN_NO_VALUE | See the rules above |
| 422 | SIGNIN_URL_ON_TOKEN_VAULT | The URL is a Token Vault address |
All codes: Errors.
Next steps
Introspection
MCP servers
MCP server endpoint
Ready to try it?
Sign in with Google or email. Your credentials stay on your own webhook, and the quickstart gets Claude Code making its first MCP tool call in about 15 minutes.
MCP servers
Attach MCP servers to a credential so agents call their tools through your webhook, which injects the credential, and never see the value.
Connect with your own OAuth app
Connect Google, GitHub, Spotify or a custom provider with an OAuth app you register yourself, so the provider sends the sign-in result to your webhook and no code or token passes through Token Vault.