Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-mdostal-portunus": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PORTUNUS_HOME=<YOUR_VALUE>",
"-e",
"SSL_CERT_FILE=<YOUR_VALUE>",
"-e",
"PORTUNUS_UI_URL=<YOUR_VALUE>",
"-e",
"PORTUNUS_BACKEND=<YOUR_VALUE>",
"-e",
"DOSTAL_SECRETS_HOME=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_PROJECT=<YOUR_VALUE>",
"-e",
"PORTUNUS_NO_UPDATE_CHECK=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_WIF_AUDIENCE=<YOUR_VALUE>",
"ghcr.io/mdostal/portunus:0.34.0"
]
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-mdostal-portunus": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PORTUNUS_HOME=<YOUR_VALUE>",
"-e",
"SSL_CERT_FILE=<YOUR_VALUE>",
"-e",
"PORTUNUS_UI_URL=<YOUR_VALUE>",
"-e",
"PORTUNUS_BACKEND=<YOUR_VALUE>",
"-e",
"DOSTAL_SECRETS_HOME=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_PROJECT=<YOUR_VALUE>",
"-e",
"PORTUNUS_NO_UPDATE_CHECK=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_WIF_AUDIENCE=<YOUR_VALUE>",
"ghcr.io/mdostal/portunus:0.34.0"
]
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-mdostal-portunus": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PORTUNUS_HOME=<YOUR_VALUE>",
"-e",
"SSL_CERT_FILE=<YOUR_VALUE>",
"-e",
"PORTUNUS_UI_URL=<YOUR_VALUE>",
"-e",
"PORTUNUS_BACKEND=<YOUR_VALUE>",
"-e",
"DOSTAL_SECRETS_HOME=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_PROJECT=<YOUR_VALUE>",
"-e",
"PORTUNUS_NO_UPDATE_CHECK=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_WIF_AUDIENCE=<YOUR_VALUE>",
"ghcr.io/mdostal/portunus:0.34.0"
]
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-mdostal-portunus": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PORTUNUS_HOME=<YOUR_VALUE>",
"-e",
"SSL_CERT_FILE=<YOUR_VALUE>",
"-e",
"PORTUNUS_UI_URL=<YOUR_VALUE>",
"-e",
"PORTUNUS_BACKEND=<YOUR_VALUE>",
"-e",
"DOSTAL_SECRETS_HOME=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_PROJECT=<YOUR_VALUE>",
"-e",
"PORTUNUS_NO_UPDATE_CHECK=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_WIF_AUDIENCE=<YOUR_VALUE>",
"ghcr.io/mdostal/portunus:0.34.0"
]
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-mdostal-portunus": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PORTUNUS_HOME=<YOUR_VALUE>",
"-e",
"SSL_CERT_FILE=<YOUR_VALUE>",
"-e",
"PORTUNUS_UI_URL=<YOUR_VALUE>",
"-e",
"PORTUNUS_BACKEND=<YOUR_VALUE>",
"-e",
"DOSTAL_SECRETS_HOME=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_PROJECT=<YOUR_VALUE>",
"-e",
"PORTUNUS_NO_UPDATE_CHECK=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_WIF_AUDIENCE=<YOUR_VALUE>",
"ghcr.io/mdostal/portunus:0.34.0"
]
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-mdostal-portunus": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PORTUNUS_HOME=<YOUR_VALUE>",
"-e",
"SSL_CERT_FILE=<YOUR_VALUE>",
"-e",
"PORTUNUS_UI_URL=<YOUR_VALUE>",
"-e",
"PORTUNUS_BACKEND=<YOUR_VALUE>",
"-e",
"DOSTAL_SECRETS_HOME=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_PROJECT=<YOUR_VALUE>",
"-e",
"PORTUNUS_NO_UPDATE_CHECK=<YOUR_VALUE>",
"-e",
"PORTUNUS_GCP_WIF_AUDIENCE=<YOUR_VALUE>",
"ghcr.io/mdostal/portunus:0.34.0"
]
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| PORTUNUS_HOME | No | Directory where Portunus stores its vault state (default: ~/.portunus, mode 0700). Must be a real, persistent volume for the local-encrypted backend; losing it makes previously-stored secrets permanently unrecoverable. Default: ~/.portunus |
| SSL_CERT_FILE | No | Optional path to a CA bundle, useful on macOS python.org installs when OAuth token minting fails with an SSL certificate error (set to the output of `python3 -c "import certifi; print(certifi.where())"`). Not required for normal MCP operation. |
| PORTUNUS_UI_URL | No | URL that `portunus ui open` uses to open the local UI (default: http://localhost:3000). Not required by the MCP server itself. Default: http://localhost:3000 |
| PORTUNUS_BACKEND | No | Selects the ARCA backend: local (default, local-encrypted vault), gcloud (GCP Secret Manager, keyless via Workload Identity Federation), aws (AWS Secrets Manager stub that fails clearly), or mock (tests/dry-runs). Default: local |
| DOSTAL_SECRETS_HOME | No | Legacy fallback for the vault home directory when PORTUNUS_HOME is not set. |
| PORTUNUS_GCP_PROJECT | No | GCP project ID used for zero-config single-project GCP Secret Manager access when no vault-bindings.json file exists. |
| PORTUNUS_NO_UPDATE_CHECK | No | Set to 1 to opt out of the throttled once-a-day update-available notice printed to stderr. The server never installs updates automatically. |
| PORTUNUS_GCP_WIF_AUDIENCE | No | Workload Identity Federation audience used for keyless GCP authentication when no vault-bindings.json file exists. |