GitHub问题任务服务器

一个MCP服务器,为LLMs提供使用GitHub问题作为任务完成的能力。

  • by sammcj
  • JavaScript
  • 本地部署
  • 14 星标
  • 更新于
在 GitHub 查看 sammcj/mcp-github-issue

使用说明

MCP GitHub问题服务器

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

安装

手动安装

npx mcp-github-issue

通过Smithery安装

通过以下方式自动安装MCP GitHub Issue Server for Claude Desktop 史密瑟里:

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)