{"at":"2026-11-23T01:42:22.399Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:42:22.918Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:42:23.019Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:42:23.479Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"mcp-api-translator","version":"0.4.1"}}}}
{"at":"2026-11-23T01:42:23.479Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:42:23.479Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:42:23.485Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Parse an OpenAPI or Postman spec and preview the MCP tools that would be generated, without writing any files. Use this to curate (filter/inspect) before generating.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"excludeOperations":{"description":"Drop operations by operationId, tool name, or tag.","items":{"type":"string"},"type":"array"},"format":{"description":"Force a format; defaults to auto-detect.","enum":["openapi","postman","auto"],"type":"string"},"includeTags":{"description":"Keep only operations with these tags.","items":{"type":"string"},"type":"array"},"methods":{"description":"Keep only these HTTP methods, e.g. [GET, POST].","items":{"type":"string"},"type":"array"},"pathGlob":{"description":"Keep only matching paths, e.g. \"/v1/**\".","type":"string"},"spec":{"description":"Inline spec text (OpenAPI or Postman; JSON or YAML).","type":"string"},"specPath":{"description":"Path to a local spec file (JSON or YAML).","type":"string"}},"type":"object"},"name":"analyze_spec","title":"Analyze API spec (preview)"},{"description":"Generate a complete, runnable TypeScript MCP server project from an OpenAPI or Postman spec. Writes the project to outputDir. Use force to overwrite a non-empty directory.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"auth":{"description":"Auth to use when the spec declares no security schemes of its own. Applied only to operations whose own security list is empty; credentials are read from env vars as usual.","oneOf":[{"properties":{"in":{"enum":["header","query","cookie"],"type":"string"},"name":{"description":"Parameter name; defaults to \"X-API-Key\".","type":"string"},"type":{"const":"apiKey","type":"string"}},"required":["type"],"type":"object"},{"properties":{"scheme":{"enum":["bearer","basic"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","scheme"],"type":"object"},{"properties":{"grant":{"enum":["client_credentials","refresh_token"],"type":"string"},"tokenUrl":{"type":"string"},"type":{"const":"oauth2","type":"string"}},"required":["type","tokenUrl"],"type":"object"}]},"excludeOperations":{"description":"Drop operations by operationId, tool name, or tag.","items":{"type":"string"},"type":"array"},"force":{"description":"Overwrite a non-empty / existing project.","type":"boolean"},"format":{"description":"Force a format; defaults to auto-detect.","enum":["openapi","postman","auto"],"type":"string"},"includeTags":{"description":"Keep only operations with these tags.","items":{"type":"string"},"type":"array"},"language":{"description":"Output language. Defaults to typescript.","enum":["typescript","python"],"type":"string"},"methods":{"description":"Keep only these HTTP methods, e.g. [GET, POST].","items":{"type":"string"},"type":"array"},"outputDir":{"description":"Directory to write the generated project into.","type":"string"},"pathGlob":{"description":"Keep only matching paths, e.g. \"/v1/**\".","type":"string"},"pythonVariant":{"description":"Python server flavor (requires language: python): the low-level MCP SDK (default) or FastMCP. Both serve the same raw JSON-Schema tool inputs.","enum":["lowlevel","fastmcp"],"type":"string"},"serverName":{"description":"npm/package name; defaults from the API title.","type":"string"},"serverVersion":{"type":"string"},"spec":{"description":"Inline spec text (OpenAPI or Postman; JSON or YAML).","type":"string"},"specPath":{"description":"Path to a local spec file (JSON or YAML).","type":"string"},"toolCatalog":{"description":"Also write tool-catalog.json (name/summary/tags per tool) for discovery layers.","type":"boolean"},"transport":{"description":"Transport(s) to generate (TypeScript only). Defaults to stdio.","enum":["stdio","http","both"],"type":"string"}},"required":["outputDir"],"type":"object"},"name":"generate_mcp_server","title":"Generate MCP server"},{"description":"Append the operations from another spec to an already-generated project (identified by its .mcp-translator.json manifest). Idempotent: operations already present are skipped, and hand-edited tool files are preserved unless force is set. Enables aggregating multiple APIs into one MCP server.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"auth":{"description":"Auth to use when the spec declares no security schemes of its own. Applied only to operations whose own security list is empty; credentials are read from env vars as usual.","oneOf":[{"properties":{"in":{"enum":["header","query","cookie"],"type":"string"},"name":{"description":"Parameter name; defaults to \"X-API-Key\".","type":"string"},"type":{"const":"apiKey","type":"string"}},"required":["type"],"type":"object"},{"properties":{"scheme":{"enum":["bearer","basic"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","scheme"],"type":"object"},{"properties":{"grant":{"enum":["client_credentials","refresh_token"],"type":"string"},"tokenUrl":{"type":"string"},"type":{"const":"oauth2","type":"string"}},"required":["type","tokenUrl"],"type":"object"}]},"excludeOperations":{"description":"Drop operations by operationId, tool name, or tag.","items":{"type":"string"},"type":"array"},"force":{"description":"Overwrite existing tool files of the same name.","type":"boolean"},"format":{"description":"Force a format; defaults to auto-detect.","enum":["openapi","postman","auto"],"type":"string"},"includeTags":{"description":"Keep only operations with these tags.","items":{"type":"string"},"type":"array"},"methods":{"description":"Keep only these HTTP methods, e.g. [GET, POST].","items":{"type":"string"},"type":"array"},"pathGlob":{"description":"Keep only matching paths, e.g. \"/v1/**\".","type":"string"},"projectDir":{"description":"Path to an existing generated project.","type":"string"},"spec":{"description":"Inline spec text (OpenAPI or Postman; JSON or YAML).","type":"string"},"specPath":{"description":"Path to a local spec file (JSON or YAML).","type":"string"},"toolCatalog":{"description":"Also write tool-catalog.json; defaults to refreshing it if the project has one.","type":"boolean"}},"required":["projectDir"],"type":"object"},"name":"extend_mcp_server","title":"Extend an existing generated MCP server"},{"description":"Report the input formats, auth schemes, transports, and limits this tool supports.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_supported_features","title":"List supported features"}]}}}
