@codacy/codacy-mcp 0.3.6 → 0.3.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.
@@ -15,22 +15,45 @@ export const searchRepositoryIssuesTool = {
15
15
  patternIds: {
16
16
  type: 'array',
17
17
  description: 'Set of code pattern identifiers',
18
+ items: {
19
+ type: 'string',
20
+ description: 'Code pattern identifier',
21
+ },
18
22
  },
19
23
  languages: {
20
24
  type: 'array',
21
25
  description: `Set of language names, without spaces. Accepted values: ${codacyLanguages.join(', ')}`,
26
+ items: {
27
+ type: 'string',
28
+ enum: codacyLanguages,
29
+ description: 'Language name',
30
+ },
22
31
  },
23
32
  categories: {
24
33
  type: 'array',
25
34
  description: `Set of issue categories. Accepted values: ${issueCategories.join(', ')}`,
35
+ items: {
36
+ type: 'string',
37
+ enum: issueCategories,
38
+ description: 'Issue category',
39
+ },
26
40
  },
27
41
  levels: {
28
42
  type: 'array',
29
43
  description: 'Set of issue severity levels. Accepted values: Info, Warning and Error. Codacy maps these values as follows: Info->Minor, Warning->Medium, Error->Critical',
44
+ items: {
45
+ type: 'string',
46
+ enum: ['Info', 'Warning', 'Error'],
47
+ description: 'Issue severity level',
48
+ }
30
49
  },
31
50
  authorEmails: {
32
51
  type: 'array',
33
52
  description: 'Set of commit author email addresses',
53
+ items: {
54
+ type: 'string',
55
+ description: 'Commit author email address',
56
+ },
34
57
  },
35
58
  },
36
59
  },
@@ -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. To get the SRM items for a specific repository, use the repository name in body object.`,
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. Always add the current repository name in the repositories filter, unless specified otherwise. 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: {
@@ -14,6 +14,10 @@ export const searchSecurityItemsTool = {
14
14
  repositories: {
15
15
  type: 'array',
16
16
  description: 'Use this to filter by repository name.',
17
+ items: {
18
+ type: 'string',
19
+ description: 'Repository name',
20
+ },
17
21
  },
18
22
  priorities: {
19
23
  description: 'Array of security issue priorities/severities to filter by.',
@@ -52,6 +56,10 @@ export const searchSecurityItemsTool = {
52
56
  segments: {
53
57
  type: 'array',
54
58
  description: 'Set of segments ids (type number). Segment is a Codacy concept that groups repositories by different criteria',
59
+ items: {
60
+ type: 'number',
61
+ description: 'Segment id',
62
+ },
55
63
  },
56
64
  },
57
65
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/codacy-mcp",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Codacy MCP server",
5
5
  "license": "MIT",
6
6
  "author": "Codacy",