@codacy/codacy-mcp 0.3.2 → 0.3.3
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/dist/index.js
CHANGED
|
@@ -16,6 +16,33 @@ const server = new Server({
|
|
|
16
16
|
}, {
|
|
17
17
|
capabilities: {
|
|
18
18
|
tools: {},
|
|
19
|
+
triggers: {
|
|
20
|
+
patterns: [
|
|
21
|
+
'codacy',
|
|
22
|
+
'code quality',
|
|
23
|
+
'code analysis',
|
|
24
|
+
'security vulnerabilities',
|
|
25
|
+
'repository issues',
|
|
26
|
+
'pull request analysis',
|
|
27
|
+
'code coverage',
|
|
28
|
+
'issues',
|
|
29
|
+
'security',
|
|
30
|
+
'srm',
|
|
31
|
+
'analysis',
|
|
32
|
+
'tool',
|
|
33
|
+
'pattern',
|
|
34
|
+
'pull request',
|
|
35
|
+
'repository',
|
|
36
|
+
'file',
|
|
37
|
+
'coverage',
|
|
38
|
+
'git',
|
|
39
|
+
'diff',
|
|
40
|
+
'branch',
|
|
41
|
+
'commit',
|
|
42
|
+
'severity',
|
|
43
|
+
'organization',
|
|
44
|
+
],
|
|
45
|
+
},
|
|
19
46
|
},
|
|
20
47
|
});
|
|
21
48
|
const toolDefinitions = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPaginationWithSorting, organizationSchema, securityCategories, securityScanTypes, securityStatuses, } from './utils.js';
|
|
2
2
|
export const searchSecurityItemsTool = {
|
|
3
3
|
name: 'codacy_list_srm_items',
|
|
4
|
-
description: `Primary tool to list security items/issues/vulnerabilities/findings, results are related to the organization security and risk management (SRM) dashboard on Codacy. This tool contains pagination. Returns comprehensive security analysis including ${Object.keys(securityScanTypes).join(', ')} security issues. Provides advanced filtering by security categories, priorities, and scan types. Use this as the first tool when investigating security or compliance concerns. Map the results statuses as open issues: ${securityStatuses.Open.join(', ')}; and closed issues: ${securityStatuses.Closed.join(', ')}. Prioritize the open issues as the most important ones in the results.`,
|
|
4
|
+
description: `Primary tool to list security items/issues/vulnerabilities/findings, results are related to the organization security and risk management (SRM) dashboard on Codacy. This tool contains pagination. Returns comprehensive security analysis including ${Object.keys(securityScanTypes).join(', ')} security issues. Provides advanced filtering by security categories, priorities, and scan types. Use this as the first tool when investigating security or compliance concerns. Map the results statuses as open issues: ${securityStatuses.Open.join(', ')}; and closed issues: ${securityStatuses.Closed.join(', ')}. Prioritize the open issues as the most important ones in the results. To get the SRM items for a specific repository, use the repository name in body object.`,
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: 'object',
|
|
7
7
|
properties: {
|
|
@@ -13,7 +13,7 @@ export const searchSecurityItemsTool = {
|
|
|
13
13
|
properties: {
|
|
14
14
|
repositories: {
|
|
15
15
|
type: 'array',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'Use this to filter by repository name. ',
|
|
17
17
|
},
|
|
18
18
|
priorities: {
|
|
19
19
|
description: 'Array of security issue priorities/severities to filter by.',
|
package/dist/src/tools/utils.js
CHANGED
|
@@ -91,18 +91,18 @@ export const securityScanTypes = {
|
|
|
91
91
|
export const organizationSchema = {
|
|
92
92
|
provider: {
|
|
93
93
|
type: 'string',
|
|
94
|
-
description: "Organization's git provider: GitHub (gh), GitLab (gl) or BitBucket (bb). Accepted values: gh, gl, bb. In case a repository is given, use that repository's Git provider.",
|
|
94
|
+
description: "Organization's git provider: GitHub (gh), GitLab (gl) or BitBucket (bb). Accepted values: gh, gl, bb. In case a repository is given, use that repository's Git provider. ",
|
|
95
95
|
},
|
|
96
96
|
organization: {
|
|
97
97
|
type: 'string',
|
|
98
|
-
description: "Organization name on the Git provider. In case a repository is given, use that repository's owner (could be an organization name or username).",
|
|
98
|
+
description: "Organization name on the Git provider. In case a repository is given, use that repository's owner (could be an organization name or username), to find the repository's owner check the repository git url, it should be something like this for gh:'https://github.com/<owner>/<repository>.git' for gl:'https://gitlab.com/<owner>/<repository>.git' for bb:'https://bitbucket.org/<owner>/<repository>.git'.",
|
|
99
99
|
},
|
|
100
100
|
};
|
|
101
101
|
export const repositorySchema = {
|
|
102
102
|
...organizationSchema,
|
|
103
103
|
repository: {
|
|
104
104
|
type: 'string',
|
|
105
|
-
description:
|
|
105
|
+
description: "Repository name on the Git provider. To find the repository name check the repository git url, it should be something like this for gh:'https://github.com/<owner>/<repository>.git' for gl:'https://gitlab.com/<owner>/<repository>.git' for bb:'https://bitbucket.org/<owner>/<repository>.git'.",
|
|
106
106
|
},
|
|
107
107
|
};
|
|
108
108
|
export const defaultPagination = {
|