Skip to main content
A Vault holds Credentials for your Agents’ MCP servers. Checkfu attaches the token to outbound MCP requests, so the Agent, model, transcript, and API responses never see it. In the dashboard, open a Vault and select Connect an MCP server. Choose a connector such as Linear, then sign in. The Linear preset requests read access. If the Agent needs to make changes, set the scopes to read write in Advanced OAuth settings. When you add an MCP server to an Agent, choose the same connector. Include the Vault when you start a Session so Checkfu can match the credential to the connector’s URL.
For direct HTTP requests, send Checkfu-Credential-Format: scoped to receive the scope and send rule. The SDK and CLI request this format automatically. The default bearer format returns static_bearer and mcp_server_url for credentials that use bearer authorization against one exact URL. The API responds with HTTP 406 for credentials that need the scoped format. A 406 rejects the entire list page or the requested change. The token is write-only. To rotate it, update the Credential with { token: ... }. The scope and send rule stay fixed. An exact scope matches one MCP server URL. Use a prefix scope for one or more HTTPS URL prefixes and select the Credential explicitly for the named MCP server. The send rule can put the token in a request header or into HTTP Basic authentication. Use {token} once in that rule.

Use a Vault in a Session

For each of the Agent’s MCP servers, Checkfu looks for an active Credential with an exact scope matching the server URL in the Vaults listed in vault_ids. With no match, requests are unauthenticated. If multiple Vaults have matches, Session creation returns mcp_server_credentials_ambiguous. Use mcp_server_credentials to select a Credential by ID for a named MCP server. This resolves an ambiguous match and is required for selecting a Credential with a prefix scope. See Create a session. To authenticate an OpenAPI toolset, use its name as mcp_server_name in mcp_server_credentials and select an enabled, prefix-scoped Credential from a Session Vault. The prefix must cover the toolset’s base_url.

Use Credentials with workspace commands

Bind a prefix-scoped Credential in a Session’s machine_credentials and include its Vault in vault_ids. The workspace attaches the Credential to requests to matching HTTPS URLs that its Environment permits. An optional env field gives a command a placeholder to use where it expects a token. Choose trusted services for Credential targets. A service receives the credential and controls its responses. Checkfu keeps the stored token outside the workspace and filters known token values from proxied responses.

How secrets are isolated

The API hands each token straight to the Vault’s Connection Durable Object, which has no public address. That object checks the Credential’s scope for each outbound request and scrubs the token to [redacted] in responses. The Session’s Linux machine never holds the token. See Architecture.

Archive or delete

Archiving or deleting a Credential immediately blocks new MCP requests from using its secret and starts erasing it from storage (archiving or deleting a Vault does this for all of its Credentials). Erasure can finish in the background: deleting a Vault returns 200 once storage confirms every secret is gone, or 202 with "secrets": "erasing" while erasure continues (deleting a single Credential can likewise return 202 with "custody": "erasing"). Send the same DELETE again to confirm completion.