Codex
Verified integration
Configured through ~/.codex/config.toml and manually validated with CodeGuard.
Connect CodeGuard to your AI development workflow using the Model Context Protocol.
The Model Context Protocol (MCP) lets a compatible host application discover and call tools exposed by a local process. CodeGuard is a deterministic static-analysis tool provider. It does not contain, call or require an AI model or an API key.
codeguard mcp --root <project-root> as a local stdio process.The homepage demo shows a simulated version of this exchange. See Security & Privacy for the boundaries and for what a third-party client may do with returned diagnostics.
Only clients marked as verified have been tested by the CodeGuard project.
Verified integration
Configured through ~/.codex/config.toml and manually validated with CodeGuard.
Generic MCP compatibility
Documented stdio configuration in .vscode/mcp.json. Follows the generic MCP configuration pattern.
Generic MCP compatibility
Useful for testing the handshake and listing tools. A debugging aid rather than an AI client.
Not yet tested
Any client that can launch a local stdio MCP server may work. None of these have been tested by the CodeGuard project.
Verified integration. Codex has been manually validated with CodeGuard.
>=24).npm install -g codeguard-local@betaAdd this to ~/.codex/config.toml, merging with any existing entries:
[mcp_servers.codeguard]
command = "codeguard"
args = ["mcp", "--root", "<project-root>"]Replace <project-root> with the project directory before copying it into your settings.
--root is required. It is canonicalized and becomes the filesystem boundary of that server instance, so use one entry per project root and keep the root explicit.
Restart Codex after editing its configuration, then confirm that the six CodeGuard tools are available. To check the server independently of any client, use MCP Inspector:
npx @modelcontextprotocol/inspector codeguard mcp --root .In Inspector, confirm initialization, list tools, call get_project_info, then call analyze_project.
review_project prompt.get_project_info, then analyze_project.SEC001, with explain_diagnostics.codeguard is on the PATH the host uses, and that --root names an existing directory. Restart the host after changing configuration.node: use an explicit Node executable path in the host configuration.More help is in Troubleshooting.
Generic MCP compatibility. Any client that can launch a stdio MCP server can use this command. Check your client's documentation for where to enter it.
codeguard mcp --root <project-root>The command and arguments to give any client that launches stdio MCP servers.
VS Code uses the same pattern in .vscode/mcp.json:
{
"servers": {
"codeguard": {
"type": "stdio",
"command": "codeguard",
"args": ["mcp", "--root", "${workspaceFolder}"]
}
}
}Clients not listed above are not yet tested.
All tools are read-only and scoped to the configured root.
analyze_projectRun a fresh whole-project analysis.
analyze_fileAnalyze one project-relative source file with its project context.
get_project_infoDescribe the project and its CodeGuard configuration.
get_diagnosticsReturn a bounded, optionally filtered page of diagnostics from a fresh analysis.
get_security_issuesReturn SEC001–SEC005 findings as potential issues for review.
get_architecture_issuesReturn ARCH001–ARCH002 findings about local dependencies.
Prompts are guidance templates. They do not execute an AI model and do not modify files. CodeGuard itself remains a deterministic static analysis tool.
review_projectGuides an assistant to review the project: gather project info, run the analysis, order findings by severity and propose remediation.
explain_diagnosticsGuides an assistant to explain a diagnostic code, its likely cause and a safe remediation, and to state uncertainty.
See MCP setup for the full server reference and Troubleshooting for connection and prompt-argument problems.
--root only at projects you are comfortable exposing to that client.Read the full Security & Privacy page for details.