Skip to content

fix(app-studio): unlock infra + repo MCP tools for instance/git turns#370

Merged
mjudeikis merged 2 commits into
mainfrom
fix/app-studio-instance-mcp-gate
Jun 29, 2026
Merged

fix(app-studio): unlock infra + repo MCP tools for instance/git turns#370
mjudeikis merged 2 commits into
mainfrom
fix/app-studio-instance-mcp-gate

Conversation

@mjudeikis

Copy link
Copy Markdown
Contributor

Problem

After the app-studio / infrastructure split, the assistant could not list instances. Asking "list instances via mcp" returned a reply that it had "no MCP instance list available."

Root cause

The assistant only fetches the aggregated infrastructure MCP tools when the last user message matches a hardcoded keyword gate (projectAssistantTurnNeedsInfrastructureMCP, added in #350). The keyword list covered template/provisioning vocabulary but omitted the instance lifecycle — so prompts about instances never tripped the gate, infrastructure__list_instances was never loaded for the turn, and the model truthfully said it had no instance list.

This is not a data-path regression from the runtime-kubeconfig decoupling (#368) — the federated infrastructure__list_instances tool is intact; it simply wasn't being offered for these turns.

Fix

Add instance, instances, platform, and mcp to the keyword list, plus a test asserting the gate trips on instance/platform/mcp phrasing and still ignores unrelated turns.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 29, 2026 06:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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>
@mjudeikis mjudeikis force-pushed the fix/app-studio-instance-mcp-gate branch from 260107a to 143ee81 Compare June 29, 2026 06:29
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>
Copilot AI review requested due to automatic review settings June 29, 2026 06:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mjudeikis mjudeikis changed the title fix(app-studio): load infra MCP tools for instance/platform turns fix(app-studio): unlock infra + repo MCP tools for instance/git turns Jun 29, 2026
@mjudeikis mjudeikis merged commit c774a9a into main Jun 29, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants