{"at":"2026-11-22T23:32:29.820Z","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:32:30.459Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:32:30.610Z","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:32:31.192Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"uswds-mcp","version":"0.2.1"}}}}
{"at":"2026-11-22T23:32:31.192Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:32:31.192Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:32:31.197Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Search structured USWDS docs and implementation records.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"maximum":25,"minimum":1,"type":"integer"},"query":{"minLength":1,"type":"string"},"types":{"items":{"enum":["component","pattern","template","utility","token","setting","package","accessibility_test","implementation_reference"],"type":"string"},"type":"array"}},"required":["query"],"type":"object"},"name":"search_uswds","title":"Search USWDS"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return component guidance (usage, accessibility, variants) plus the official canonical HTML for the default variant. Call this before writing any component markup.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"slug_or_name":{"minLength":1,"type":"string"}},"required":["slug_or_name"],"type":"object"},"name":"get_component","title":"Get USWDS Component"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return structured pattern guidance and related implementation notes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"slug_or_name":{"minLength":1,"type":"string"}},"required":["slug_or_name"],"type":"object"},"name":"get_pattern","title":"Get USWDS Pattern"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return structured template guidance and markup references.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"slug_or_name":{"minLength":1,"type":"string"}},"required":["slug_or_name"],"type":"object"},"name":"get_template","title":"Get USWDS Template"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Recommend a USWDS-first page or site structure for an agency service.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"agency_type":{"minLength":1,"type":"string"},"audience":{"minLength":1,"type":"string"},"constraints":{"type":"string"},"framework":{"type":"string"},"service_goal":{"minLength":1,"type":"string"}},"required":["agency_type","service_goal","audience"],"type":"object"},"name":"recommend_uswds_structure","title":"Recommend USWDS Structure"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Quick starting point: infer sections from free-text requirements and generate a validated USWDS page with [bracketed] placeholders. For real content prefer compose_uswds_page.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"agency_context":{"minLength":1,"type":"string"},"asset_path":{"description":"URL prefix where USWDS dist assets are served (default /uswds)","type":"string"},"content_requirements":{"minLength":1,"type":"string"},"framework":{"type":"string"},"page_type":{"minLength":1,"type":"string"}},"required":["page_type","agency_context","content_requirements"],"type":"object"},"name":"generate_uswds_page","title":"Generate USWDS Page"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Validate HTML against real USWDS class names, component structure (BEM, required children, ARIA wiring), forms, and accessibility basics. Fragment-aware. Fix every error before finalizing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"html":{"minLength":1,"type":"string"},"mode":{"description":"auto detects full pages vs fragments","enum":["auto","document","fragment"],"type":"string"},"page_context":{"type":"string"}},"required":["html"],"type":"object"},"name":"validate_uswds_markup","title":"Validate USWDS Markup"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the official, verified USWDS HTML for a component or page template (rendered from the official @uswds/uswds templates). Use this instead of writing usa-* markup from memory. Call with no arguments to list everything available.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"all_variants":{"type":"boolean"},"asset_path":{"description":"URL prefix where USWDS dist assets are served (default /uswds)","type":"string"},"component":{"description":"Component or page-template name, e.g. accordion, button, footer, sign-in","type":"string"},"variant":{"description":"Variant such as bordered, slim, big, outline, error","type":"string"}},"type":"object"},"name":"get_component_markup","title":"Get Canonical USWDS Markup"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Build a complete, accessible USWDS page from structured sections (hero, content, alert, summary_box, card_group, process_list, step_indicator, accordion, table, form, contact). Output mirrors official markup and is validated automatically.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"agency":{"minLength":1,"type":"string"},"asset_path":{"default":"/uswds","type":"string"},"breadcrumbs":{"items":{"properties":{"href":{"type":"string"},"label":{"type":"string"}},"required":["label"],"type":"object"},"type":"array"},"contact":{"properties":{"email":{"type":"string"},"phone":{"type":"string"}},"type":"object"},"include_identifier":{"default":true,"type":"boolean"},"lang":{"default":"en","type":"string"},"nav_links":{"items":{"properties":{"href":{"default":"#","type":"string"},"label":{"minLength":1,"type":"string"}},"required":["label"],"type":"object"},"type":"array"},"parent_agency":{"type":"string"},"sections":{"default":[],"items":{"oneOf":[{"properties":{"cta":{"properties":{"href":{"default":"#","type":"string"},"label":{"minLength":1,"type":"string"}},"required":["label"],"type":"object"},"heading":{"type":"string"},"text":{"type":"string"},"type":{"const":"hero","type":"string"}},"required":["type","heading"],"type":"object"},{"properties":{"bullets":{"items":{"type":"string"},"type":"array"},"heading":{"type":"string"},"paragraphs":{"default":[],"items":{"type":"string"},"type":"array"},"type":{"const":"content","type":"string"}},"required":["type"],"type":"object"},{"properties":{"heading":{"type":"string"},"text":{"type":"string"},"type":{"const":"alert","type":"string"},"variant":{"default":"info","enum":["info","warning","error","success","emergency"],"type":"string"}},"required":["type","text"],"type":"object"},{"properties":{"heading":{"type":"string"},"items":{"items":{"type":"string"},"minItems":1,"type":"array"},"type":{"const":"summary_box","type":"string"}},"required":["type","heading","items"],"type":"object"},{"properties":{"cards":{"items":{"properties":{"heading":{"type":"string"},"link":{"properties":{"href":{"default":"#","type":"string"},"label":{"minLength":1,"type":"string"}},"required":["label"],"type":"object"},"text":{"type":"string"}},"required":["heading","text"],"type":"object"},"minItems":1,"type":"array"},"heading":{"type":"string"},"type":{"const":"card_group","type":"string"}},"required":["type","cards"],"type":"object"},{"properties":{"heading":{"type":"string"},"steps":{"items":{"properties":{"heading":{"type":"string"},"text":{"type":"string"}},"required":["heading","text"],"type":"object"},"minItems":1,"type":"array"},"type":{"const":"process_list","type":"string"}},"required":["type","steps"],"type":"object"},{"properties":{"current":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"heading":{"type":"string"},"steps":{"items":{"type":"string"},"minItems":2,"type":"array"},"type":{"const":"step_indicator","type":"string"}},"required":["type","steps","current"],"type":"object"},{"properties":{"bordered":{"type":"boolean"},"heading":{"type":"string"},"items":{"items":{"properties":{"content":{"type":"string"},"title":{"type":"string"}},"required":["title","content"],"type":"object"},"minItems":1,"type":"array"},"type":{"const":"accordion","type":"string"}},"required":["type","items"],"type":"object"},{"properties":{"caption":{"type":"string"},"headers":{"items":{"type":"string"},"minItems":1,"type":"array"},"heading":{"type":"string"},"rows":{"items":{"items":{"type":"string"},"type":"array"},"minItems":1,"type":"array"},"striped":{"type":"boolean"},"type":{"const":"table","type":"string"}},"required":["type","caption","headers","rows"],"type":"object"},{"properties":{"action":{"type":"string"},"fields":{"items":{"properties":{"hint":{"type":"string"},"label":{"minLength":1,"type":"string"},"name":{"type":"string"},"options":{"items":{"type":"string"},"type":"array"},"required":{"type":"boolean"},"type":{"enum":["text","email","tel","textarea","select","radio","checkbox","date"],"type":"string"}},"required":["type","label"],"type":"object"},"minItems":1,"type":"array"},"legend":{"type":"string"},"submit_label":{"default":"Continue","type":"string"},"type":{"const":"form","type":"string"}},"required":["type","legend","fields"],"type":"object"},{"properties":{"heading":{"default":"Contact us","type":"string"},"lines":{"items":{"type":"string"},"minItems":1,"type":"array"},"type":{"const":"contact","type":"string"}},"required":["type","lines"],"type":"object"}]},"type":"array"},"title":{"minLength":1,"type":"string"}},"required":["title","agency"],"type":"object"},"name":"compose_uswds_page","title":"Compose USWDS Page"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Look up real USWDS class names, including utilities and responsive variants (e.g. \"margin top 2\", \"tablet grid col 6\", \"bg primary lighter\"). Prevents invented class names.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"maximum":100,"minimum":1,"type":"integer"},"query":{"minLength":1,"type":"string"}},"required":["query"],"type":"object"},"name":"find_uswds_classes","title":"Find USWDS Classes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return framework-specific USWDS setup guidance for npm, assets, JavaScript, CSS, and migration.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"framework":{"minLength":1,"type":"string"},"migration_scope":{"enum":["new-project","single-page","full-site"],"type":"string"},"no_cdn":{"type":"boolean"}},"required":["framework"],"type":"object"},"name":"get_uswds_integration_recipe","title":"Get USWDS Integration Recipe"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check provided project files for common USWDS framework integration issues such as import paths, assets, scripts, CDN usage, and global CSS risk.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"file_paths":{"items":{"type":"string"},"type":"array"},"files":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"framework":{"type":"string"},"migration_scope":{"enum":["new-project","single-page","full-site"],"type":"string"},"no_cdn":{"type":"boolean"},"package_json":{"type":"string"}},"type":"object"},"name":"validate_uswds_project_setup","title":"Validate USWDS Project Setup"}]}}}
