Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

@codacy/codacy-mcp

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codacy/codacy-mcp

Codacy MCP server

npmnpm
Version
0.3.3
Version published
Weekly downloads
668
-52.99%
Maintainers
2
Weekly downloads
 
Created
Source

Codacy MCP Server

MCP Server for the Codacy API, enabling access to repositories, files, quality, coverage, security and more.

Features

Tools

The following tools are available through the Codacy MCP Server:

Repository Management

  • codacy_list_repositories: List repositories in an organization with pagination support.

Code Quality and Analysis

  • codacy_list_repository_issues: Lists and filters code quality issues in a repository. This is the primary tool for investigating general code quality concerns (e.g. best practices, performance, complexity, style) but NOT security issues. For security-related issues, use the SRM items tool instead. Features include:

    • Pagination support for handling large result sets
    • Filtering by multiple criteria including severity, category, and language
    • Author-based filtering for accountability
    • Branch-specific analysis
    • Pattern-based searching

    Common use cases:

    • Code quality audits
    • Technical debt assessment
    • Style guide compliance checks
    • Performance issue investigation
    • Complexity analysis

File Management

  • codacy_list_files: List files in a repository with pagination support.
  • codacy_get_file_issues: Get the issue list for a file in a repository.
  • codacy_get_file_coverage: Get coverage information for a file in the head commit of a repository branch.

Security Analysis

  • codacy_list_srm_items: Primary tool to list security items/issues/vulnerabilities/findings. Results are related to the organization security and risk management (SRM) dashboard on Codacy. Provides comprehensive security analysis including:
    • SAST (Code scanning)
    • Secrets (Secret scanning)
    • SCA (Dependency scanning)
    • IaC (Infrastructure-as-code scanning)
    • CICD (CI/CD scanning)
    • DAST (Dynamic Application Security Testing)
    • PenTesting (Penetration testing)
    Use this as the first tool when investigating security or compliance concerns.

Pull Request Analysis

  • codacy_list_repository_pull_requests: List pull requests from a repository that the user has access to. You can search this endpoint for either last-updated (default), impact or merged.
  • codacy_list_pull_request_issues: Returns a list of issues found in a pull request. We can request either new or fixed issues.
  • codacy_get_repository_pull_request_files_coverage: Get coverage information for all files in a pull request.
  • codacy_get_pull_request_git_diff: Returns the human-readable Git diff of a pull request.

For detailed information about the parameters and filtering options available for each tool, please refer to the Available Codacy API Actions section below.

Setup

Personal API Access Token

Get your Codacy's Account API Token from your Codacy Account.

Usage

Depending on what are you connecting the MCP Server to, you can use the following methods:

  • Cursor: edit the .cursor/mcp.json file to add the following
  • Claude Desktop: edit the claude_desktop_config.json file to add the following

NPX

{
  "mcpServers": {
    "codacy": {
      "command": "npx",
      "args": ["-y", "@codacy/codacy-mcp"],
      "env": {
        "CODACY_ACCOUNT_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

Node (when using NVM)

When using NVM with Claude Desktop, NPX won't work. You should first install the MCP Server globally, and thenuse Node directly:

npm install -g @codacy/codacy-mcp
{
  "mcpServers": {
    "codacy": {
      "command": "/Users/yourusername/.nvm/versions/node/vXX.X.X/bin/node",
      "args": ["/path-to/codacy-mcp/dist/index.js"],
      "env": {
        "CODACY_ACCOUNT_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

Build

Local:

npm install
npm run update-api
npm run build

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Keywords

codacy

FAQs

Package last updated on 01 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts