Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add support for raw GraphQL queries

オープン
#2,437 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 suggestedActors to discover the Copilot bot handle before assigning
  • Using assignCopilotToIssue mutation (currently only available via GraphQL)
  • Any operation that returns richer data via GraphQL than the equivalent REST endpoint
Notes
  • The existing list_issues tool 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/github-mcp-server のほかの issue

github/github-mcp-server の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。