Codacy MCP server for AI agents

Live

API KEY

CODE QUALITY

Developer Tools

Codacy gives your agent code quality data from your Codacy account: repository analysis, issues, pull request and commit deltas, coverage, security findings, and quality gate settings, plus ignoring issues and managing repositories and tools.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Codacy
agent · Acme Q3
Run
Which open issues in the api-server repo are critical security issues?
S
codacy_issues_search
410ms
Code quality agent
api-server has 3 open critical issues in the Security category. They are in auth.js and 2 in db/query.js.
Sources: Codacy api-server, 3 issues
codacy
3 issues
18:29
Message Claude...

Tools your code quality agent reaches for on Codacy, scoped per user.

CALL ANY TOOL
60 tools for code quality in Codacy: search issues, read repository, commit, and pull request analysis, check coverage and quality gates, review security findings, and ignore issues or configure tools.
codacy_category_overviews_list
List category overviews
Get the number of Codacy issues per category, such as Security or Code Style, for a branch. Returns each category with its issue count and share. Use Search Issues to list the issues.
Parameters
Name
Type
Required
Description
provider
string
Required
Git provider of the organization: gh (GitHub), gl (GitLab) or bb (Bitbucket). Example: gh. One of: `gh`, `gl`, `bb`.
remote_organization_name
string
Required
Organization name on the Git provider, as in its URL, e.g. codacy. Example: codacy.
repository_name
string
Required
Repository name inside the organization, e.g. awesome-repo. Example: awesome-repo.
branch
string
Optional
Branch name; defaults to the repository's main branch. Example: main.
codacy_coding_standard_get
Get coding standard
codacy_coding_standard_repositories_apply
Apply coding standard repositories
codacy_commit_delta_issues_list
List commit delta issues
codacy_commit_get
Get commit
codacy_commits_list
List commits
codacy_file_get
Get file
codacy_file_issues_list
List file issues
codacy_gate_policies_list
List gate policies
codacy_issue_get
Get issue
codacy_issue_state_update
Update issue state
codacy_issues_bulk_ignore
Issues bulk ignore
codacy_issues_search
Search issues
codacy_organization_get
Get organization
codacy_organization_people_remove
Remove organization people
codacy_organization_pull_requests_list
List organization pull requests
codacy_pull_request_files_coverage_get
Get pull request files coverage
codacy_pull_request_files_list
List pull request files
codacy_pull_request_quality_settings_get
Get pull request quality settings
codacy_pull_requests_list
List pull requests
codacy_repository_add
Add repository
codacy_repository_analysis_progress_get
Get repository analysis progress
codacy_repository_branch_update
Update repository branch
codacy_repository_branches_list
List repository branches
codacy_repository_quality_settings_get
Get repository quality settings
codacy_repository_tool_configure
Repository tool configure
codacy_repository_tools_list
List repository tools
codacy_security_finding_get
Get security finding
codacy_security_finding_ignore
Security finding ignore
codacy_tools_list
List tools

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Codacy tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codacy"], toolNames: [
    "codacy_repository_analysis_get",
    "codacy_issues_search",
    "codacy_pull_request_coverage_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Summarize the analysis of the main branch, list its critical issues, and show the diff coverage of the latest pull request" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codacy"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Summarize the analysis of the main branch, list its critical issues, and show the diff coverage of the latest pull request" }],
  tools,
});

// Execute the tool call with the user's vaulted Codacy API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codacy"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Summarize the analysis of the main branch, list its critical issues, and show the diff coverage of the latest pull request" }],
  tools,
});

// Tool call runs with the user's vaulted Codacy API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codacy"] }, pageSize: 100,
});

const agent = new Agent({
  name: "code_quality_agent",
  model: "gemini-2.5-pro",
  instruction: "Codacy tools scoped to this user",
  tools,
});

await agent.run("Summarize the analysis of the main branch, list its critical issues, and show the diff coverage of the latest pull request");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Codacy tool. Click to copy, paste into your agent, done.
Issues and analysis
Copy the prompt
Copied
Search the open critical issues in my api-server repository.
Copy the prompt
Copied
Show the analysis summary for the main branch of api-server.
Copy the prompt
Copied
List the files with the lowest grade in this repository.
Pull requests and commits
Copy the prompt
Copied
What issues did this pull request add or fix?
Copy the prompt
Copied
Show the diff coverage of pull request 482.
Copy the prompt
Copied
List the issues this commit added compared with its parent.
Security and settings
Copy the prompt
Copied
Search high priority security findings across my organization.
Copy the prompt
Copied
Ignore this security finding with the reason false positive.
Copy the prompt
Copied
Enable the ESLint tool on this repository.
SEE HOW AUTH WORKS
Each user connects their own Codacy API key once; Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Codacy
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Codacy
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Codacy
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Codacy
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Auto release notes agent
Reads merged GitHub PRs, groups them into structured release notes, publishes the page to Notion, and announces the release in Slack. Every call runs on the engineer's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Auto-release notes agent
Group merged GitHub PRs into structured release notes, publish the page to Notion, and announce the release in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Codacy API key looks fine in a demo. In production every issue ignore and tool change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Codacy today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Codacy as the user or through a shared key?
As the user. Each user connects their own Codacy API key once, and Scalekit sends it with every call. Audit logs attribute every issue change and repository setting to that user, not a shared service account.
Where is the Codacy API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Codacy?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the analysis and coverage tools without codacy_organization_people_remove, which removes people from an organization by email. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Codacy access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which Codacy account and repositories does the agent see?
Those the user's Codacy account API token can reach. codacy_user_organizations_list returns the organizations the token's user belongs to across Git providers, and the repository and organization tools take that organization as input.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""codacy"": {
""url"": ""https://mcp.scalekit.com/codacy"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.codacy]
url = ""https://mcp.scalekit.com/codacy""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""codacy"": {
""url"": ""https://mcp.scalekit.com/codacy"",
""type"": ""http""
}
}
}