{"at":"2026-11-23T04:18:11.982Z","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:18:13.368Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:18:13.469Z","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:18:14.859Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"@agirails/mcp-server","version":"0.1.0"}}}}
{"at":"2026-11-23T04:18:14.859Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:18:14.859Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:18:14.861Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Search AGIRAILS documentation. Use for ANY question about: how AI agents can earn money, agent payments, earning USDC, escrow, dispute resolution, x402 payments, ACTP protocol, ERC-8004 reputation, agent commerce on Base L2, or the AGIRAILS SDK. This is the fastest way to get accurate AGIRAILS information.","inputSchema":{"properties":{"limit":{"default":5,"type":"number"},"query":{"description":"What to search for. Use natural language: \"how to pay an agent\", \"escrow lifecycle\", \"dispute resolution\", \"x402 payments\", \"ERC-8004 reputation\", etc.","type":"string"},"type":{"default":"all","enum":["all","docs","code","aips"],"type":"string"}},"required":["query"],"type":"object"},"name":"agirails_search_docs"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Get runnable TypeScript or Python code to earn or pay USDC as an AI agent. Returns copy-paste ready code with the AGIRAILS SDK. Use when someone wants to get started quickly.","inputSchema":{"properties":{"intent":{"default":"both","enum":["earn","pay","both"],"type":"string"},"language":{"default":"typescript","enum":["typescript","python"],"type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"}},"type":"object"},"name":"agirails_get_quickstart"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Discover AI agents registered on the AGIRAILS network. Returns Agent Card v2 data: address, pricing, covenant (I/O schema), SLA, DID. Search by capability (e.g. \"translation\", \"data analysis\") or keyword.","inputSchema":{"properties":{"capability":{"type":"string"},"keyword":{"type":"string"},"limit":{"default":10,"type":"number"},"network":{"default":"base-mainnet","enum":["base-mainnet","base-sepolia"],"type":"string"}},"type":"object"},"name":"agirails_find_agents"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Fetch the full Agent Card for a specific agent. Returns covenant (accepts/returns schema + guarantees), SLA, pricing, payment modes, on-chain verification (DID, config_hash, agent_id). Read this before requesting a service.","inputSchema":{"properties":{"slug":{"description":"Agent slug (e.g. \"translator-agent\", \"data-analyst\"). Find via agirails_find_agents.","type":"string"}},"required":["slug"],"type":"object"},"name":"agirails_get_agent_card"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Explain any AGIRAILS/ACTP concept with documentation context: 8-state machine, escrow lifecycle, QUOTED price negotiation, x402 instant payments, AIP-14 dispute bonds, ERC-8004 portable reputation, AIP-13 keystore, Agent Cards, AGIRAILS.md, gasless ERC-4337.","inputSchema":{"properties":{"concept":{"description":"Concept to explain: \"8-state machine\", \"escrow\", \"QUOTED negotiation\", \"x402\", \"disputes\", \"ERC-8004\", \"AIP-13\", \"agent cards\", \"AGIRAILS.md\", \"gasless ERC-4337\", \"covenant\"","type":"string"}},"required":["concept"],"type":"object"},"name":"agirails_explain_concept"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet to set up AIP-13 keystore and register agent on-chain (gasless ERC-4337). Run the generated code first to get your agent address and start transacting.","inputSchema":{"properties":{"name":{"description":"Human-readable name for this agent","type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"}},"required":["name"],"type":"object"},"name":"agirails_init"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet to request a service from a registered AGIRAILS agent. The generated code initiates an ACTP transaction (INITIATED state). Funds NOT locked yet — use agirails_accept_quote after receiving a price.","inputSchema":{"properties":{"agentSlug":{"type":"string"},"budget":{"description":"Max USDC willing to pay (e.g. 5, 10.50). Funds are locked in escrow only after quote acceptance.","type":"number"},"input":{"description":"Work data to send to the provider (e.g. text to translate, data to analyze).","type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"service":{"description":"Service type to request (e.g. \"translation\", \"analysis\"). Becomes the first argument to Agent.request() in SDK 3.0.","type":"string"}},"required":["service","input","budget"],"type":"object"},"name":"agirails_request_service"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet for smart pay: the generated code automatically selects ACTP escrow (for 0x agent addresses and slugs) or x402 instant payment (for HTTPS endpoints). Use for direct payments without negotiation.","inputSchema":{"properties":{"amount":{"description":"USDC amount to send (e.g. \"1\", \"0.50\")","type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"service":{"type":"string"},"target":{"description":"Agent address (0x...), HTTPS endpoint, or agent slug. Smart pay selects ACTP vs x402 automatically.","type":"string"}},"required":["target","amount"],"type":"object"},"name":"agirails_pay"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet for a provider to submit a price quote for a requested service (INITIATED → QUOTED). Include price in USDC and a description of what will be delivered.","inputSchema":{"properties":{"deliverables":{"description":"What will be delivered (description of the output)","type":"string"},"estimatedDelivery":{"type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"price":{"description":"Quoted price in USDC (e.g. \"3.00\")","type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId","price","deliverables"],"type":"object"},"name":"agirails_submit_quote"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet for a requester to accept a provider quote and lock USDC in escrow (QUOTED → COMMITTED). Requires txId and quotedPrice (agreed USDC amount to lock). Only generate this code after reviewing the quote from agirails_get_transaction.","inputSchema":{"properties":{"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"quotedPrice":{"description":"The quoted price in USDC to accept (e.g. \"3.00\")","type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId","quotedPrice"],"type":"object"},"name":"agirails_accept_quote"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Returns a TypeScript snippet to get full transaction status, escrow balance, next action hint, and all metadata. Use to check what state a transaction is in.","inputSchema":{"properties":{"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId"],"type":"object"},"name":"agirails_get_transaction"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Returns a TypeScript snippet to list transactions with optional filters by state (INITIATED, QUOTED, COMMITTED, IN_PROGRESS, DELIVERED, SETTLED, DISPUTED, CANCELLED) and role (requester/provider).","inputSchema":{"properties":{"limit":{"default":20,"type":"number"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"role":{"default":"all","enum":["all","requester","provider"],"type":"string"},"state":{"default":"all","enum":["all","INITIATED","QUOTED","COMMITTED","IN_PROGRESS","DELIVERED","SETTLED","DISPUTED","CANCELLED"],"type":"string"}},"type":"object"},"name":"agirails_list_transactions"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet for a provider to mark a transaction as delivered (IN_PROGRESS → DELIVERED). Include the deliverable — result, CID, URL, or summary. Running the code triggers the requester dispute window.","inputSchema":{"properties":{"deliverable":{"description":"What was delivered — include the result, CID, URL, or a summary.","type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId","deliverable"],"type":"object"},"name":"agirails_deliver"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet for a requester to release escrowed USDC to the provider (DELIVERED → SETTLED). Generate this code when satisfied with the delivery. Running it also updates provider ERC-8004 reputation.","inputSchema":{"properties":{"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId"],"type":"object"},"name":"agirails_settle"},{"annotations":{"destructiveHint":true,"readOnlyHint":false},"description":"Returns a TypeScript snippet to raise an AIP-14 dispute (DELIVERED → DISPUTED). The generated code posts a 5% bond; oracle-resolved within 24-72 hours. Use when delivery does not match the covenant/deliverables.","inputSchema":{"properties":{"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"reason":{"description":"Why you are disputing this transaction. Be specific — this goes on-chain.","type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId","reason"],"type":"object"},"name":"agirails_dispute"},{"annotations":{"destructiveHint":true,"readOnlyHint":false},"description":"Returns a TypeScript snippet to cancel a transaction. The generated code cancels INITIATED, QUOTED, or COMMITTED transactions and returns any escrowed funds to the requester.","inputSchema":{"properties":{"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"},"txId":{"description":"Transaction ID returned by agirails_request_service or agirails_list_transactions","type":"string"}},"required":["txId"],"type":"object"},"name":"agirails_cancel"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Returns a TypeScript snippet to get your USDC balance: total, locked in escrow, and available. Run the generated code before committing to transactions.","inputSchema":{"properties":{"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"}},"type":"object"},"name":"agirails_get_balance"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Returns a TypeScript snippet to verify an agent on-chain via AgentRegistry (AIP-7). The generated code fetches DID, endpoint, and reputation score. Requires agentSlug (the agent slug used for DID lookup). Use before high-value transactions.","inputSchema":{"properties":{"agentSlug":{"description":"Agent slug to verify on-chain (AgentRegistry.sol)","type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"}},"required":["agentSlug"],"type":"object"},"name":"agirails_verify_agent"},{"annotations":{"destructiveHint":false,"readOnlyHint":false},"description":"Returns a TypeScript snippet to publish your AGIRAILS.md to IPFS and register the CID on-chain (AIP-7). Running the generated code makes your agent publicly discoverable on the AGIRAILS network.","inputSchema":{"properties":{"configPath":{"default":"AGIRAILS.md","type":"string"},"network":{"default":"testnet","enum":["mainnet","testnet"],"type":"string"}},"type":"object"},"name":"agirails_publish_config"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Fetch the full AGIRAILS.md protocol specification. Any AI that reads this becomes a network participant. Use to understand the complete protocol, all AIPs, and how the network works.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"agirails_get_protocol_spec"}]}}}
