cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

clarify the definition of MCP opeartions

Open biubiubiuboomboomboom opened this issue 5 months ago • 3 comments

Component(s)

router

Is your feature request related to a problem? Please describe.

Currently , MCP tool descriptions are generated from GraphQL operation comments , and tool names are fix (e.g execute_operation_ *). this approach may confuse user and lacks flexibility.

Describe the solution you'd like

I think we could :

  • Allow users to define the MCP tool's name and use default generation rule like execute_operation_ * if name is empty.
  • add a description field or declaration to define MCP tool's description .

Describe alternatives you've considered

No response

Additional context

No response

biubiubiuboomboomboom avatar Sep 15 '25 05:09 biubiubiuboomboomboom

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

github-actions[bot] avatar Sep 15 '25 05:09 github-actions[bot]

Hi @biubiubiuboomboomboom, thank you for the feedback. Adding another way to enrich the context for tools is a great idea. We will work on this as soon as possible.

Noroth avatar Sep 30 '25 09:09 Noroth

Just a quick update on this issue:

There has been a recent update to the GraphQL Spec (September 2025) which now permits Descriptions in Executable Definitions - Operations and Fragments.

  • https://spec.graphql.org/September2025/#sec-Descriptions
  • https://github.com/graphql/graphql-spec/pull/1170

As such, we are looking to implement this support in the underlying https://github.com/wundergraph/graphql-go-tools/pull/1331/files library.

Then we can update the MCPServer in the Cosmo Router.

asoorm avatar Oct 23 '25 10:10 asoorm