9 Commits

Author SHA1 Message Date
teknium1 b70e0f4603 fix(mcp): CLI readers no longer reopen include: [] as "all tools enabled"
The runtime already registers nothing for an explicit empty include list
(fb1ec36a4b), but every CLI reader still coerced `[]` to "no filter":
`hermes mcp list` printed "all", `hermes mcp configure` and `hermes tools`
pre-checked every tool (so confirming the picker silently re-enabled all of
them), and a catalog reinstall pre-checked the manifest defaults over the
user's zero-tool choice.

`_tool_filters` now returns the list whenever the key holds a list; only an
absent/non-list key is None. The pickers and list output branch on `is not
None`, matching `tools/mcp_tool_registration.py`.

Fixes #12865. Builds on #13096 (@dingn42) and #52874 (@Bartok9).
2026-09-12 08:34:43 -07:00
Teknium fcbe4acbef simplify(compat): tools/mcp_tool — repoint 20 non-test callers to the defining mcp_tool_* siblings 2026-09-03 13:29:35 -07:00
Teknium 61f4c657ba refactor(hermes_cli): post_setup pip hooks via constructor + derived restorable deps; _info_lines helper; compact mcp checklist/enable paths 2026-09-02 23:59:15 -07:00
Teknium fe8bfc1d68 refactor(hermes_cli): tools_config group — dense docstring reflow (word-identical, AST-verified) 2026-09-02 21:31:17 -07:00
Teknium 316427f215 refactor(hermes_cli): tools_config group — AST-neutral closer hugging and item packing (data tables kept expanded) 2026-09-02 21:22:11 -07:00
Teknium 3df6a09d62 refactor(hermes_cli): tools_config_post_setup/mcp/toolset_validation — shared _run_text, flattened branches 2026-09-02 20:48:27 -07:00
Teknium f332d5b2ba refactor(hermes_cli): tools_config group — AST-neutral bracket hugging 2026-09-02 20:38:18 -07:00
Teknium ec8e85965d refactor(tools_config): compact extracted modules (join statements, tighten comments) 2026-09-02 16:29:58 -07:00
Teknium 55ba3cbd61 refactor(tools_config): extract MCP checklist + enable/disable command into tools_config_mcp; compact checklist/reconfigure helpers 2026-09-02 16:22:15 -07:00