Prerequisites
- A running Cosmo Router with a composed schema. See Router Introduction.
- The base URL of a schema discovery service.
- A bearer token for that service, if it needs one.
- An MCP client, such as Claude Code, Claude Desktop, or Cursor.
Step 1 - Turn on schema discovery
Add this block to your router config file.router.config.yaml
token empty if your service runs with authentication off.
Step 2 - Start the router
The
index_id is the SHA-256 hash of your schema. Compute it yourself at any time:Step 3 - Connect an MCP client
Point your client at the MCP endpoint.search_schemaget_symbolsgenerate_query
Step 4 - Find out what the API does
Ask the client to search your schema. Use your own words, not field names.limit low. The records are large.
Step 5 - Generate an operation
Now ask for the data that you want. Do not write GraphQL.Step 6 - Run the operation
Send the document to your router.Step 7 - Ask for something that does not exist
Send a prompt that your schema cannot answer.Next steps
Guides
Find duplicate work, or turn an operation into a tool.
Tools
Every input and every response field.