Grades changed diff lines in AI-generated code by impact and runs AST checks for SQL injection, SSRF, XXE and hardcoded secrets on those lines.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add diffgate -- npx -y diffgate-review~/.codex/config.toml
[mcp_servers.diffgate]
command = "npx"
args = ["-y", "diffgate-review"]
# codex mcp add diffgate -- npx -y diffgate-review~/.cursor/mcp.json
{
"mcpServers": {
"diffgate": {
"command": "npx",
"args": [
"-y",
"diffgate-review"
]
}
}
}.vscode/mcp.json
{
"servers": {
"diffgate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"diffgate-review"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"diffgate": {
"command": "npx",
"args": [
"-y",
"diffgate-review"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"diffgate": {
"command": "npx",
"args": [
"-y",
"diffgate-review"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"diffgate": {
"command": "npx",
"args": [
"-y",
"diffgate-review"
]
}
}
}