Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add support for raw GraphQL queries

Aperta
#2,437 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
github, go, graphql

Direzione di ricerca

Esamina l’implementazione GraphQL esistente di list_issues e la registrazione dello strumento MCP per capire come vengono esposte le chiamate all’API GitHub e i relativi parametri. Aggiungi l’entry point GraphQL raw con il supporto per query e variabili opzionali, utilizzando l’endpoint GraphQL documentato, e verifica che query e mutation restituiscano risultati utilizzabili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Go
Stelle
33.1k
Fork
5k
Merge medio
2g 1h
PR unite (30g)
25

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/github-mcp-server

Tutte le issue di github/github-mcp-server

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.