Commit 95eb507
authored
fix(cli): curate wheels MCP tool surface and fix stats crash (#2139)
* feat(cli): hide cli-only commands from lucli mcp tools/list
Uses the mcpHiddenTools() convention from LuCLI 0.3.4 to exclude mcp,
d, new, console, start, stop, and browser from MCP auto-discovery.
All seven remain callable as CLI subcommands.
Agents doing 'tools/list' on the wheels MCP server now see 16 curated
tools instead of 23, with stateful/interactive/meta commands filtered
out.
* fix(cli): guard Left(str,0) in sprintf helper for Lucee 7
The private sprintf() helper used by 'wheels stats' called
left(result, match.pos[1] - 1) without guarding against pos=1.
Lucee 7 throws 'parameter 2 of the function left can not be 0'
where Lucee 6 returned an empty string silently.
Added a ternary guard per the cross-engine compatibility pattern
documented in the Wheels CLAUDE.md. Exercised via the
sandbox-level MCP tools/call stats test.
* chore(cli): delete redundant services/MCP.cfc schema registry
The parallel schema registry at cli/lucli/services/MCP.cfc was never
wired into LuCLI's MCP discovery path — LuCLI auto-discovers tool
schemas from Module.cfc public function signatures, not from a
schema service. The file also drifted: used wrong tool names
(wheels_generate vs auto-discovered 'generate') and was missing
notes/stats/db/etc.
Rich parameter schemas for MCP tools will be reintroduced in a
follow-up PR by adding typed parameters directly to Module.cfc
public functions, where LuCLI's buildInputSchema() reads them.
* docs(docs): document mcp curation, stats fix, mcp service removal1 parent 2d2123e commit 95eb507
5 files changed
Lines changed: 58 additions & 289 deletions
File tree
- cli
- lucli
- services
- tests/specs/services
- tests/specs/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
97 | 122 | | |
98 | 123 | | |
99 | 124 | | |
| |||
3778 | 3803 | | |
3779 | 3804 | | |
3780 | 3805 | | |
3781 | | - | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
3782 | 3809 | | |
3783 | 3810 | | |
3784 | 3811 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
| |||
175 | 187 | | |
176 | 188 | | |
177 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
178 | 205 | | |
179 | 206 | | |
180 | 207 | | |
| |||
0 commit comments