The Cosmo MCP Server allows developers to integrate Cosmo into their modern LLM/AI supported IDEs.
wgc
CLI tool with an API key.
cosmo_<redacted>
with your actual API key.
list_subgraphs
: Lists all subgraphs registered in your Cosmo Platform instance.
get_subgraphs
: Retrieves detailed information for specified subgraphs, including their GraphQL Schema Definition Language (SDL).
introspect_subgraph
: Introspects a running subgraph endpoint to retrieve its current GraphQL schema.
subgraph_verify_schema_changes
: Validates proposed changes to a subgraph’s schema. It checks for valid GraphQL SDL, composition compatibility with other subgraphs, and potential breaking changes against client traffic (optional).
list_supergraphs
: Lists all federated graphs (Supergraphs) in your Cosmo Platform instance, optionally filtered by namespace.
fetch_supergraph
: Fetches the composed schema (SDL and client schema) and configuration details for a specific Supergraph.
fetch_supergraph_router_config
: Retrieves the router configuration (e.g., for WunderGraph Cosmo Router) for a specific Supergraph.
fetch_supergraph_subgraphs
: Fetches a list of all subgraphs that are part of a specific Supergraph, including their individual schemas and routing information.
schema_change_proposal_workflow
: Generates a step-by-step guide or set of instructions for making a specific schema change to a Supergraph safely and effectively.
dream_query_workflow
: Takes a desired GraphQL query and generates instructions on the necessary schema modifications across relevant subgraphs to support that query within a Supergraph.
verify_query_against_remote_schema
: Validates a given GraphQL query against the schema of a deployed Supergraph in your Cosmo Platform instance.
verify_query_against_in_memory_schema
: Validates a given GraphQL query against a provided Supergraph schema string (e.g., a locally composed schema).
supergraph_changelog
: Fetches the changelog for a federated graph / Supergraph.
verify_router_config
: Verifies a provided Cosmo Router configuration (JSON or YAML) for validity.
cosmo_router_config_reference
: Provides a reference for the Cosmo Router configuration.
search_docs
: Searches the official WunderGraph Cosmo documentation for a given query.