{"at":"2026-11-23T03:59:32.505Z","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-23T03:59:33.013Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:59:33.114Z","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-23T03:59:33.584Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"tampermonkey-mcp","version":"1.0.0"}}}}
{"at":"2026-11-23T03:59:33.584Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:59:33.584Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:59:33.587Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"\n        REQUIRED FIRST STEP: Get the connection code to connect Tampermonkey Editors to the MCP server.\n\n        **How it works:**\n        The MCP server creates a WebSocket server that waits for Tampermonkey Editors to connect.\n        You must call this tool FIRST to start the WebSocket server and get a connection code.\n        Then enter the code in the Tampermonkey Editors extension - it will connect TO the MCP server.\n\n        **Steps:**\n        1. Call this tool to get the connection code\n        2. Open Tampermonkey Editors extension in your browser\n        3. Enter the code in the extension popup\n        4. The extension connects to the MCP server's WebSocket\n        5. After connection, you can use tampermonkey.list, tampermonkey.get, tampermonkey.patch, tampermonkey.put, tampermonkey.delete\n\n        **Output:**\n            - `code`: The connection code to enter in Tampermonkey Editors\n        ","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"tampermonkey.get-connection-code"},{"description":"\n        List all userscripts available in Tampermonkey.\n\n        **Input:**\n            - `pattern` (optional): Filter scripts by name pattern\n            - `includePattern` (optional): Filter scripts by include URL pattern\n\n        **Output:**\n            Array of userscript metadata including:\n            - `name`: Script name\n            - `namespace`: Script namespace\n            - `path`: Script path (used for get/patch operations)\n            - `requires`: List of @require dependencies\n            - `storage`: Storage path (if any)\n        ","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"includePattern":{"description":"Filter scripts by include URL pattern","items":{"type":"string"},"type":"array"},"pattern":{"description":"Filter scripts by name pattern","type":"string"}},"type":"object"},"name":"tampermonkey.list"},{"description":"\n        Get the content of a specific userscript.\n\n        **Input:**\n            - `path`: The script path (from list operation)\n            - `ifNotModifiedSince` (optional): Unix timestamp - only return if script was modified after this time\n\n        **Output:**\n            - `value`: The script source code\n            - `lastModified`: Unix timestamp of last modification\n            - `error`: Error object if script not found or concurrent edit detected\n        ","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"ifNotModifiedSince":{"description":"Unix timestamp - only return if script was modified after this time","type":"number"},"path":{"description":"The script or resource path (<script-uuid>/source, <script-uuid>/storage or <script-uuid>/<external-resource-url>","type":"string"}},"required":["path"],"type":"object"},"name":"tampermonkey.get"},{"description":"\n        Update the content of a userscript.\n\n        **Input:**\n            - `path`: The script or resource path (from list operation)\n            - `value`: The new script content\n            - `lastModified` (optional): Unix timestamp for optimistic locking\n\n        **Output:**\n            - `success`: true if patch was applied successfully\n            - `error`: Error object if patch failed (e.g., concurrent edit conflict)\n        ","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"lastModified":{"description":"Unix timestamp for optimistic locking","type":"number"},"path":{"description":"The script path (e.g., \"<script-uuid>/source\")","type":"string"},"value":{"description":"The new script content","type":"string"}},"required":["path","value"],"type":"object"},"name":"tampermonkey.patch"},{"description":"\n        Create a new userscript.\n\n        **Input:**\n            - `value`: The script source code content\n            - `lastModified` (optional): Unix timestamp for optimistic locking\n\n        **Output:**\n            - `success`: true if script was created successfully\n            - `path/name`: The path and name of the new script\n            - `error`: Error object if creation failed (e.g., script already exists, concurrent edit conflict)\n        ","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"lastModified":{"description":"Unix timestamp for optimistic locking","type":"number"},"value":{"description":"The script source code content","type":"string"}},"required":["value"],"type":"object"},"name":"tampermonkey.put"},{"description":"\n        Delete a userscript by path.\n\n        **Input:**\n            - `path`: The script or resource path (<script-uuid>/source, <script-uuid>/storage or <script-uuid>/<external-resource-url>)\n\n        **Output:**\n            - `success`: true if script was deleted successfully\n            - `error`: Error object if deletion failed (e.g., script not found)\n        ","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"description":"The script or resource path (<script-uuid>/source, <script-uuid>/storage or <script-uuid>/<external-resource-url>)","type":"string"}},"required":["path"],"type":"object"},"name":"tampermonkey.delete"}]}}}
