Commit c774a9a
fix(app-studio): unlock infra + repo MCP tools for instance/git turns (#370)
* fix(app-studio): load infra MCP tools for instance/platform turns
The assistant only fetches the aggregated infrastructure MCP tools when
the last user message matches a keyword gate
(projectAssistantTurnNeedsInfrastructureMCP). The list covered
template/provisioning vocabulary but omitted the instance lifecycle, so
prompts like "list instances via mcp" never loaded
infrastructure__list_instances and the model truthfully replied it had
no instance list available.
Add instance/instances, platform, and mcp to the keyword list and a test
asserting the gate trips on instance/platform/mcp phrasing.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(app-studio): classify git/PR turns as implementation
Repo-mutating turns ("push my changes", "open a pull request", "merge
the branch") fell through to the discussion profile, so the commit/repo
MCP bridge was never unlocked for them. Add git, push, pull request,
branch, and merge to the implementation keyword set (skipping a bare
"pr", which is a substring of too many common words).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bf1c424 commit c774a9a
4 files changed
Lines changed: 33 additions & 1 deletion
File tree
- providers/app-studio/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
28 | 54 | | |
29 | 55 | | |
30 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
0 commit comments