-
Notifications
You must be signed in to change notification settings - Fork 0
Enable Codacy MCP server #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "mcpServers": { | ||
| "codacy": { | ||
| "command": "npx", | ||
| "args": ["-y", "@codacy/codacy-mcp"], | ||
| "env": { | ||
| "CODACY_ACCOUNT_TOKEN": "YOUR_CODACY_TOKEN_HERE" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1,54 @@ | ||||||||||||
| # 1 | ||||||||||||
| # 1 | ||||||||||||
|
|
||||||||||||
| ## Codacy MCP Server Setup | ||||||||||||
|
|
||||||||||||
| This repository has been configured with the Codacy MCP (Model Context Protocol) Server, which enables code quality and security analysis through your IDE. | ||||||||||||
|
|
||||||||||||
| ### Prerequisites | ||||||||||||
|
|
||||||||||||
| 1. **Node.js & npm**: Ensure Node.js and npm are installed | ||||||||||||
| ```bash | ||||||||||||
| node -v | ||||||||||||
| npm -v | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 2. **Codacy Account Token**: Obtain your personal API token from your Codacy account | ||||||||||||
| - Go to your Codacy account → Access Management | ||||||||||||
| - Generate a new API token if you don't have one | ||||||||||||
|
|
||||||||||||
| ### Configuration | ||||||||||||
|
|
||||||||||||
| The MCP server is configured in `.cursor/mcp.json`. To use it: | ||||||||||||
|
|
||||||||||||
| 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" | ||||||||||||
|
Comment on lines
+23
to
+31
|
||||||||||||
| } | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
|
||||||||||||
| > **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`). |
There was a problem hiding this comment.
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.