The native server is read-only by default. Write tools are registered only when you explicitly set
CODEANT_READ_ONLY=0.Prerequisites
- Install the CodeAnt CLI.
- Authenticate with
codeant login, or provideCODEANT_API_TOKENto the MCP process. - Verify that
codeant mcpis available in your installed CLI version.
codeant_login MCP tool from your client.
Claude Code
Add the server at user scope so it is available in every project:/mcp in Claude Code to confirm that the codeant server is connected.
To scope the server to one repository, use -s project instead. Claude Code writes the configuration to the repository’s .mcp.json.
MCP client configuration
For Claude Desktop, Cursor, VS Code, Windsurf, Zed, and other stdio MCP clients, add:codeant executable, use an absolute path to it or invoke the installed CLI entry point with Node:
Authentication options
The server resolves CodeAnt authentication in this order:CODEANT_API_TOKENin the MCP server environment.- The key saved by
codeant loginin~/.codeant/config.json.
CODEANT_API_URL for self-hosted deployments.
Application-backed tools select one exact authenticated organization/provider connection. When a user has multiple connections, agents should call codeant_scans_orgs first and pass org and service to subsequent tools.
Findings tools
All findings tools are available in the default read-only mode.
See Findings for CLI equivalents, required provider scope fields, filters, and example workflows.
Other read-only tools
The default server exposes 23 tools.
Authentication tools
codeant_login opens browser-based authentication when an agent explicitly calls it. codeant_logout revokes and clears the current key. These tools remain available in the default mode because they manage the MCP connection’s own authentication rather than product data.
Enable write tools
SetCODEANT_READ_ONLY=0 only when the MCP client should be allowed to change external state:
Example agent requests
- “List my repositories, then show critical SAST findings for the API repository.”
- “Show all high-severity AWS CSPM findings from the latest scan.”
- “Fetch this Hotlist finding by its stable ID and explain the remediation.”
- “List the open issues in the latest pentest engagement.”
- “Review my staged changes with CodeAnt.”
Troubleshooting
Findings
Query repository, Hotlist, cloud-security, and pentest findings.
SCM and PR tools
Manage pull requests, comments, and review data.