Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Add support for raw GraphQL queries

Aberta
#2,437 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
62/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
github, go, graphql

Direção de pesquisa

Rastreie a implementação GraphQL existente de list_issues e o registro da ferramenta MCP para entender como as chamadas à API do GitHub e os parâmetros são expostos. Adicione o ponto de entrada GraphQL bruto com suporte a query e variables opcionais, direcionando-o ao endpoint GraphQL documentado, e verifique se queries e mutations retornam resultados utilizáveis.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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!

Linguagem predominante
Go
Estrelas
33.1k
Forks
5k
Merge médio
2d 1h
PRs com merge (30d)
25

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de github/github-mcp-server

Todas as issues de github/github-mcp-server

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.