Commit a313ffd
committed
fix(meta-tools): scope to caller's resolved Space + drop stale pin/active wording
Two bugs the user surfaced after exercising the live tools:
1. **Wrong space.** All four meta tools (`list_all_tools`,
`list_feature_sets`, `create_feature_set`, `bind_current_workspace`)
went through `caller_space_id`, which always returned the *default*
Space — meaning a client routed via WorkspaceBinding into a non-default
Space could still read/write FSes in the default Space. The tools must
stay inside the Space the resolver actually picked for that caller, so
`caller_space_id` now consults `FeatureSetResolverService::resolve` and
uses the resolved `space_id`. Falls back to the default Space when the
resolver returns no binding match.
2. **Stale tool descriptions.** Several descriptions still referenced
long-gone concepts:
* `list_feature_sets` claimed an `is_active` / `is_pinned` field on
each entry — neither exists in the response, and both concepts have
been removed from the model. Description now lists the actual fields
(`id`, `name`, `description`, `type`, `is_builtin`).
* `create_feature_set` told callers to follow up with
`mcpmux_pin_this_session` or `mcpmux_set_space_active` — neither tool
exists. New text points at `mcpmux_bind_current_workspace`, which is
the one mechanism that actually makes a FeatureSet take effect.
* `list_all_tools` mentioned "before deciding which tools to pin" —
trimmed to "before composing a custom FeatureSet".
* `bind_current_workspace` removed the "unless they have an explicit
pin" carve-out.
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent 42bfbf9 commit a313ffd
1 file changed
Lines changed: 35 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
119 | 126 | | |
120 | 127 | | |
121 | 128 | | |
| |||
211 | 218 | | |
212 | 219 | | |
213 | 220 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
219 | 226 | | |
220 | 227 | | |
221 | 228 | | |
| |||
338 | 345 | | |
339 | 346 | | |
340 | 347 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
345 | 352 | | |
346 | 353 | | |
347 | 354 | | |
| |||
0 commit comments