đźš§ SanctumAI is in beta. APIs may change before v1.0.
CLI Referencesanctum mcp serve

sanctum mcp serve

Start the MCP (Model Context Protocol) server for AI editor integration.

Usage

sanctum mcp serve [OPTIONS]

Options

FlagDescriptionDefault
--transport <type>Transport protocol: stdio, httpstdio
--port <port>HTTP port (when transport is http)7601

Description

Starts an MCP server that AI editors (Cursor, Claude Desktop, Claude Code, Windsurf, VS Code) use to access the vault. The server exposes credential management as MCP tools.

In stdio mode (default), the MCP server communicates over stdin/stdout — the AI editor launches it as a child process.

MCP Tools Exposed

ToolDescription
sanctum_list_credentialsList credentials accessible to the agent
sanctum_get_credentialRetrieve a credential (creates a lease)
sanctum_store_credentialStore a new credential
sanctum_delete_credentialDelete a credential
sanctum_search_credentialsSearch by pattern
sanctum_get_audit_logView recent audit entries
sanctum_check_policySimulate a policy decision

Editor Configuration

Add to your editor’s MCP configuration:

{
  "mcpServers": {
    "sanctum": {
      "command": "sanctum",
      "args": ["mcp", "serve"]
    }
  }
}

See Connect to AI Tool for editor-specific paths.

Notes

  • The MCP server requires the daemon to be running (sanctum daemon start)
  • Every tool call goes through the full CRP flow: authentication → policy check → lease creation → audit log
  • The server identifies the calling agent by the registered agent identity configured for that editor