Skip to content

Add 'mcp' to mcp graphql UA#400

Merged
eapache-opslevel merged 1 commit intofeature/mcpfrom
ehuus/add-mcp-to-gql-client
Apr 17, 2025
Merged

Add 'mcp' to mcp graphql UA#400
eapache-opslevel merged 1 commit intofeature/mcpfrom
ehuus/add-mcp-to-gql-client

Conversation

@eapache-opslevel
Copy link
Contributor

This requires creating a separate graphql client, but we only do that if we are running the MCP server so the overhead is minimal.

Copy link

Copilot AI 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

This PR updates the MCP command implementation to use a dedicated GraphQL client when running the MCP server.

  • Introduces a new GraphQL client initialized with a unique identifier (mcp-version).
  • Removes redundant calls to getClientGQL in each tool function, centralizing client instantiation.

Copy link
Collaborator

@rocktavious rocktavious left a comment

Choose a reason for hiding this comment

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

🚀

@eapache-opslevel eapache-opslevel merged commit 6ebccfa into feature/mcp Apr 17, 2025
2 checks passed
@eapache-opslevel eapache-opslevel deleted the ehuus/add-mcp-to-gql-client branch April 17, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants