Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Graphql toolset#645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
akenneth wants to merge4 commits intogithub:main
base:main
Choose a base branch
Loading
fromakenneth:graphql-tools-feature

Conversation

akenneth
Copy link

@akennethakenneth commentedJul 6, 2025
edited
Loading

Closes: TBD

Similar to the CLI support for running GraphQL queries, I am suggesting in this PR aGraphQL toolset which allows agent to compose and run any GraphQL query.

Why is GraphQL a good fit for GitHub's MCP?

GraphQL allows discovery and context building:

Based on introspection, the agent can work its way through the schema and find possible ways of exposing information and making changes. This adds lots of unavailable information and actions the agent can't do so far.

Reading more data types![image](https://github.com/user-attachments/assets/c45be177-d9e4-45ab-b994-772cabb5f859)

image

Access to more writing actions

image
image
image

More possibilities with less tools

No need to create a tool for each entity's CRUD operations and every mutations.

Up to date

New additions to the GraphQL schema are available in the MCP when they are released.

@akennethakenneth marked this pull request as ready for reviewJuly 7, 2025 11:57
@CopilotCopilotAI review requested due to automatic review settingsJuly 7, 2025 11:57
@akennethakenneth requested a review froma team as acode ownerJuly 7, 2025 11:57
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

Introducing a new GraphQL toolset to enable arbitrary GraphQL queries against GitHub’s API, including implementation, tests, and documentation.

  • Adds agraphql toolset in the default group
  • ImplementsExecuteGraphQLQuery handler with error categorization
  • Provides unit/integration tests and updates docs/README

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
pkg/github/tools.goAddsgraphql toolset toDefaultToolsetGroup
pkg/github/graphql_tools.goImplementsExecuteGraphQLQuery tool and handler
pkg/github/graphql_tools_test.goAdds unit tests for GraphQL execution scenarios
pkg/github/graphql_integration_test.goAdds integration tests for GraphQL tools
docs/remote-server.mdIncludes GraphQL in the remote-server tools table
docs/graphql-tools.mdDocuments the new GraphQL tools and error categories
README.mdAdds GraphQL toolset entry
Comments suppressed due to low confidence (2)

docs/graphql-tools.md:53

  • The documentation lists error categories like syntax, field, and type errors, but the implementation only categorizesrate_limit,authentication,permission,not_found, andexecution_error. Please align the docs with the actualerror_type values or extend the implementation accordingly.
- **Syntax errors**: Malformed GraphQL syntax

pkg/github/graphql_tools_test.go:30

  • Tests cover successful execution and missing parameters but do not exercise the error categorization branches (rate_limit, authentication, permission, not_found, execution_error). Add tests to simulate these error scenarios and verify the correcterror_type is set.
tests := []struct {

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@akenneth

[8]ページ先頭

©2009-2025 Movatter.jp