@codacy/codacy-mcp 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -11
- package/dist/src/handlers/cliAnalyze.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,11 @@ MCP Server for the Codacy API, enabling access to repositories, files, quality,
|
|
|
6
6
|
|
|
7
7
|
The following tools are available through the Codacy MCP Server:
|
|
8
8
|
|
|
9
|
-
### Repository Management
|
|
9
|
+
### Organization and Repository Management
|
|
10
10
|
|
|
11
|
-
- `
|
|
11
|
+
- `codacy_list_organizations`: List organizations with pagination support.
|
|
12
|
+
- `codacy_list_organization_repositories`: List repositories in an organization with pagination support.
|
|
13
|
+
- `codacy_get_repository_with_analysis`: Get repository with analysis information, including metrics for Grade, Issues, Duplication, Complexity, and Coverage.
|
|
12
14
|
|
|
13
15
|
### Code Quality and Analysis
|
|
14
16
|
|
|
@@ -28,16 +30,20 @@ The following tools are available through the Codacy MCP Server:
|
|
|
28
30
|
- Performance issue investigation
|
|
29
31
|
- Complexity analysis
|
|
30
32
|
|
|
31
|
-
### File Management
|
|
33
|
+
### File Management and Analysis
|
|
32
34
|
|
|
33
35
|
- `codacy_list_files`: List files in a repository with pagination support.
|
|
34
36
|
- `codacy_get_file_issues`: Get the issue list for a file in a repository.
|
|
35
37
|
- `codacy_get_file_coverage`: Get coverage information for a file in the head commit of a repository branch.
|
|
36
|
-
- `codacy_get_file_clones`: Get the list of duplication clones (identical or very similar code segments) for a file in a repository.
|
|
38
|
+
- `codacy_get_file_clones`: Get the list of duplication clones (identical or very similar code segments) for a file in a repository.
|
|
39
|
+
- `codacy_get_file_with_analysis`: Get detailed analysis information for a file, including metrics for Grade, Issues, Duplication, Complexity, and Coverage.
|
|
37
40
|
|
|
38
41
|
### Security Analysis
|
|
39
42
|
|
|
40
|
-
- `
|
|
43
|
+
- `codacy_search_organization_srm_items`: Primary tool to list security items/issues/vulnerabilities/findings across an organization. Results are related to the organization's security and risk management (SRM) dashboard on Codacy.
|
|
44
|
+
- `codacy_search_repository_srm_items`: List security items/issues/vulnerabilities/findings for a specific repository.
|
|
45
|
+
|
|
46
|
+
Both tools provide comprehensive security analysis including:
|
|
41
47
|
|
|
42
48
|
- SAST (Code scanning)
|
|
43
49
|
- Secrets (Secret scanning)
|
|
@@ -47,19 +53,29 @@ The following tools are available through the Codacy MCP Server:
|
|
|
47
53
|
- DAST (Dynamic Application Security Testing)
|
|
48
54
|
- PenTesting (Penetration testing)
|
|
49
55
|
|
|
50
|
-
Use this as the first tool when investigating security or compliance concerns.
|
|
51
|
-
|
|
52
56
|
### Pull Request Analysis
|
|
53
57
|
|
|
54
|
-
- `codacy_list_repository_pull_requests`: List pull requests from a repository that the user has access to.
|
|
55
|
-
- `
|
|
58
|
+
- `codacy_list_repository_pull_requests`: List pull requests from a repository that the user has access to.
|
|
59
|
+
- `codacy_get_repository_pull_request`: Get detailed information about a specific pull request.
|
|
60
|
+
- `codacy_list_pull_request_issues`: Returns a list of issues found in a pull request (new or fixed issues).
|
|
56
61
|
- `codacy_get_pull_request_files_coverage`: Get diff coverage information for all files in a pull request.
|
|
57
62
|
- `codacy_get_pull_request_git_diff`: Returns the human-readable Git diff of a pull request.
|
|
58
63
|
|
|
59
|
-
###
|
|
64
|
+
### Tool and Pattern Management
|
|
60
65
|
|
|
61
|
-
- `
|
|
66
|
+
- `codacy_list_tools`: List all code analysis tools available in Codacy.
|
|
67
|
+
- `codacy_list_repository_tools`: Get analysis tools settings and available tools for a repository.
|
|
68
|
+
- `codacy_get_pattern`: Get the definition of a specific pattern.
|
|
69
|
+
- `codacy_list_repository_tool_patterns`: List the patterns of a tool available for a repository.
|
|
70
|
+
- `codacy_get_issue`: Get detailed information about a specific issue.
|
|
71
|
+
|
|
72
|
+
### CLI Analysis
|
|
62
73
|
|
|
74
|
+
- `codacy_cli_analyze`: Run quality analysis locally using Codacy CLI. Features include:
|
|
75
|
+
- Analyze specific files or entire directories
|
|
76
|
+
- Use specific tools or all available tools
|
|
77
|
+
- Get immediate results without waiting for scheduled analysis
|
|
78
|
+
- Apply fixes based on Codacy configuration
|
|
63
79
|
|
|
64
80
|
## Setup
|
|
65
81
|
|
|
@@ -10,7 +10,7 @@ const CLI_GLOBAL_COMMAND = 'codacy-cli';
|
|
|
10
10
|
const MAX_BUFFER_SIZE = 1024 * 1024 * 10;
|
|
11
11
|
const execAsync = (command, options) => {
|
|
12
12
|
return new Promise((resolve, reject) => {
|
|
13
|
-
exec(
|
|
13
|
+
exec(command, {
|
|
14
14
|
cwd: options.rootPath,
|
|
15
15
|
maxBuffer: MAX_BUFFER_SIZE, // To solve: stdout maxBuffer exceeded
|
|
16
16
|
}, (error, stdout, stderr) => {
|