{"at":"2026-11-23T05:57:37.703Z","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:57:38.259Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:57:38.360Z","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:57:38.857Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"s-gw","version":"0.1.22"}}}}
{"at":"2026-11-23T05:57:38.857Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:57:38.857Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:57:38.861Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Scan a local file for secrets and return tokenized text plus local handles. Raw values are not returned.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"minLength":1,"type":"string"},"persist":{"type":"boolean"}},"required":["path"],"type":"object"},"name":"sgw_scan_file","title":"Scan Local File"},{"description":"Scan supplied text and return tokenized text. Persist=false previews handles without enrolling secrets.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"persist":{"type":"boolean"},"source":{"type":"string"},"text":{"type":"string"}},"required":["text"],"type":"object"},"name":"sgw_scan_text","title":"Scan Text"},{"description":"List known local secret handles and non-secret metadata.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"sgw_list_handles","title":"List Handles"},{"description":"Show non-secret metadata for one local secret handle.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"handle":{"minLength":1,"type":"string"}},"required":["handle"],"type":"object"},"name":"sgw_describe_handle","title":"Describe Handle"},{"description":"Create a pending local manifest for a command that needs one secret injected as an environment variable.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"args":{"items":{"type":"string"},"type":"array"},"command":{"minLength":1,"type":"string"},"env":{"items":{"properties":{"handle":{"minLength":1,"type":"string"},"injectEnv":{"minLength":1,"type":"string"}},"required":["handle","injectEnv"],"type":"object"},"type":"array"},"handle":{"minLength":1,"type":"string"},"injectEnv":{"minLength":1,"type":"string"},"reason":{"type":"string"},"timeoutMs":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"workingDir":{"type":"string"}},"required":["handle","command","injectEnv"],"type":"object"},"name":"sgw_request_execution","title":"Request Secret-Backed Execution"},{"description":"Run a command through reusable local approval without creating a ledger record for every invocation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"args":{"items":{"type":"string"},"type":"array"},"command":{"minLength":1,"type":"string"},"env":{"items":{"properties":{"handle":{"minLength":1,"type":"string"},"injectEnv":{"minLength":1,"type":"string"}},"required":["handle","injectEnv"],"type":"object"},"type":"array"},"handle":{"minLength":1,"type":"string"},"injectEnv":{"minLength":1,"type":"string"},"reason":{"type":"string"},"timeoutMs":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"workingDir":{"type":"string"}},"required":["handle","command","injectEnv"],"type":"object"},"name":"sgw_run_execution","title":"Run Secret-Backed Execution"},{"description":"Create a local approval request for an SSH command. Unix-like systems use an s-gw-owned ControlMaster; Windows uses a hardened one-shot ssh.exe command with an SSH private key.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"args":{"items":{"type":"string"},"type":"array"},"handle":{"minLength":1,"type":"string"},"injectEnv":{"type":"string"},"port":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"reason":{"type":"string"},"target":{"minLength":1,"type":"string"},"timeoutMs":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"workingDir":{"type":"string"}},"required":["handle","target"],"type":"object"},"name":"sgw_request_ssh_session","title":"Request s-gw-Owned SSH Session"},{"description":"Request an SSH upload from the agent workspace. Approval binds the source contents and remote destination.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"destinationPath":{"type":"string"},"handle":{"type":"string"},"port":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"reason":{"type":"string"},"sourcePath":{"type":"string"},"target":{"type":"string"},"timeoutMs":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"}},"required":["handle","target","sourcePath","destinationPath"],"type":"object"},"name":"sgw_request_ssh_transfer","title":"Request s-gw-Owned SSH Upload"},{"description":"Request an approved HTTPS operation executed by s-gw. Credentials remain outside the agent.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"auth":{"oneOf":[{"properties":{"kind":{"const":"bearer","type":"string"}},"required":["kind"],"type":"object"},{"properties":{"kind":{"const":"header","type":"string"},"name":{"type":"string"}},"required":["kind","name"],"type":"object"},{"properties":{"kind":{"const":"basic","type":"string"},"username":{"type":"string"}},"required":["kind","username"],"type":"object"}]},"body":{"type":"string"},"handle":{"minLength":1,"type":"string"},"headers":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"method":{"default":"GET","enum":["GET","HEAD","POST","PUT","PATCH","DELETE"],"type":"string"},"reason":{"type":"string"},"timeoutMs":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"url":{"format":"uri","type":"string"}},"required":["handle","url","auth"],"type":"object"},"name":"sgw_request_http","title":"Request s-gw-Owned HTTPS Operation"},{"description":"Execute a previously approved local request and return sanitized output.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"requestId":{"minLength":1,"type":"string"}},"required":["requestId"],"type":"object"},"name":"sgw_execute_request","title":"Execute Approved Request"}]}}}
