Commit Graph
11 Commits
Author SHA1 Message Date
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 703df24b13 fix: injectable tunnel log label, honest truncate budget comment 2026-06-16 20:38:10 +05:00
admin 6a2706130a refactor: generic withManaged and connection tools in core 2026-06-16 20:28:31 +05:00
admin a1869b60bf refactor: generic Manager<TBackend> in core 2026-06-16 20:19:12 +05:00
admin 18381169e0 refactor: generic registry in core 2026-06-16 20:09:19 +05:00
admin f4249b58cf refactor: generic store and sources in core 2026-06-16 20:03:40 +05:00
admin 32b9b3f2c5 refactor: split format helpers into core 2026-06-16 19:54:22 +05:00
admin df64404d21 test(core): cover base schema + respond; neutralize tunnel log prefix 2026-06-16 19:51:13 +05:00
admin dd99f4a47b refactor: move tunnel and respond into core 2026-06-16 19:44:07 +05:00
admin c1c0e3383b feat(core): base connection schema 2026-06-16 19:40:49 +05:00
admin e88bb648b7 chore: scaffold @dbmole/core package 2026-06-16 19:39:06 +05:00