feat: add MCP server (psst-mcp) for Claude and agent integration#39
Open
djhenry wants to merge 1 commit into
Open
feat: add MCP server (psst-mcp) for Claude and agent integration#39djhenry wants to merge 1 commit into
djhenry wants to merge 1 commit into
Conversation
Adds a Model Context Protocol server that lets Claude and other MCP
clients use psst secrets without ever seeing their values.
New binary: psst-mcp (stdio transport, compatible with Claude Code,
Claude Desktop, Cursor, Windsurf, and any MCP-capable agent).
Tools exposed:
list_secrets — list secret names + tags (never values)
exec_command — run a command with specific named secrets injected
run_command — run a command with all vault secrets injected
list_environments — list available vault environments
Secrets are masked as [REDACTED] in all command output. The server
unlocks the vault through the OS keychain (or PSST_PASSWORD), so
credentials never appear in the MCP message stream.
Usage (Claude Code / claude_desktop_config.json):
{
"mcpServers": {
"psst": {
"command": "psst-mcp"
}
}
}
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Model Context Protocol (MCP) server so Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP-capable agent can use psst secrets without ever seeing their values.
psst-mcp(installed alongsidepsstvia npm)[REDACTED]in all command outputPSST_PASSWORD— same auth as the CLITools
list_secretsexec_commandrun_commandlist_environmentsSetup
Claude Code — add to
.claude/mcp.jsonor~/.claude/mcp.json:{ "mcpServers": { "psst": { "command": "psst-mcp" } } }Claude Desktop — add to
claude_desktop_config.json:{ "mcpServers": { "psst": { "command": "psst-mcp" } } }Then Claude can do things like:
How it works
The MCP server uses the
Vaultclass directly (no subprocess shelling out topsst). Secret values are fetched from the vault, injected into the subprocess environment, and any that appear in stdout/stderr are masked before being returned to the agent. The agent only ever sees secret names and masked output — never values.Test plan
npm install -g psst-cli && psst-mcpstarts without errorlist_secretsreturns names but never valuesexec_commandruns command with secret injected; value appears as[REDACTED]in outputrun_commandruns command with all secrets; values masked in outputisError: truewith a readable message (no vault, unlock failed, missing secret).psst/) and global (~/.psst/) vaults🤖 Generated with Claude Code