fix(mcp): show MCP tool changes in system prompt preview - #242
Open
JamesDAdams wants to merge 1 commit into
Open
fix(mcp): show MCP tool changes in system prompt preview#242JamesDAdams wants to merge 1 commit into
JamesDAdams wants to merge 1 commit into
Conversation
…session-disabled servers - context.applyDynamic.preview now diffs tools (added/removed) against the cached prompt, falling back to the unfiltered registry when no cache exists - DynamicContextPreviewModal renders a Tools section with add/remove counts - mcp_config list omits servers disabled for the current session - toggling MCP servers on a fresh session applies the system prompt update directly instead of showing the stale banner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix MCP toggle visibility: the "Update system prompt" preview now shows which MCP tools are added/removed,
mcp_config listno longer lists servers disabled for the current session, and toggling MCP servers before a conversation starts applies the update directly instead of showing a stale banner.context.applyDynamic.previewdiffs tool definitions (added/removed) against the cached prompt; when no cache exists it falls back to the unfiltered registry so toggles are visible on fresh sessionsDynamicContextPreviewModalrenders a "Tools (X added, Y removed)" section; the "hash changed but text identical" fallback only appears when nothing actually changedmcp_config listomits servers disabled for the current session (getSessionDisabledServers)PUT /api/sessions/:id/mcp/overridesapplies the context directly when the session has no messages, avoiding the banner before conversation startAI-Enhanced Development
Tell what models helped shape this PR:
Cache Impact
Does this PR affect anything cached — system prompts, tool definitions, skills, or other context?
applyDynamicContext) instead of deferring it.