M

MCP GitHub任务管理

@sammcj/mcp-github-issue
Hosted
0 Stars 420 次浏览 sammcj 更新于 2026-08-23

启用大型语言模型(LLM)与GitHub问题进行交互,通过将详情提供为任务,从而实现通过GitHub平台的无缝集成和任务管理。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "github-issue": {
      "args": [
        "mcp-github-issue"
      ],
      "command": "npx"
    }
  }
}

可用工具 (1 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

get_issue_task 1 个参数 需填 1 项

Fetch GitHub issue details to use as a task

必填参数:url

服务介绍

MCP GitHub Issue Server

smithery badge

smithery badge

一个MCP服务器,为LLMs提供使用GitHub issues作为任务完成的能力。该服务器允许LLMs获取GitHub issue的详细信息并将其用作任务描述。

安装

手动安装

npx mcp-github-issue

通过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"]
    }
  }
}

可用工具

get_issue_task

获取GitHub issue详情以用作任务。

输入模式:

{
  "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 issue详情
  • 公开仓库无需认证
  • 返回结构化的任务数据,包括标题、描述和源URL
  • 与Model Context Protocol (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

许可证

MIT

作者

Sam McLeod (https://smcleod.net)

相关 MCP 服务