MCP GitHub 问题服务器
一个 MCP 服务器,为 LLM 提供使用 GitHub 问题作为待完成任务的能力。该服务器允许 LLM 获取 GitHub 问题详情并将其用作任务描述。
安装
手动安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MCP GitHub Issue Server:
npx -y @smithery/cli install mcp-github-issue --client claude
用法
作为 MCP 服务器
添加到您的 MCP 配置:
{
"mcpServers": {
"github-issue": {
"command": "npx",
"args": ["mcp-github-issue"]
}
}
}
可用工具
获取问题任务
获取 GitHub 问题详细信息以用作任务。
输入模式:
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "GitHub issue URL (https://github.com/owner/repo/issues/number)"
}
},
"required": ["url"]
}
示例用法:
<use_mcp_tool>
<server_name>github-issue</server_name>
<tool_name>get_issue_task</tool_name>
<arguments>
{
"url": "https://github.com/owner/repo/issues/123"
}
</arguments>
</use_mcp_tool>
响应格式:
{
"task": {
"title": "Issue Title",
"description": "Issue Description/Body",
"source": "https://github.com/owner/repo/issues/123"
}
}
特征
- 从公共存储库获取 GitHub 问题详细信息
- 公共存储库无需身份验证
- 返回结构化任务数据,包括标题、描述和源 URL
- 与模型上下文协议(MCP)兼容
发展
# Install dependencies
npm install
# Build the project
npm run build
# Run the server locally
npm run serve
# Format code
npm run format
# Run MCP inspector
npm run inspector
执照
麻省理工学院
作者
山姆·麦克劳德( https://smcleod.net )