MCP security scanner - detect prompt injection in tool descriptions
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add guardian -- npx -y mcp-guardian --mcp~/.codex/config.toml
[mcp_servers.guardian]
command = "npx"
args = ["-y", "mcp-guardian", "--mcp"]
# codex mcp add guardian -- npx -y mcp-guardian --mcp~/.cursor/mcp.json
{
"mcpServers": {
"guardian": {
"command": "npx",
"args": [
"-y",
"mcp-guardian",
"--mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"guardian": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-guardian",
"--mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"guardian": {
"command": "npx",
"args": [
"-y",
"mcp-guardian",
"--mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"guardian": {
"command": "npx",
"args": [
"-y",
"mcp-guardian",
"--mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"guardian": {
"command": "npx",
"args": [
"-y",
"mcp-guardian",
"--mcp"
]
}
}
}