{"at":"2026-11-23T03:44:10.514Z","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:44:10.816Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:44:10.917Z","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:44:11.227Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"protocolVersion":"2024-11-05","serverInfo":{"name":"frappe-mcp-server","version":"1.0.1"}}}}
{"at":"2026-11-23T03:44:11.227Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:44:11.227Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:44:11.228Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Create a new Frappe DocType with JSON definition and Python controller","inputSchema":{"properties":{"app_name":{"description":"Name of the Frappe app","type":"string"},"doctype_name":{"description":"Name of the DocType","type":"string"},"fields":{"description":"Array of field definitions","items":{"properties":{"fieldname":{"type":"string"},"fieldtype":{"enum":["Data","Int","Float","Currency","Date","Datetime","Text","Long Text","Check","Select","Link","Table","Attach","Image"],"type":"string"},"label":{"type":"string"},"options":{"description":"Options for Select/Link fields","type":"string"},"reqd":{"default":false,"type":"boolean"},"unique":{"default":false,"type":"boolean"}},"required":["fieldname","label","fieldtype"],"type":"object"},"type":"array"},"is_child":{"default":false,"type":"boolean"},"is_submittable":{"default":false,"type":"boolean"},"module":{"description":"Module where DocType belongs","type":"string"}},"required":["app_name","doctype_name","module","fields"],"type":"object"},"name":"frappe_create_doctype"},{"description":"Execute bench commands for Frappe development","inputSchema":{"properties":{"command":{"description":"Bench command to execute","type":"string"},"cwd":{"description":"Working directory (optional)","type":"string"},"site":{"description":"Site name (optional)","type":"string"}},"required":["command"],"type":"object"},"name":"frappe_run_bench_command"},{"description":"Get the structure of a Frappe app","inputSchema":{"properties":{"app_name":{"description":"Name of the Frappe app","type":"string"}},"required":["app_name"],"type":"object"},"name":"frappe_get_app_structure"},{"description":"Create a custom API endpoint for a Frappe app","inputSchema":{"properties":{"app_name":{"description":"Name of the Frappe app","type":"string"},"code":{"description":"Python code for the API endpoint","type":"string"},"endpoint_name":{"description":"Name of the API endpoint","type":"string"},"method":{"default":"get","enum":["get","post","put","delete"],"type":"string"}},"required":["app_name","endpoint_name","code"],"type":"object"},"name":"frappe_create_api_endpoint"},{"description":"Run database migration for Frappe apps","inputSchema":{"properties":{"site":{"description":"Site name to migrate","type":"string"}},"required":["site"],"type":"object"},"name":"frappe_migrate_database"},{"description":"Install a Frappe app on a site","inputSchema":{"properties":{"app_name":{"description":"Name of the app to install","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["app_name","site"],"type":"object"},"name":"frappe_install_app"},{"description":"Create a new Frappe app","inputSchema":{"properties":{"app_name":{"description":"Name of the new app","type":"string"},"description":{"description":"App description","type":"string"},"publisher":{"description":"Publisher name","type":"string"},"title":{"description":"Title of the app","type":"string"}},"required":["app_name","title","publisher"],"type":"object"},"name":"frappe_create_app"},{"description":"Create a new Frappe document","inputSchema":{"properties":{"data":{"description":"Document data as key-value pairs","type":"object"},"doctype":{"description":"DocType of the document","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["doctype","data","site"],"type":"object"},"name":"frappe_create_document"},{"description":"Retrieve a Frappe document by DocType and name","inputSchema":{"properties":{"doctype":{"description":"DocType of the document","type":"string"},"name":{"description":"Name of the document","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["doctype","name","site"],"type":"object"},"name":"frappe_get_document"},{"description":"Update an existing Frappe document","inputSchema":{"properties":{"data":{"description":"Updated document data","type":"object"},"doctype":{"description":"DocType of the document","type":"string"},"name":{"description":"Name of the document","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["doctype","name","data","site"],"type":"object"},"name":"frappe_update_document"},{"description":"Delete a Frappe document","inputSchema":{"properties":{"doctype":{"description":"DocType of the document","type":"string"},"name":{"description":"Name of the document","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["doctype","name","site"],"type":"object"},"name":"frappe_delete_document"},{"description":"List Frappe documents with optional filters","inputSchema":{"properties":{"doctype":{"description":"DocType to list","type":"string"},"filters":{"description":"Filters as key-value pairs","type":"object"},"limit":{"default":20,"description":"Maximum number of results","type":"number"},"site":{"description":"Site name","type":"string"}},"required":["doctype","site"],"type":"object"},"name":"frappe_list_documents"},{"description":"Execute a whitelisted Frappe method","inputSchema":{"properties":{"args":{"default":[],"description":"Arguments for the method","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array"},{"type":"null"}]},"type":"array"},"method":{"description":"Method path (e.g., 'frappe.client.get')","type":"string"},"site":{"default":"mkahawa.localhost","description":"Site name","type":"string"}},"required":["method"],"type":"object"},"name":"frappe_call_method"},{"description":"Get the complete schema/structure of a Frappe DocType","inputSchema":{"properties":{"doctype":{"description":"Name of the DocType","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["doctype","site"],"type":"object"},"name":"frappe_get_doctype_schema"},{"description":"Get options for Link/Select fields in a DocType","inputSchema":{"properties":{"doctype":{"description":"DocType name","type":"string"},"fieldname":{"description":"Field name","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["doctype","fieldname","site"],"type":"object"},"name":"frappe_get_field_options"},{"description":"List all available DocTypes in the system","inputSchema":{"properties":{"site":{"description":"Site name","type":"string"}},"required":["site"],"type":"object"},"name":"frappe_get_doctype_list"},{"description":"Get combined schema and usage information for Frappe development","inputSchema":{"properties":{"site":{"description":"Site name","type":"string"}},"required":["site"],"type":"object"},"name":"frappe_get_frappe_usage_info"},{"description":"Execute a Frappe query report","inputSchema":{"properties":{"filters":{"description":"Report filters","type":"object"},"report_name":{"description":"Name of the query report","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["report_name","site"],"type":"object"},"name":"frappe_run_query_report"},{"description":"Get metadata for a Frappe report","inputSchema":{"properties":{"report_name":{"description":"Name of the report","type":"string"},"site":{"description":"Site name","type":"string"}},"required":["report_name","site"],"type":"object"},"name":"frappe_get_report_meta"},{"description":"List available Frappe reports","inputSchema":{"properties":{"site":{"description":"Site name","type":"string"}},"required":["site"],"type":"object"},"name":"frappe_list_reports"},{"description":"Generate a report based on a DocType","inputSchema":{"properties":{"doctype":{"description":"DocType for the report","type":"string"},"filters":{"description":"Filters for the report","type":"object"},"site":{"description":"Site name","type":"string"}},"required":["doctype","site"],"type":"object"},"name":"frappe_run_doctype_report"},{"description":"Get financial statements (P&L, Balance Sheet, Cash Flow)","inputSchema":{"properties":{"company":{"description":"Company name","type":"string"},"fiscal_year":{"description":"Fiscal year","type":"string"},"site":{"description":"Site name","type":"string"},"statement_type":{"description":"Type of financial statement","enum":["Profit and Loss","Balance Sheet","Cash Flow"],"type":"string"}},"required":["statement_type","company","site"],"type":"object"},"name":"frappe_get_financial_statements"},{"description":"Generate a Vue component using frappe-ui components","inputSchema":{"properties":{"component_name":{"description":"Name of the component","type":"string"},"component_type":{"description":"Type of frappe-ui component","enum":["Button","Dialog","Form","List","DetailDrawer"],"type":"string"},"content":{"description":"Component content/template","type":"string"},"props":{"description":"Component props","type":"object"}},"required":["component_name","component_type"],"type":"object"},"name":"frappe_generate_frappe_ui_component"},{"description":"Generate a Vue page with frappe-ui layout","inputSchema":{"properties":{"components":{"description":"List of components to include","items":{"type":"string"},"type":"array"},"page_name":{"description":"Name of the page","type":"string"},"route":{"description":"Route path","type":"string"}},"required":["page_name","route"],"type":"object"},"name":"frappe_generate_vue_page"},{"description":"Get the Vue component tree structure (simulated)","inputSchema":{"properties":{"page":{"description":"Page name","type":"string"}},"required":["page"],"type":"object"},"name":"frappe_get_vue_component_tree"},{"description":"Create UI blocks using frappe-ui and Tailwind CSS patterns","inputSchema":{"properties":{"block_type":{"description":"Type of UI block to create","enum":["hero","features","pricing","contact","footer","navbar","sidebar","card","form"],"type":"string"},"customization":{"description":"Specific customization requirements","type":"string"},"theme":{"default":"light","description":"Theme for the block","enum":["light","dark","auto"],"type":"string"}},"required":["block_type"],"type":"object"},"name":"frappe_create_ui_block"},{"description":"Generate creative UI blocks inspired by modern design patterns","inputSchema":{"properties":{"framework":{"default":"vue","description":"Target framework","enum":["vue","react","svelte"],"type":"string"},"inspiration":{"description":"Description of the inspiration or use case","type":"string"}},"required":["inspiration"],"type":"object"},"name":"frappe_inspire_ui_block"},{"description":"Refine and improve existing UI blocks","inputSchema":{"properties":{"existing_code":{"description":"Existing UI block code to refine","type":"string"},"improvements":{"description":"What improvements to make","type":"string"}},"required":["existing_code","improvements"],"type":"object"},"name":"frappe_refine_ui_block"},{"description":"Get available UI templates and patterns","inputSchema":{"properties":{"category":{"default":"all","description":"Template category","enum":["layout","component","page","all"],"type":"string"}},"type":"object"},"name":"frappe_get_ui_templates"}]}}}
