{"at":"2026-11-23T05:15:06.554Z","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-23T05:15:06.981Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:15:07.082Z","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-23T05:15:07.505Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"lunge","version":"1.3.1"}}}}
{"at":"2026-11-23T05:15:07.505Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:15:07.505Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:15:07.510Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"REST/HTTP request with auth, assertions, {{var}} extraction. Returns token-efficient summary.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"assert":{"description":"e.g. [{status:200},{jsonpath:'$.x',equals:1},{timeMs:{lt:500}}].","items":{"additionalProperties":{},"type":"object"},"type":"array"},"auth":{"additionalProperties":false,"properties":{"in":{"enum":["header","query"],"type":"string"},"key":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"type":{"enum":["bearer","basic","apikey"],"type":"string"},"username":{"type":"string"},"value":{"type":"string"}},"required":["type"],"type":"object"},"body":{"description":"Request body (object=json, string=text)."},"bodyType":{"description":"Default json.","enum":["json","form","text","raw"],"type":"string"},"env":{"description":"Environment name for variable resolution.","type":"string"},"extract":{"additionalProperties":{"type":"string"},"description":"Capture vars: { token: '$.token' }. Use via {{token}} later.","type":"object"},"followRedirects":{"type":"boolean"},"headers":{"additionalProperties":{},"type":"object"},"method":{"description":"HTTP method (default GET).","type":"string"},"query":{"additionalProperties":{},"type":"object"},"timeoutMs":{"exclusiveMinimum":0,"type":"integer"},"url":{"description":"Full URL. May contain {{variables}}.","type":"string"},"verbosity":{"description":"summary (default, token-efficient), headers, or full. Auto-downgraded to summary when extract is set.","enum":["summary","headers","full"],"type":"string"}},"required":["url"],"type":"object"},"name":"http_request","title":"HTTP request"},{"description":"GraphQL query/mutation over HTTP. Supports {{var}} extraction. Note: `ok` reflects HTTP status only (200 = ok). GraphQL-level errors are returned in `graphqlErrors` — always check both. Use extract with $.data.* for success data and $.errors.* for error details.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"assert":{"description":"e.g. [{status:200},{jsonpath:'$.x',equals:1},{timeMs:{lt:500}}].","items":{"additionalProperties":{},"type":"object"},"type":"array"},"auth":{"additionalProperties":false,"properties":{"in":{"enum":["header","query"],"type":"string"},"key":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"type":{"enum":["bearer","basic","apikey"],"type":"string"},"username":{"type":"string"},"value":{"type":"string"}},"required":["type"],"type":"object"},"env":{"type":"string"},"extract":{"additionalProperties":{"type":"string"},"description":"Capture vars: { token: '$.data.login.accessToken' }.","type":"object"},"headers":{"additionalProperties":{},"type":"object"},"query":{"description":"GraphQL query/mutation document.","type":"string"},"timeoutMs":{"exclusiveMinimum":0,"type":"integer"},"url":{"description":"GraphQL endpoint URL.","type":"string"},"variables":{"additionalProperties":{},"type":"object"},"verbosity":{"description":"summary (default, token-efficient), headers, or full. Auto-downgraded to summary when extract is set.","enum":["summary","headers","full"],"type":"string"}},"required":["url","query"],"type":"object"},"name":"graphql_request","title":"GraphQL request"},{"description":"Connect WS, send messages, collect frames until stop condition. Returns summarized batch. Frame shape: {type:'text'|'binary', text:string, json:object|null}. Assertions: anyFrame {jsonpath,equals} matches any frame; frameCount {gte/lte/eq}. Example: assert=[{anyFrame:{jsonpath:'$.type',equals:'text'}},{frameCount:{gte:1}}].","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"assert":{"description":"e.g. [{anyFrame:{jsonpath:'$.type',equals:'ack'}},{frameCount:{gte:1}}]","items":{"additionalProperties":{},"type":"object"},"type":"array"},"collect":{"additionalProperties":false,"properties":{"maxDurationMs":{"exclusiveMinimum":0,"type":"integer"},"maxMessages":{"exclusiveMinimum":0,"type":"integer"},"until":{"additionalProperties":{},"description":"Stop when a frame matches, e.g. {jsonpath:'$.type',equals:'done'}.","type":"object"}},"type":"object"},"env":{"type":"string"},"headers":{"additionalProperties":{},"type":"object"},"send":{"description":"Messages to send after connecting.","items":{"additionalProperties":false,"properties":{"json":{},"text":{"type":"string"}},"type":"object"},"type":"array"},"subprotocols":{"items":{"type":"string"},"type":"array"},"url":{"description":"ws:// or wss:// URL.","type":"string"},"verbosity":{"enum":["summary","headers","full"],"type":"string"}},"required":["url"],"type":"object"},"name":"ws_session","title":"WebSocket session (bounded)"},{"description":"Subscribe to SSE, collect events until stop condition. Returns summarized batch with assertions. Event shape: {event:string, data:string, id:string|null, json:object|null}. Assertions: anyEvent {jsonpath,equals} matches any event; eventCount {gte/lte/eq}. Example: assert=[{anyEvent:{jsonpath:'$.event',equals:'notification'}},{eventCount:{gte:1}}].","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"assert":{"description":"e.g. [{anyEvent:{jsonpath:'$.type',equals:'tick'}},{eventCount:{gte:1}}]","items":{"additionalProperties":{},"type":"object"},"type":"array"},"collect":{"additionalProperties":false,"properties":{"maxDurationMs":{"exclusiveMinimum":0,"type":"integer"},"maxEvents":{"exclusiveMinimum":0,"type":"integer"}},"type":"object"},"env":{"type":"string"},"headers":{"additionalProperties":{},"type":"object"},"url":{"description":"SSE endpoint URL.","type":"string"},"verbosity":{"enum":["summary","headers","full"],"type":"string"}},"required":["url"],"type":"object"},"name":"sse_session","title":"SSE session (bounded)"},{"description":"Drill into a stored response by handle without re-running the request. Use jsonpath to pull only the slice you need. Supports RFC 9535 filters ($.items[?@.id==1]) and slices ($.items[0:5]). Use double quotes in filters. Omit jsonpath to return the full stored body — for graphql_introspect this is the enriched `schema` (so $.queries, $.mutations, $.inputTypes work directly); for ws_session it's the `frames` array; for sse_session it's the `events` array; otherwise it's the parsed bodyJson/bodyText.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"handle":{"description":"responseHandle from a prior tool call.","type":"string"},"jsonpath":{"description":"RFC 9535 JSONPath. Filters need double quotes: [?@.name==\"x\"]. Omit for full body.","type":"string"},"maxItems":{"description":"Cap array elements returned (default 50). Excess shown as truncation marker.","exclusiveMinimum":0,"type":"integer"},"maxStr":{"description":"Cap string length in chars (default 2000).","exclusiveMinimum":0,"type":"integer"}},"required":["handle"],"type":"object"},"name":"inspect_response","title":"Inspect a stored response"},{"description":"Create/update named env. Values may be {value, secret:true}. Use via {{name}}.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"Environment name, e.g. 'dev'.","type":"string"},"vars":{"additionalProperties":{},"description":"Map of variables. Use { value, secret: true } to mark secrets.","type":"object"}},"required":["name","vars"],"type":"object"},"name":"set_env","title":"Set environment variables"},{"description":"List env names and (masked) variables of the active or specified one.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"Show variables for this env.","type":"string"}},"type":"object"},"name":"list_envs","title":"List environments"},{"description":"Find collection files (.yaml/.yml/.json) under a directory.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dir":{"description":"Directory to scan. Defaults to the current working directory.","type":"string"}},"type":"object"},"name":"list_collections","title":"List collections"},{"description":"Run declarative collection file. Threads extracted vars between steps. Optional JUnit XML export.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"env":{"description":"Environment to resolve variables from.","type":"string"},"junitPath":{"description":"Write a JUnit XML report to this path.","type":"string"},"only":{"description":"Only run steps with these ids.","items":{"type":"string"},"type":"array"},"path":{"description":"Path to the collection file.","type":"string"},"tags":{"description":"Only run steps having any of these tags.","items":{"type":"string"},"type":"array"}},"required":["path"],"type":"object"},"name":"run_collection","title":"Run a collection"},{"description":"Parse curl into structured request. Optionally execute it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"curl":{"description":"The full curl command, e.g. \"curl -X POST https://... -H '...' -d '...'\".","type":"string"},"execute":{"description":"If true, run the parsed request and return the result.","type":"boolean"},"verbosity":{"enum":["summary","headers","full"],"type":"string"}},"required":["curl"],"type":"object"},"name":"import_curl","title":"Import a curl command"},{"description":"Introspect GraphQL endpoint, return summarized schema with field signatures (args + return types) and input types.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"auth":{"additionalProperties":false,"properties":{"in":{"enum":["header","query"],"type":"string"},"key":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"type":{"enum":["bearer","basic","apikey"],"type":"string"},"username":{"type":"string"},"value":{"type":"string"}},"required":["type"],"type":"object"},"env":{"type":"string"},"headers":{"additionalProperties":{},"type":"object"},"timeoutMs":{"exclusiveMinimum":0,"type":"integer"},"url":{"description":"GraphQL endpoint URL.","type":"string"}},"required":["url"],"type":"object"},"name":"graphql_introspect","title":"GraphQL introspection"},{"description":"Open long-lived WS, return handle. Use ws_send/ws_recv/ws_close to interact.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"env":{"type":"string"},"headers":{"additionalProperties":{},"type":"object"},"send":{"description":"Messages to send immediately after connecting.","items":{"additionalProperties":false,"properties":{"json":{},"text":{"type":"string"}},"type":"object"},"type":"array"},"subprotocols":{"items":{"type":"string"},"type":"array"},"url":{"description":"ws:// or wss:// URL. May contain {{variables}}.","type":"string"}},"required":["url"],"type":"object"},"name":"ws_open","title":"Open persistent WebSocket"},{"description":"Send a single message on a persistent WebSocket connection opened with ws_open.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"handle":{"description":"Handle returned by ws_open.","type":"string"},"json":{"description":"Send as a JSON message (mutually exclusive with text)."},"text":{"description":"Send as a raw text message.","type":"string"}},"required":["handle"],"type":"object"},"name":"ws_send","title":"Send WebSocket message"},{"description":"Drain buffered frames from persistent WS. Blocks up to maxDurationMs for first frame.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"handle":{"description":"Handle returned by ws_open.","type":"string"},"maxDurationMs":{"description":"Max wait for the first frame (default 1000ms).","exclusiveMinimum":0,"type":"integer"},"maxMessages":{"description":"Max frames to drain (default 50).","exclusiveMinimum":0,"type":"integer"}},"required":["handle"],"type":"object"},"name":"ws_recv","title":"Receive WebSocket frames"},{"description":"Close a persistent WebSocket connection and release its handle.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"handle":{"description":"Handle returned by ws_open.","type":"string"}},"required":["handle"],"type":"object"},"name":"ws_close","title":"Close persistent WebSocket"},{"description":"Persist last ad-hoc request (or explicit spec) as a new step in a collection file. Params: path (required, .json/.yaml/.yml), id (optional, step id), type (optional, http|graphql|ws|sse), request (optional, explicit spec; defaults to last call's request), assert, extract, tags, name (optional, set collection name). Returns {saved, path, stepId, stepCount} or isError if no prior request and no explicit request.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"assert":{"items":{"additionalProperties":{},"type":"object"},"type":"array"},"extract":{"additionalProperties":{"type":"string"},"type":"object"},"id":{"description":"Step id. Defaults to a generated one.","type":"string"},"name":{"description":"Set/replace the collection name.","type":"string"},"path":{"description":"Collection file path (.yaml/.yml/.json).","type":"string"},"request":{"additionalProperties":{},"description":"Explicit request spec. Defaults to the last call's request.","type":"object"},"tags":{"items":{"type":"string"},"type":"array"},"type":{"description":"Step type; defaults to the last request's type.","enum":["http","graphql","ws","sse"],"type":"string"}},"required":["path"],"type":"object"},"name":"save_request","title":"Save request to collection"},{"description":"Configure host allow/deny lists + dry-run mode. Glob patterns: *, *.example.com. Pass an empty array to allow/deny to clear that list. Returns {policy:{allow,deny,dryRun}}.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"allow":{"description":"Allowed host patterns. Empty = allow any non-denied host.","items":{"type":"string"},"type":"array"},"deny":{"description":"Denied host patterns; takes precedence over allow. Pass [] to clear.","items":{"type":"string"},"type":"array"},"dryRun":{"description":"If true, validate requests but do not send them.","type":"boolean"}},"type":"object"},"name":"set_policy","title":"Set request policy"},{"description":"Parse OpenAPI/Swagger (JSON/YAML) → Lunge collection. One step per operation with 2xx assertion. Params: path (required, file path), out (optional, write collection to .json/.yaml/.yml), includeTags (optional, only ops with these tags), maxSteps (optional, cap step count, default 200). Returns {ok, imported, name, steps, writtenTo}.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"includeTags":{"description":"Only import operations with any of these tags.","items":{"type":"string"},"type":"array"},"maxSteps":{"description":"Cap the number of generated steps (default 200).","exclusiveMinimum":0,"type":"integer"},"out":{"description":"Write the resulting collection to this path (.yaml/.yml/.json).","type":"string"},"path":{"description":"Path to the OpenAPI/Swagger file.","type":"string"}},"required":["path"],"type":"object"},"name":"import_openapi","title":"Import OpenAPI to collection"},{"description":"Parse HAR file → Lunge collection. Splits query/headers/body. Optional 2xx filter. Params: path (required, .json HAR file), out (optional, write to .json/.yaml/.yml), only2xx (optional, only keep 2xx responses), maxSteps (optional, cap step count, default 200). Returns {ok, imported, name, steps, writtenTo}.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"maxSteps":{"description":"Cap the number of generated steps (default 200).","exclusiveMinimum":0,"type":"integer"},"only2xx":{"description":"Only include requests that returned a 2xx response.","type":"boolean"},"out":{"description":"Write the resulting collection to this path (.yaml/.yml/.json).","type":"string"},"path":{"description":"Path to the HAR file (.json).","type":"string"}},"required":["path"],"type":"object"},"name":"import_har","title":"Import HAR to collection"},{"description":"Return the Lunge collection format reference: top-level fields, step schema, request specs per protocol (http/graphql/ws/sse), full assertion vocabulary (status/header/jsonpath/timeMs/schema/not + matchers), WS/SSE-specific assertions, variable chaining (extract + {{var}}), and JSONPath syntax. Call this BEFORE writing explicit steps for save_collection or reviewing saved output.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"collection_format","title":"Collection format reference"},{"description":"List all requests recorded in this session with full specs (method, url, query, headers, body, auth, assert, extract) and extracted values. Use this to review what happened before saving a multi-step collection. Each entry has an id (req_1, req_2, ...) for use with save_collection. Returns {count, entries:[{id, type, request, assert, extract, extractedValues, responseHandle}]}.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_history","title":"List request history"},{"description":"Save multiple requests as a multi-step collection file. Params: path (required, .json/.yaml/.yml), fromHistory (optional, array of history ids from list_history — saves in specified order; omit to save ALL history), steps (optional, explicit step specs — overrides fromHistory; call collection_format first for the schema), name (optional, collection name), description (optional), vars (optional), defaults (optional). Steps preserve extraction chaining ({{var}} from earlier steps' extract). Returns {saved, path, stepCount, stepIds}.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"defaults":{"additionalProperties":{},"description":"Default settings applied to every step (e.g. {timeoutMs: 10000, headers: {Accept: 'application/json'}}).","type":"object"},"description":{"description":"Collection description.","type":"string"},"fromHistory":{"description":"History entry ids to save (e.g. ['req_1','req_3']). Omit to save ALL history.","items":{"type":"string"},"type":"array"},"name":{"description":"Collection name.","type":"string"},"path":{"description":"Collection file path (.json/.yaml/.yml).","type":"string"},"steps":{"description":"Explicit step specs. Overrides fromHistory if provided.","items":{"additionalProperties":{},"type":"object"},"type":"array"},"vars":{"additionalProperties":{},"description":"Collection-level variables (e.g. {baseUrl: 'https://...', apiKey: '{{env.API_KEY}}'}).","type":"object"}},"required":["path"],"type":"object"},"name":"save_collection","title":"Save multi-step collection"}]}}}
