Reliability and security proxy for MCP servers: tool pinning, tool-poisoning and exfiltration detection, injection blocking, secret redaction and audit trails.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add bastion -- npx -y mcp-bastion~/.codex/config.toml
[mcp_servers.bastion]
command = "npx"
args = ["-y", "mcp-bastion"]
# codex mcp add bastion -- npx -y mcp-bastion~/.cursor/mcp.json
{
"mcpServers": {
"bastion": {
"command": "npx",
"args": [
"-y",
"mcp-bastion"
]
}
}
}.vscode/mcp.json
{
"servers": {
"bastion": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-bastion"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"bastion": {
"command": "npx",
"args": [
"-y",
"mcp-bastion"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"bastion": {
"command": "npx",
"args": [
"-y",
"mcp-bastion"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"bastion": {
"command": "npx",
"args": [
"-y",
"mcp-bastion"
]
}
}
}