Skip to main content
The CodeAnt CLI includes a native Model Context Protocol server. It exposes structured tools for repository scans, organization Hotlist findings, cloud security, pentesting, pull requests, and local code review. The server uses stdio transport and runs with the same authentication as the CLI:
The native server is read-only by default. Write tools are registered only when you explicitly set CODEANT_READ_ONLY=0.

Prerequisites

  1. Install the CodeAnt CLI.
  2. Authenticate with codeant login, or provide CODEANT_API_TOKEN to the MCP process.
  3. Verify that codeant mcp is available in your installed CLI version.
The MCP server does not automatically open a browser during startup. Authenticate before starting it, or call the codeant_login MCP tool from your client.

Claude Code

Add the server at user scope so it is available in every project:
Run /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:
Restart the client after changing its MCP configuration. If the client cannot find the globally installed 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:
  1. CODEANT_API_TOKEN in the MCP server environment.
  2. The key saved by codeant login in ~/.codeant/config.json.
Set a custom CodeAnt API host with 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

Set CODEANT_READ_ONLY=0 only when the MCP client should be allowed to change external state:
This adds three tools:
codeant_api_request can call application write endpoints. Keep read-only mode enabled unless your agent needs these operations and your approval policy is configured appropriately.

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.