{"at":"2026-11-23T04:26:02.352Z","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-23T04:26:02.718Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"rail","version":"0.1.1"}},"cacheScope":"private","capabilities":{"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T04:26:02.718Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:26:02.722Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"rail","version":"0.1.1"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set budget"},"description":"Overwrite the local spend budget. Changes the ledger limit only. Does not spend money, approve a card, settle a purchase, or contact Stripe or Link. Passing the same amount again does not add to the budget.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"amount_usd":{"description":"Budget amount in USD","type":"number"},"currency":{"description":"Currency code; default USD","type":"string"},"note":{"description":"Optional note for this budget","type":"string"}},"required":["amount_usd"],"type":"object"},"name":"set_budget","title":"Set budget"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get budget"},"description":"Read the active budget, amount spent, amount remaining, and the count of pending proposals. Does not change the ledger, spend money, or contact Stripe or Link.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"get_budget","title":"Get budget"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Propose purchase"},"description":"Record a pending purchase intent only. Moves no money, creates no receipt, approves no card, and does not contact Stripe or Link. Needs a later human approval via decide_proposal before anything settles. When a budget exists and the amount is above what remains, the proposal is stored with over_budget set and still spends nothing.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"amount_usd":{"description":"Purchase amount in USD","type":"number"},"merchant":{"description":"Merchant or seller name","type":"string"},"rationale":{"description":"Why the agent wants this","type":"string"},"sku":{"description":"SKU or product identifier","type":"string"},"url":{"description":"Product or checkout URL","type":"string"}},"required":["merchant","amount_usd"],"type":"object"},"name":"propose_purchase","title":"Propose purchase"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List proposals"},"description":"Read purchase proposals filtered by status: pending (default), approved, rejected, or all. Does not approve, reject, spend money, or contact Stripe or Link.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"status":{"description":"Filter: pending (default), approved, rejected, or all","enum":["pending","approved","rejected","all"],"type":"string"}},"type":"object"},"name":"list_proposals","title":"List proposals"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Decide proposal"},"description":"Approve or reject one pending proposal. This is the step a human should confirm. decision=approve settles the purchase: in the default dry-run mode it writes a settled_dry_run receipt, stamps a fake settlement ref (lsrq_dry_…), and decrements the remaining budget, without calling the network. decision=reject spends nothing and writes no receipt. The proposal can be decided only once; repeating the call does not settle again. Live charging stays off unless separate live gates are set on purpose.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"decision":{"description":"approve settles; reject spends nothing","enum":["approve","reject"],"type":"string"},"note":{"description":"Optional decision note","type":"string"},"proposal_id":{"description":"Proposal id (prop_…)","type":"string"}},"required":["proposal_id","decision"],"type":"object"},"name":"decide_proposal","title":"Decide proposal"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get receipts"},"description":"Read receipts, newest first, including dry-run settlements and refunds. Does not refund, spend money, or contact Stripe or Link.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"limit":{"description":"Max receipts to return","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"}},"type":"object"},"name":"get_receipts","title":"Get receipts"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Refund receipt"},"description":"Reverse a settled dry-run receipt and restore that amount to the remaining budget. This is the step a human should confirm. Does not contact Stripe or Link. A receipt can be refunded only once; repeating the call does not refund again. Refuses receipts that are not settled_dry_run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"reason":{"description":"Refund reason","type":"string"},"receipt_id":{"description":"Receipt id (rcpt_…)","type":"string"}},"required":["receipt_id"],"type":"object"},"name":"refund_receipt","title":"Refund receipt"}],"ttlMs":0}}}
{"at":"2026-11-23T04:26:02.823Z","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-23T04:26:03.194Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"rail","version":"0.1.1"}}}}
{"at":"2026-11-23T04:26:03.194Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:26:03.194Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:26:03.198Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Set budget"},"description":"Overwrite the local spend budget. Changes the ledger limit only. Does not spend money, approve a card, settle a purchase, or contact Stripe or Link. Passing the same amount again does not add to the budget.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"amount_usd":{"description":"Budget amount in USD","type":"number"},"currency":{"description":"Currency code; default USD","type":"string"},"note":{"description":"Optional note for this budget","type":"string"}},"required":["amount_usd"],"type":"object"},"name":"set_budget","title":"Set budget"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get budget"},"description":"Read the active budget, amount spent, amount remaining, and the count of pending proposals. Does not change the ledger, spend money, or contact Stripe or Link.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"type":"object"},"name":"get_budget","title":"Get budget"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Propose purchase"},"description":"Record a pending purchase intent only. Moves no money, creates no receipt, approves no card, and does not contact Stripe or Link. Needs a later human approval via decide_proposal before anything settles. When a budget exists and the amount is above what remains, the proposal is stored with over_budget set and still spends nothing.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"amount_usd":{"description":"Purchase amount in USD","type":"number"},"merchant":{"description":"Merchant or seller name","type":"string"},"rationale":{"description":"Why the agent wants this","type":"string"},"sku":{"description":"SKU or product identifier","type":"string"},"url":{"description":"Product or checkout URL","type":"string"}},"required":["merchant","amount_usd"],"type":"object"},"name":"propose_purchase","title":"Propose purchase"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List proposals"},"description":"Read purchase proposals filtered by status: pending (default), approved, rejected, or all. Does not approve, reject, spend money, or contact Stripe or Link.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"status":{"description":"Filter: pending (default), approved, rejected, or all","enum":["pending","approved","rejected","all"],"type":"string"}},"type":"object"},"name":"list_proposals","title":"List proposals"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Decide proposal"},"description":"Approve or reject one pending proposal. This is the step a human should confirm. decision=approve settles the purchase: in the default dry-run mode it writes a settled_dry_run receipt, stamps a fake settlement ref (lsrq_dry_…), and decrements the remaining budget, without calling the network. decision=reject spends nothing and writes no receipt. The proposal can be decided only once; repeating the call does not settle again. Live charging stays off unless separate live gates are set on purpose.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"decision":{"description":"approve settles; reject spends nothing","enum":["approve","reject"],"type":"string"},"note":{"description":"Optional decision note","type":"string"},"proposal_id":{"description":"Proposal id (prop_…)","type":"string"}},"required":["proposal_id","decision"],"type":"object"},"name":"decide_proposal","title":"Decide proposal"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get receipts"},"description":"Read receipts, newest first, including dry-run settlements and refunds. Does not refund, spend money, or contact Stripe or Link.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"limit":{"description":"Max receipts to return","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"}},"type":"object"},"name":"get_receipts","title":"Get receipts"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Refund receipt"},"description":"Reverse a settled dry-run receipt and restore that amount to the remaining budget. This is the step a human should confirm. Does not contact Stripe or Link. A receipt can be refunded only once; repeating the call does not refund again. Refuses receipts that are not settled_dry_run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"reason":{"description":"Refund reason","type":"string"},"receipt_id":{"description":"Receipt id (rcpt_…)","type":"string"}},"required":["receipt_id"],"type":"object"},"name":"refund_receipt","title":"Refund receipt"}]}}}
