Skip to content

Enable Codacy MCP server#5

Open
Copilot wants to merge 3 commits intomainfrom
copilot/enable-codacy-mcp-server
Open

Enable Codacy MCP server#5
Copilot wants to merge 3 commits intomainfrom
copilot/enable-codacy-mcp-server

Conversation

Copy link

Copilot AI commented Feb 18, 2026

Adds Codacy MCP (Model Context Protocol) server configuration to enable IDE-based code quality and security analysis.

Changes

  • .cursor/mcp.json: MCP server configuration using npx @codacy/codacy-mcp with token placeholder
  • README.md: Setup instructions covering prerequisites, configuration, and available features

Configuration

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

Users must replace the token placeholder with their Codacy API token from account settings.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 18, 2026 11:49
Co-authored-by: ahmedessamX <245457521+ahmedessamX@users.noreply.github.com>
Co-authored-by: ahmedessamX <245457521+ahmedessamX@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable Codacy MCP server functionality Enable Codacy MCP server Feb 18, 2026
Copilot AI requested a review from ahmedessamX February 18, 2026 11:50
@ahmedessamX ahmedessamX marked this pull request as ready for review February 18, 2026 11:57
Copilot AI review requested due to automatic review settings February 18, 2026 11:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables Codacy MCP (Model Context Protocol) server integration to provide IDE-based code quality and security analysis. It adds the necessary configuration file and comprehensive documentation to help users set up the integration with their Codacy account.

Changes:

  • Added .cursor/mcp.json configuration file with MCP server setup for Codacy using npx
  • Updated README.md with detailed setup instructions, prerequisites, features, and troubleshooting guidance

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.cursor/mcp.json New MCP server configuration file that defines how to run the Codacy MCP server using npx with environment variable for API token
README.md Added comprehensive documentation covering prerequisites, configuration steps, available features, and troubleshooting tips for the Codacy MCP integration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +23 to +31
1. Replace `YOUR_CODACY_TOKEN_HERE` with your actual Codacy API token in `.cursor/mcp.json`:
```json
{
"mcpServers": {
"codacy": {
"command": "npx",
"args": ["-y", "@codacy/codacy-mcp"],
"env": {
"CODACY_ACCOUNT_TOKEN": "your-actual-token-here"
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token placeholder in the README example shows "your-actual-token-here" (line 31), but the actual configuration file uses "YOUR_CODACY_TOKEN_HERE" (line 7 in .cursor/mcp.json). These placeholders should be consistent to avoid confusion. Consider using the same placeholder value in both locations.

Copilot uses AI. Check for mistakes.
}
}
```

Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a security warning about not committing the actual token to version control. Users should be advised to use environment variables, secret management tools, or gitignore the file after adding their token. This is especially important since the configuration file is checked into version control with a placeholder.

Suggested change
> **Security warning:** Do **not** commit your real `CODACY_ACCOUNT_TOKEN` to version control.
> - Prefer setting `CODACY_ACCOUNT_TOKEN` via environment variables or a secret management tool.
> - If you store the token in `.cursor/mcp.json`, ensure this file is excluded from version control (for example, by adding it to `.gitignore`).

Copilot uses AI. Check for mistakes.
@@ -1 +1,54 @@
# 1 No newline at end of file
# 1
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README title "# 1" on line 1 appears to be a placeholder or error. Consider using a more descriptive title that reflects the repository's purpose, such as "# Codacy MCP Integration" or a title that describes what this repository is for.

Suggested change
# 1
# Codacy MCP Integration

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants