Commit Graph
11 Commits
Author SHA1 Message Date
admin 63bb2a5c99 fix: derive SERVER_VERSION from package.json
dbmole reported a hardcoded SERVER_VERSION of 0.1.0 while the package was
already published as 0.1.1: the constant had drifted because a bump has to
touch two places. Both servers now read the version from package.json
(resolveJsonModule + a JSON import attribute), so a release updates one
place and the reported version can no longer fall behind.

Add a dbmole guard test that add_connection publishes a non-empty
inputSchema with the expected required fields, mirroring esmole, so a future
`.superRefine` on the schema cannot silently empty it.
2026-06-16 23:49:05 +05:00
admin 5af1b7daaa chore(esmole): bump to 0.1.1 for republish 2026-06-16 23:15:37 +05:00
admin 9bbd179a40 fix(esmole): publish typed add_connection inputSchema
add_connection advertised an empty `{ properties: {} }` while the server
validated strictly, so clients could not see field types or the required
`type` literal and sent port/verifyTls as strings.

Cause: the connection schema was wrapped in `.superRefine`, producing a
ZodEffects with no `.shape`. The MCP SDK's normalizeObjectSchema returns
undefined for it and falls back to EMPTY_OBJECT_JSON_SCHEMA. update_connection
passed a raw shape, so it serialized fine - hence the asymmetry.

Split the schema: a strict z.object (connectionObjectSchema) is advertised as
the wire schema, and the refined connectionConfigSchema is passed as a new
optional parseSchema applied in the handler. Strict unknown-key rejection and
the apiKey-or-user+password check are both preserved. fullSchema is now typed
as a ZodObject so a ZodEffects can no longer be passed by mistake.
2026-06-16 23:15:08 +05:00
admin dd6ca2deff fix(esmole): truncate all tool responses; guard normalizes leading slash 2026-06-16 21:21:20 +05:00
admin 5aad5f9304 feat(esmole): server wiring and stdio entry 2026-06-16 21:07:48 +05:00
admin 49fb98c18b feat(esmole): es_request, es_search, es_list_indices, es_get_mapping, es_cluster_health 2026-06-16 21:04:12 +05:00
admin 889e844768 feat(esmole): store, sources, registry, manager, backend binders 2026-06-16 20:56:03 +05:00
admin 42712d508c feat(esmole): undici HTTP backend with TLS servername 2026-06-16 20:51:21 +05:00
admin b2a9c3323f feat(esmole): mapping flatten 2026-06-16 20:48:10 +05:00
admin 7381db1189 feat(esmole): readonly request guard 2026-06-16 20:46:23 +05:00
admin a424963418 feat(esmole): connection schema 2026-06-16 20:44:11 +05:00