AI code security scanner MCP server — detects invisible Unicode, Trojan Source, homoglyphs, Glassworm steganography, rules file backdoors, and dependency attacks in AI-generated code. Static analysis + CodeBERT deep learning. Runs locally.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add codesafer -- npx -y cleaner-code~/.codex/config.toml
[mcp_servers.codesafer]
command = "npx"
args = ["-y", "cleaner-code"]
# codex mcp add codesafer -- npx -y cleaner-code~/.cursor/mcp.json
{
"mcpServers": {
"codesafer": {
"command": "npx",
"args": [
"-y",
"cleaner-code"
]
}
}
}.vscode/mcp.json
{
"servers": {
"codesafer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cleaner-code"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"codesafer": {
"command": "npx",
"args": [
"-y",
"cleaner-code"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"codesafer": {
"command": "npx",
"args": [
"-y",
"cleaner-code"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"codesafer": {
"command": "npx",
"args": [
"-y",
"cleaner-code"
]
}
}
}