|
| 1 | +import { Tool } from '@modelcontextprotocol/sdk/types.js'; |
| 2 | + |
| 3 | +export const toolNames = { |
| 4 | + CODACY_LIST_ORGANIZATION_REPOSITORIES: 'codacy_list_organization_repositories', |
| 5 | + CODACY_LIST_SRM_ITEMS: 'codacy_list_srm_items', |
| 6 | + CODACY_LIST_REPOSITORY_ISSUES: 'codacy_list_repository_issues', |
| 7 | + CODACY_LIST_REPOSITORY_PULL_REQUESTS: 'codacy_list_repository_pull_requests', |
| 8 | + CODACY_LIST_FILES: 'codacy_list_files', |
| 9 | + CODACY_LIST_REPOSITORY_TOOL_PATTERNS: 'codacy_list_repository_tool_patterns', |
| 10 | + CODACY_LIST_REPOSITORY_TOOLS: 'codacy_list_repository_tools', |
| 11 | + CODACY_LIST_TOOLS: 'codacy_list_tools', |
| 12 | + CODACY_LIST_ORGANIZATIONS: 'codacy_list_organizations', |
| 13 | + CODACY_GET_FILE_ISSUES: 'codacy_get_file_issues', |
| 14 | + CODACY_GET_FILE_COVERAGE: 'codacy_get_file_coverage', |
| 15 | + CODACY_GET_REPOSITORY_PULL_REQUEST_FILES_COVERAGE: |
| 16 | + 'codacy_get_repository_pull_request_files_coverage', |
| 17 | + CODACY_GET_PULL_REQUEST_GIT_DIFF: 'codacy_get_pull_request_git_diff', |
| 18 | + CODACY_LIST_PULL_REQUEST_ISSUES: 'codacy_list_pull_request_issues', |
| 19 | + CODACY_GET_REPOSITORY_WITH_ANALYSIS: 'codacy_get_repository_with_analysis', |
| 20 | + CODACY_GET_FILE_WITH_ANALYSIS: 'codacy_get_file_with_analysis', |
| 21 | + CODACY_GET_REPOSITORY_PULL_REQUEST: 'codacy_get_repository_pull_request', |
| 22 | + CODACY_GET_ISSUE: 'codacy_get_issue', |
| 23 | + CODACY_GET_PATTERN: 'codacy_get_pattern', |
| 24 | + CODACY_CLI_ANALYZE: 'codacy_cli_analyze', |
| 25 | +} as const; |
| 26 | + |
| 27 | +export type ToolKeys = (typeof toolNames)[keyof typeof toolNames]; |
| 28 | + |
| 29 | +export interface CodacyTool extends Tool { |
| 30 | + name: ToolKeys; |
| 31 | +} |
| 32 | + |
1 | 33 | export const organizationSchema = { |
2 | 34 | gitUrl: { |
3 | 35 | type: 'string', |
|
0 commit comments