{"at":"2026-11-23T02:38:12.456Z","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-23T02:38:12.869Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:38:12.970Z","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-23T02:38:13.382Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"instructions":"Billing Doctor diagnoses Google Play Billing incidents from a redacted timeline. It runs locally and calls nothing. Not affiliated with Google.\nBuild a timeline (schema billing-doctor-timeline/1: app, api, ledger, rtdn, support and console events, tokens as tok_ pseudonyms) and call diagnose_timeline. Every finding carries evidence (event indexes), Google's rule with a dated link, a confidence and a next check. Use redact_text on logs before putting anything in a timeline; use decode_rtdn on a Pub/Sub push body; use explain_subscription_state on a purchases.subscriptionsv2 resource; use list_rules and get_rule for the catalogue.","protocolVersion":"2025-11-25","serverInfo":{"name":"billing-doctor","version":"0.1.1"}}}}
{"at":"2026-11-23T02:38:13.382Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:38:13.382Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:38:13.384Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Run every rule over a billing-doctor-timeline/1 document and return the findings, sorted by severity then first evidence index. Each finding has ruleId, severity, title, evidence (event indexes), mechanism, googleRule {quote, url, readOn}, confidence, nextCheck and fix. exitCode is 1 when a high finding exists.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"rules":{"description":"Run only these rule ids","items":{"type":"string"},"type":"array"},"timeline":{"anyOf":[{"type":"string"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"The timeline as an object or as JSON text"}},"required":["timeline"],"type":"object"},"name":"diagnose_timeline","title":"Diagnose a purchase timeline"},{"description":"Explain a purchases.subscriptionsv2 resource in plain words: the state, the access it implies under Google's rule and under the given policy, the expiry per line item, the acknowledgement deadline, the linked token, the test marker, the plan type and the cancellation context.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"grantOn":{"description":"States the backend grants access on","items":{"type":"string"},"type":"array"},"now":{"description":"ISO time to evaluate deadlines at; default now","type":"string"},"resource":{"anyOf":[{"type":"string"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"The SubscriptionPurchaseV2 as an object or JSON text"},"revokeOn":{"description":"States the backend revokes on","items":{"type":"string"},"type":"array"}},"required":["resource"],"type":"object"},"name":"explain_subscription_state","title":"Explain a subscription resource"},{"description":"Decode a Pub/Sub push body (or a decoded DeveloperNotification, or the base64 data alone): the notification kind, the type name for the integer, the token, and the next step, which for a subscription notification is always to re-fetch the resource before touching state.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"message":{"anyOf":[{"type":"string"},{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}],"description":"The push envelope, the notification object, or the base64 data"}},"required":["message"],"type":"object"},"name":"decode_rtdn","title":"Decode a real-time developer notification"},{"description":"Replace purchase tokens with stable tok_ pseudonyms, remove emails, mask order ids to their last four characters, turn UUIDs into u_ pseudonyms and cut out private keys and bearer tokens. Run it over logs before building a timeline.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"salt":{"description":"Mixed into the pseudonyms","type":"string"},"text":{"description":"The text to redact","type":"string"}},"required":["text"],"type":"object"},"name":"redact_text","title":"Redact a log"},{"description":"Every rule: id, group, severity, title and what it detects.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"list_rules","title":"List the rule catalogue"},{"description":"One rule in full: what it detects, Google's rule quoted with the URL and the date it was read, the observed behaviour when there is one, and the runbook entry when the Incident Kit folder is present.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"id":{"description":"The rule id, for example B1","type":"string"}},"required":["id"],"type":"object"},"name":"get_rule","title":"Get one rule"}]}}}
