{"at":"2026-11-23T04:44:07.032Z","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:44:07.424Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:44:07.524Z","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:44:07.926Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"mdma-mcp","version":"0.3.1"}}}}
{"at":"2026-11-23T04:44:07.926Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:44:07.926Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:44:07.931Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Returns the full MDMA specification: component types, schemas (as JSON Schema), binding syntax, external data sources ({ source, params } refs, the DataSourceDescriptor shape, and the rows / series / options kinds), and authoring rules","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get-spec"},{"description":"Returns a named MDMA prompt (mdma-author, mdma-reviewer, or mdma-fixer). For mdma-author, pass an optional variantId (e.g. \"anthropic/sonnet-5.5\", \"openai/gpt-6-sol\") to get the model-optimised variant — use list-prompt-variants to see all available ids.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"Prompt name: mdma-author, mdma-reviewer, or mdma-fixer","type":"string"},"variantId":{"description":"Model-specific variant id for mdma-author (e.g. \"google/gemini-2.5-pro\", \"openai/gpt-5\"). Falls back to the default variant if omitted or unknown.","type":"string"}},"required":["name"],"type":"object"},"name":"get-prompt"},{"description":"Returns all available MDMA_AUTHOR prompt variants with their id, label, and description. Pass the id to get-prompt as variantId to retrieve the model-optimised prompt.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list-prompt-variants"},{"description":"Generates a custom MDMA prompt from structured input (domain, components, fields, steps). Returns only the custom prompt part — use buildSystemPrompt({ customPrompt }) in code to combine it with the base MDMA spec. When dataSources (an external data-source catalog) is passed, returns the full system prompt instead: base MDMA spec, the data-source catalog with the rule to reference it via { source, params }, and the custom part.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"businessRules":{"description":"Business rules or constraints","type":"string"},"components":{"description":"Component types to use (e.g. [\"form\", \"approval-gate\", \"webhook\"])","items":{"type":"string"},"type":"array"},"dataSources":{"description":"External data-source catalog. Each entry: name, optional description, kind (\"rows\" for table.data, \"series\" for chart.data, \"options\" for form select options), optional columns [{ key, type: string|number|boolean|date, description?, sensitive? }], optional params [{ name, type: string|number|boolean, required?, allowed? }]. Names must be unique, but the same data may appear as a rows and a series entry under different names. The model is told to reference sources via { source, params } instead of generating rows.","items":{"additionalProperties":false,"properties":{"columns":{"items":{"additionalProperties":false,"properties":{"description":{"type":"string"},"key":{"minLength":1,"type":"string"},"sensitive":{"default":false,"type":"boolean"},"type":{"enum":["string","number","boolean","date"],"type":"string"}},"required":["key","type"],"type":"object"},"type":"array"},"description":{"type":"string"},"kind":{"enum":["options","rows","series"],"type":"string"},"name":{"minLength":1,"type":"string"},"params":{"items":{"additionalProperties":false,"properties":{"allowed":{"items":{"type":["string","number","boolean"]},"type":"array"},"name":{"minLength":1,"type":"string"},"required":{"default":false,"type":"boolean"},"type":{"enum":["string","number","boolean"],"type":"string"}},"required":["name","type"],"type":"object"},"type":"array"}},"required":["name","kind"],"type":"object"},"type":"array"},"domain":{"description":"Domain context (e.g. \"HR onboarding\", \"expense approval\")","type":"string"},"fields":{"description":"Form field definitions","items":{"additionalProperties":false,"properties":{"label":{"description":"Display label","type":"string"},"name":{"description":"Field name (kebab-case)","type":"string"},"options":{"description":"Select options (for type: select)","items":{"type":"string"},"type":"array"},"required":{"description":"Whether field is required","type":"boolean"},"sensitive":{"description":"Whether field contains PII","type":"boolean"},"type":{"description":"Field type: text, number, email, date, select, checkbox, textarea","type":"string"}},"required":["name","type"],"type":"object"},"type":"array"},"steps":{"description":"Multi-step flow definitions — each step becomes a separate conversation turn","items":{"additionalProperties":false,"properties":{"description":{"description":"What this step does","type":"string"},"label":{"description":"Step name (e.g. \"Registration Form\")","type":"string"}},"required":["label","description"],"type":"object"},"type":"array"}},"type":"object"},"name":"build-system-prompt"},{"description":"Validates a custom prompt against MDMA conventions. Returns warnings for anti-patterns and suggestions for improvements.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"prompt":{"description":"The custom prompt text to validate","type":"string"}},"required":["prompt"],"type":"object"},"name":"validate-prompt"},{"description":"Returns all MDMA npm packages with their purpose, install command, usage example, and category","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list-packages"},{"description":"Returns the catalog of MDMA documentation files available for fetching from the public GitHub repo (path, title, description). Use this to discover what docs you can pass to get-doc.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list-docs"},{"description":"Fetches the latest version of an MDMA documentation file from the public GitHub repo (raw.githubusercontent.com/MobileReality/mdma) and returns its contents as text. Allowed paths: any entry from list-docs, plus any *.md file under \"docs/\" or \"blueprints/\". Defaults to the \"main\" branch.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"path":{"description":"Repo-relative path to the doc, e.g. \"docs/getting-started/quick-start.md\" or \"blueprints/kyc-case/README.md\"","type":"string"},"ref":{"description":"Git ref (branch, tag, or commit SHA). Defaults to \"main\".","type":"string"}},"required":["path"],"type":"object"},"name":"get-doc"}]}}}
