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-shalimov04-mcp-airlock": {
"command": "uvx",
"args": [
"mcp-airlock"
],
"env": {
"AIRLOCK_JWT_SECRET": "<YOUR_VALUE>",
"AIRLOCK_SECRET": "<YOUR_VALUE>",
"AIRLOCK_ENV": "<VALUE>",
"AIRLOCK_JWKS_URL": "<VALUE>",
"AIRLOCK_AUDIT_DSN": "<VALUE>",
"AIRLOCK_STORE_DSN": "<VALUE>",
"AIRLOCK_JWT_ISSUER": "<VALUE>",
"AIRLOCK_PUBLIC_URL": "http://127.0.0.1:9000",
"AIRLOCK_GROUPS_CLAIM": "groups",
"AIRLOCK_JWT_AUDIENCE": "<VALUE>",
"AIRLOCK_TELEGRAM_CHAT": "<VALUE>",
"AIRLOCK_UPSTREAM_AUTH": "<VALUE>",
"AIRLOCK_APPROVAL_WEBHOOK": "<VALUE>",
"AIRLOCK_TRUST_PRINCIPAL_HEADER": "<VALUE>"
}
}
}
}
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-shalimov04-mcp-airlock": {
"command": "uvx",
"args": [
"mcp-airlock"
],
"env": {
"AIRLOCK_JWT_SECRET": "<YOUR_VALUE>",
"AIRLOCK_SECRET": "<YOUR_VALUE>",
"AIRLOCK_ENV": "<VALUE>",
"AIRLOCK_JWKS_URL": "<VALUE>",
"AIRLOCK_AUDIT_DSN": "<VALUE>",
"AIRLOCK_STORE_DSN": "<VALUE>",
"AIRLOCK_JWT_ISSUER": "<VALUE>",
"AIRLOCK_PUBLIC_URL": "http://127.0.0.1:9000",
"AIRLOCK_GROUPS_CLAIM": "groups",
"AIRLOCK_JWT_AUDIENCE": "<VALUE>",
"AIRLOCK_TELEGRAM_CHAT": "<VALUE>",
"AIRLOCK_UPSTREAM_AUTH": "<VALUE>",
"AIRLOCK_APPROVAL_WEBHOOK": "<VALUE>",
"AIRLOCK_TRUST_PRINCIPAL_HEADER": "<VALUE>"
}
}
}
}
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-shalimov04-mcp-airlock": {
"command": "uvx",
"args": [
"mcp-airlock"
],
"env": {
"AIRLOCK_JWT_SECRET": "<YOUR_VALUE>",
"AIRLOCK_SECRET": "<YOUR_VALUE>",
"AIRLOCK_ENV": "<VALUE>",
"AIRLOCK_JWKS_URL": "<VALUE>",
"AIRLOCK_AUDIT_DSN": "<VALUE>",
"AIRLOCK_STORE_DSN": "<VALUE>",
"AIRLOCK_JWT_ISSUER": "<VALUE>",
"AIRLOCK_PUBLIC_URL": "http://127.0.0.1:9000",
"AIRLOCK_GROUPS_CLAIM": "groups",
"AIRLOCK_JWT_AUDIENCE": "<VALUE>",
"AIRLOCK_TELEGRAM_CHAT": "<VALUE>",
"AIRLOCK_UPSTREAM_AUTH": "<VALUE>",
"AIRLOCK_APPROVAL_WEBHOOK": "<VALUE>",
"AIRLOCK_TRUST_PRINCIPAL_HEADER": "<VALUE>"
}
}
}
}
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-shalimov04-mcp-airlock": {
"command": "uvx",
"args": [
"mcp-airlock"
],
"env": {
"AIRLOCK_JWT_SECRET": "<YOUR_VALUE>",
"AIRLOCK_SECRET": "<YOUR_VALUE>",
"AIRLOCK_ENV": "<VALUE>",
"AIRLOCK_JWKS_URL": "<VALUE>",
"AIRLOCK_AUDIT_DSN": "<VALUE>",
"AIRLOCK_STORE_DSN": "<VALUE>",
"AIRLOCK_JWT_ISSUER": "<VALUE>",
"AIRLOCK_PUBLIC_URL": "http://127.0.0.1:9000",
"AIRLOCK_GROUPS_CLAIM": "groups",
"AIRLOCK_JWT_AUDIENCE": "<VALUE>",
"AIRLOCK_TELEGRAM_CHAT": "<VALUE>",
"AIRLOCK_UPSTREAM_AUTH": "<VALUE>",
"AIRLOCK_APPROVAL_WEBHOOK": "<VALUE>",
"AIRLOCK_TRUST_PRINCIPAL_HEADER": "<VALUE>"
}
}
}
}
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-shalimov04-mcp-airlock": {
"command": "uvx",
"args": [
"mcp-airlock"
],
"env": {
"AIRLOCK_JWT_SECRET": "<YOUR_VALUE>",
"AIRLOCK_SECRET": "<YOUR_VALUE>",
"AIRLOCK_ENV": "<VALUE>",
"AIRLOCK_JWKS_URL": "<VALUE>",
"AIRLOCK_AUDIT_DSN": "<VALUE>",
"AIRLOCK_STORE_DSN": "<VALUE>",
"AIRLOCK_JWT_ISSUER": "<VALUE>",
"AIRLOCK_PUBLIC_URL": "http://127.0.0.1:9000",
"AIRLOCK_GROUPS_CLAIM": "groups",
"AIRLOCK_JWT_AUDIENCE": "<VALUE>",
"AIRLOCK_TELEGRAM_CHAT": "<VALUE>",
"AIRLOCK_UPSTREAM_AUTH": "<VALUE>",
"AIRLOCK_APPROVAL_WEBHOOK": "<VALUE>",
"AIRLOCK_TRUST_PRINCIPAL_HEADER": "<VALUE>"
}
}
}
}
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-shalimov04-mcp-airlock": {
"command": "uvx",
"args": [
"mcp-airlock"
],
"env": {
"AIRLOCK_JWT_SECRET": "<YOUR_VALUE>",
"AIRLOCK_SECRET": "<YOUR_VALUE>",
"AIRLOCK_ENV": "<VALUE>",
"AIRLOCK_JWKS_URL": "<VALUE>",
"AIRLOCK_AUDIT_DSN": "<VALUE>",
"AIRLOCK_STORE_DSN": "<VALUE>",
"AIRLOCK_JWT_ISSUER": "<VALUE>",
"AIRLOCK_PUBLIC_URL": "http://127.0.0.1:9000",
"AIRLOCK_GROUPS_CLAIM": "groups",
"AIRLOCK_JWT_AUDIENCE": "<VALUE>",
"AIRLOCK_TELEGRAM_CHAT": "<VALUE>",
"AIRLOCK_UPSTREAM_AUTH": "<VALUE>",
"AIRLOCK_APPROVAL_WEBHOOK": "<VALUE>",
"AIRLOCK_TRUST_PRINCIPAL_HEADER": "<VALUE>"
}
}
}
}
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 |
|---|---|---|
| AIRLOCK_JWT_SECRET secret | No | Verify bearer tokens with HS256. `sub` becomes the principal, `groups` the groups. |
| AIRLOCK_SECRET secret | No | Key for signing confirmation tokens. Random per process if unset, which means a restart forgets pending confirmations. Set it if you run more than one replica. |
| AIRLOCK_ENV | No | Environment name, picks the tier column in the policy. `--env` does the same. |
| AIRLOCK_JWKS_URL | No | Verify bearer tokens against an OIDC provider (RS256/ES256). Takes precedence over the shared secret. |
| AIRLOCK_AUDIT_DSN | No | Postgres DSN for the audit log, in addition to the JSONL file. |
| AIRLOCK_STORE_DSN | No | Postgres DSN for the shared state: used confirmation keys, approvals, blast-radius counters. Without it the state lives in process memory. |
| AIRLOCK_JWT_ISSUER | No | Verify bearer tokens against an OIDC provider (RS256/ES256). Takes precedence over the shared secret. |
| AIRLOCK_PUBLIC_URL | No | Base URL for approve links. Default `http://127.0.0.1:9000`. Default: http://127.0.0.1:9000 |
| AIRLOCK_GROUPS_CLAIM | No | Claim to read groups from. Default `groups`. Default: groups |
| AIRLOCK_JWT_AUDIENCE | No | Set the audience; without it any token from that provider is accepted. |
| AIRLOCK_TELEGRAM_CHAT | No | Chat id for the Telegram case. |
| AIRLOCK_UPSTREAM_AUTH | No | Value of the `Authorization` header sent to the upstream. This is the proxy's own credential; the caller's identity travels in `_meta` instead. |
| AIRLOCK_APPROVAL_WEBHOOK | No | Slack-style incoming webhook, or a Telegram `bot<token>/sendMessage` URL. Confirmation prompts are posted there with an approve link. |
| AIRLOCK_TRUST_PRINCIPAL_HEADER | No | Set to `1` to accept `X-Airlock-Principal` and `X-Airlock-Groups`. Off by default. Only turn it on behind a gateway that sets those headers itself and strips them from clients. |