MCP Integration

The Polysystems Secrets MCP server lets AI coding assistants securely access your secrets at runtime through the Model Context Protocol.

Setup

1. Create an MCP Access Token

Navigate to Secrets → MCP tab and click Generate Token.

2. Configure Claude Code

~/.claude/claude_desktop_config.json
json
{
"mcpServers": {
"poly-secrets": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-remote", "https://dev.poly.inc/api/mcp/secrets"],
"env": {
"POLY_API_TOKEN": "sk-poly-your-token-here"
}
}
}
}

3. Configure Cursor

.cursor/mcp.json
json
{
"mcpServers": {
"poly-secrets": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-remote", "https://dev.poly.inc/api/mcp/secrets"],
"env": {
"POLY_API_TOKEN": "sk-poly-your-token-here"
}
}
}
}

Available Tools

ToolDescriptionParameters
secrets_listList secrets in a vaultvault_id
secrets_getRetrieve a single secretvault_id, secret_id
secrets_setCreate or update a secretvault_id, name, value
secrets_deleteDelete a secretvault_id, secret_id
secrets_env_exportExport env vars as .envvault_id
secrets_env_importImport from .env formatvault_id, content

Available Resources

URIDescription
secrets://vaultList of all vaults with metadata
secrets://envEnvironment variables in .env format

Available Prompts

PromptDescription
secrets_setup_envGuide for setting up env vars from vault secrets
secrets_auditSecurity audit of vault configuration and access patterns

Access Log

The MCP tab in Secrets shows a real-time access log of all tool calls made through the MCP server. The log updates every 5 seconds and displays the tool name, parameters, timestamp, and result status.

PreviousEncryptionNextCLI Setup