Add support for raw GraphQL queries
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 62/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- github, go, graphql
調査の方向性
既存の list_issues の GraphQL 実装と MCP ツールの登録を追跡し、GitHub API の呼び出しとパラメーターがどのように公開されているかを理解します。query とオプションの variables をサポートする raw GraphQL エントリーポイントを、ドキュメントに記載された GraphQL エンドポイントを対象として追加し、queries と mutations が利用可能な結果を返すことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Feature Request: Raw GraphQL Query Tool
Problem
The current MCP server exposes a rich set of REST-based tools but has no way to execute arbitrary GraphQL queries against the GitHub API. This is a significant gap because several important GitHub operations are only available — or significantly richer — via GraphQL.
A concrete example that motivated this request: resolving pull request review threads requires the PRRT_xxx node ID, which is only returned by GraphQL. With the current MCP server there is no way to resolve review threads programmatically, even though pull_request_review_write supports the resolve_thread method and accepts a threadId.
Proposed Solution
Add a graphql tool that executes a raw GraphQL query or mutation against https://api.github.com/graphql, e.g.:
{
"name": "graphql",
"description": "Execute a raw GraphQL query or mutation against the GitHub API.",
"parameters": {
"query": "string — the GraphQL query or mutation",
"variables": "object (optional) — variables to pass to the query"
}
}
Use Cases
- Fetching pull request review thread node IDs (
PRRT_xxx) to resolve threads - Querying
suggestedActorsto discover the Copilot bot handle before assigning - Using
assignCopilotToIssuemutation (currently only available via GraphQL) - Any operation that returns richer data via GraphQL than the equivalent REST endpoint
Notes
- The existing
list_issuestool already uses GraphQL under the hood, so the infrastructure is there - A raw query tool would unlock the full GitHub GraphQL API surface without requiring a new dedicated tool for every GraphQL-only feature
Thanks for the great work on the MCP server!
- 主要言語
- Go
- スター
- 33.1k
- フォーク
- 5k
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 25
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/github-mcp-server のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/github-mcp-server#3235 ·
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
github/github-mcp-server#3042 · コメント 2 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/github-mcp-server#3032 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
github/github-mcp-server#2803 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/github-mcp-server#2740 ·
github/github-mcp-server の issue をすべて見る
似ている issue
-
textual definition
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
geneontology/go-ontology#32653 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
needs design
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Priority/High ready-for-agent Severity/Major Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100