{"at":"2026-11-23T04:42:15.327Z","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:42:15.891Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:42:15.992Z","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:42:16.504Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"esmole-mcp","version":"0.2.0"}}}}
{"at":"2026-11-23T04:42:16.504Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:42:16.504Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:42:16.508Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List Elasticsearch connections with the layer each comes from: project (.esmole.json, found by walking up from the project dir) or global (user store). Also shows invalid entries and broken files. Secrets are omitted.","execution":{"taskSupport":"forbidden"},"inputSchema":{"properties":{},"type":"object"},"name":"list_connections"},{"description":"Add a named Elasticsearch connection. scope \"global\" (default) saves it to the user store; \"project\" saves it to .esmole.json in the project root. Auth via user/password or apiKey; optional ssh tunnel, readonly flag, scheme and verifyTls.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"apiKey":{"minLength":1,"type":"string"},"host":{"minLength":1,"type":"string"},"name":{"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"password":{"type":"string"},"port":{"exclusiveMinimum":0,"type":"integer"},"queryTimeoutMs":{"exclusiveMinimum":0,"maximum":2147483647,"type":"integer"},"readonly":{"default":false,"type":"boolean"},"scheme":{"default":"https","enum":["http","https"],"type":"string"},"scope":{"default":"global","enum":["project","global"],"type":"string"},"ssh":{"additionalProperties":false,"properties":{"agent":{"type":"boolean"},"host":{"minLength":1,"type":"string"},"hostKey":{"pattern":"^SHA256:[A-Za-z0-9+/]+={0,2}$","type":"string"},"passphrase":{"type":"string"},"password":{"type":"string"},"port":{"default":22,"exclusiveMinimum":0,"type":"integer"},"privateKey":{"type":"string"},"privateKeyPath":{"type":"string"},"user":{"minLength":1,"type":"string"}},"required":["host","user"],"type":"object"},"type":{"const":"elasticsearch","default":"elasticsearch","type":"string"},"user":{"minLength":1,"type":"string"},"verifyTls":{"default":true,"type":"boolean"}},"required":["name","host"],"type":"object"},"name":"add_connection"},{"description":"Patch an ES connection by name in the layer it lives in (project or global). Set a field to null to remove it (e.g. \"ssh\": null); an ssh object is merged field by field, e.g. { \"ssh\": { \"hostKey\": \"SHA256:...\" } }. queryTimeoutMs sets the per-request deadline (null restores the 60 s default).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"type":"string"},"patch":{"additionalProperties":false,"properties":{"apiKey":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"host":{"minLength":1,"type":"string"},"name":{"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"password":{"type":["string","null"]},"port":{"anyOf":[{"exclusiveMinimum":0,"type":"integer"},{"type":"null"}]},"queryTimeoutMs":{"anyOf":[{"exclusiveMinimum":0,"maximum":2147483647,"type":"integer"},{"type":"null"}]},"readonly":{"type":"boolean"},"scheme":{"enum":["http","https"],"type":"string"},"ssh":{"anyOf":[{"additionalProperties":false,"properties":{"agent":{"type":["boolean","null"]},"host":{"minLength":1,"type":"string"},"hostKey":{"anyOf":[{"pattern":"^SHA256:[A-Za-z0-9+/]+={0,2}$","type":"string"},{"type":"null"}]},"passphrase":{"type":["string","null"]},"password":{"type":["string","null"]},"port":{"exclusiveMinimum":0,"type":"integer"},"privateKey":{"type":["string","null"]},"privateKeyPath":{"type":["string","null"]},"user":{"minLength":1,"type":"string"}},"type":"object"},{"type":"null"}]},"user":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}]},"verifyTls":{"type":"boolean"}},"type":"object"}},"required":["name","patch"],"type":"object"},"name":"update_connection"},{"description":"Remove an ES connection by name from the layer it lives in (invalid entries too) and drop its cached client/tunnel.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"remove_connection"},{"description":"Verify an ES connection works end to end (including ssh tunnel). Reports server version and latency.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"test_connection"},{"description":"Generic Elasticsearch REST passthrough: any method, any path. Returns {status, body}. A 4xx/5xx answer is returned as an error: \"HTTP <status> <type>: <reason>\" plus the trimmed body. Use a string body for NDJSON (_bulk, _msearch). On readonly connections only reads pass: GET, HEAD, POST [/<index>]/_search|_msearch|_count|_field_caps|_pit, POST /_search/scroll, DELETE /_pit and /_search/scroll.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"body":{"anyOf":[{"additionalProperties":{},"type":"object"},{"items":{},"type":"array"},{"type":"string"}]},"connection":{"description":"connection name, see list_connections","type":"string"},"method":{"enum":["GET","POST","PUT","DELETE","HEAD"],"type":"string"},"params":{"additionalProperties":{"type":["string","number","boolean"]},"type":"object"},"path":{"description":"path from the ES root, e.g. '/idx/_search'","type":"string"}},"required":["connection","method","path"],"type":"object"},"name":"es_request"},{"description":"Search an index. Wraps POST /{index}/_search. query is the query DSL only; sort, from, search_after, track_total_hits, highlight, script_fields and source (_source) map to the same-named body keys. size defaults to 10; with aggs and no query it is forced to 0. Page with from+size or sort+search_after. Use source to project fields and keep responses small. Returns {status, body}; a 4xx/5xx is an error with the ES root cause.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"aggs":{"additionalProperties":{},"type":"object"},"connection":{"type":"string"},"from":{"minimum":0,"type":"integer"},"highlight":{"additionalProperties":{},"type":"object"},"index":{"description":"index, alias, comma list or wildcard, e.g. logs-*,metrics","type":"string"},"query":{"additionalProperties":{},"description":"query DSL only, e.g. {\"bool\": {...}}","type":"object"},"script_fields":{"additionalProperties":{},"type":"object"},"search_after":{"description":"sort values of the last hit","items":{},"type":"array"},"size":{"maximum":1000,"minimum":0,"type":"integer"},"sort":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":{},"type":"object"}]},"type":"array"}],"description":"e.g. [{\"@timestamp\": \"desc\"}]"},"source":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"boolean"}],"description":"_source projection: list of fields or false"},"track_total_hits":{"anyOf":[{"type":"boolean"},{"type":"integer"}]}},"required":["connection","index"],"type":"object"},"name":"es_search"},{"description":"List indices matching a pattern with health, doc count and store size. Wraps GET /_cat/indices.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"connection":{"type":"string"},"pattern":{"default":"*","type":"string"}},"required":["connection"],"type":"object"},"name":"es_list_indices"},{"description":"Return an index mapping as a flat field:type list (compact, token-cheap). Pass raw=true for the nested ES JSON.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"connection":{"type":"string"},"index":{"type":"string"},"raw":{"default":false,"type":"boolean"}},"required":["connection","index"],"type":"object"},"name":"es_get_mapping"},{"description":"Cluster health summary (status, node and shard counts). Wraps GET /_cluster/health.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"connection":{"type":"string"}},"required":["connection"],"type":"object"},"name":"es_cluster_health"}]}}}
