Skip to main content
Glama

Codacy MCP Server

Official
by codacy
listPullRequestIssuesTool.ts1.43 kB
import { generalOrganizationMistakes, generalRepositoryMistakes } from '../rules.js'; import { CodacyTool, defaultPagination, repositorySchema, toolNames } from '../schemas.js'; const rules = ` Use this tool to list the issues for specific pull requests. Common use cases: - When the user asks for the issues for a specific pull request - When the user is in a pull request context and asks for the issues Common mistakes: - Using this tool for listing the issues for specific files - Using this tool for listing the issues for an entire repository ${generalOrganizationMistakes} ${generalRepositoryMistakes} `; export const listPullRequestIssuesTool: CodacyTool = { name: toolNames.CODACY_LIST_PULL_REQUEST_ISSUES, description: `Returns a list of issues found in a pull request. We can request either new or fixed issues. \n ${rules}`, inputSchema: { type: 'object', properties: { ...repositorySchema, ...defaultPagination, pullRequestNumber: { type: 'number', description: 'Pull request number', }, status: { type: 'string', description: 'Filter issues by status. Accepted values: all, new, fixed.', enum: ['all', 'new', 'fixed'], }, onlyPotential: { type: 'boolean', description: 'If true, retrieves only potential issues', }, }, required: ['provider', 'organization', 'repository'], }, };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/codacy/codacy-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server