{"at":"2026-11-22T23:48:55.419Z","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-22T23:48:55.961Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:48:56.112Z","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-22T23:48:56.675Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"sharedoc","version":"2.1.0"}}}}
{"at":"2026-11-22T23:48:56.675Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:48:56.675Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:48:56.678Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Create a shared Markdown doc, returns a public URL. Backend semantics differ: gist backend has no password support (secret URL is the protection) and lazy expiry; selfhost backend enforces both.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"author":{"type":"string"},"content":{"type":"string"},"expires_in_hours":{"type":"number"},"password":{"type":"string"},"title":{"type":"string"}},"required":["title","content"],"type":"object"},"name":"create_shared_doc"},{"description":"Append content to an existing shared doc. NOT idempotent: a retry appends twice — check with search_shared_docs before retrying. Accepts a doc id or URL.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"content":{"type":"string"},"doc_id_or_url":{"type":"string"},"updated_user":{"type":"string"}},"required":["doc_id_or_url","content"],"type":"object"},"name":"append_to_shared_doc"},{"description":"Extend a doc expiry by N hours (for \"N days\" multiply by 24 first). On the gist backend expiry is enforced lazily (cleanup on next use).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"doc_id_or_url":{"type":"string"},"hours":{"type":"number"}},"required":["doc_id_or_url","hours"],"type":"object"},"name":"extend_shared_doc"},{"description":"Reset a doc password (null removes protection). Selfhost backend only.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"doc_id_or_url":{"type":"string"},"new_password":{"type":["string","null"]},"updated_user":{"type":"string"}},"required":["doc_id_or_url","new_password"],"type":"object"},"name":"reset_shared_doc_password"},{"description":"Update a shared doc title (must be non-empty).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"doc_id_or_url":{"type":"string"},"new_title":{"type":"string"},"updated_user":{"type":"string"}},"required":["doc_id_or_url","new_title"],"type":"object"},"name":"update_shared_doc_title"},{"description":"Revoke a shared doc: the link stops working but the record stays searchable. Gist backend: the gist is deleted immediately and irreversibly. Selfhost backend: revoked with a 7-day grace before content is purged. To erase the record entirely, use delete_shared_doc.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"doc_id_or_url":{"type":"string"},"updated_user":{"type":"string"}},"required":["doc_id_or_url"],"type":"object"},"name":"revoke_shared_doc"},{"description":"Permanently delete a shared doc: the link dies AND the record disappears from search — unlike revoke_shared_doc, no history is kept. Irreversible on both backends. Requires confirm: true, which you must only pass after the user explicitly approved the permanent deletion; prefer revoke_shared_doc for routine takedowns.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"type":"boolean"},"doc_id_or_url":{"type":"string"}},"required":["doc_id_or_url","confirm"],"type":"object"},"name":"delete_shared_doc"},{"description":"Find previously shared docs and their links. Call with NO arguments to list the newest docs (each result includes its share URL). title_query filters by title substring; content_query searches body text (selfhost: full content; gist: the opening excerpt only); status filters active/revoked/expired; limit max 100.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"content_query":{"type":"string"},"limit":{"type":"number"},"status":{"enum":["active","revoked","expired"],"type":"string"},"title_query":{"type":"string"}},"type":"object"},"name":"search_shared_docs"}]}}}
