generate_spec
Generate a YAML test spec by automatically discovering an MCP server's capabilities. Returns a ready-to-run spec for testing tools, resources, and prompts.
Instructions
Generate a YAML test spec by discovering the capabilities of an MCP server. Returns a ready-to-run spec.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"transport": "<transport>"
},
"name": "generate_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transport | Yes | Transport type to use for connecting to the server | |
| url | No | Server URL (required for streamable-http transport) | |
| command | No | Command to launch the server (required for stdio transport) | |
| args | No | Arguments to pass to the server command | |
| headers | No | HTTP headers to send (e.g. Authorization) | |
| include | No | Only include these capability types in the spec | |
| exclude | No | Exclude these capability types from the spec | |
| depth | No | Discovery depth: shallow (list only) or deep (call each tool/resource/prompt) | |
| timeoutMs | No | Timeout in milliseconds (default: 30000) |