fix(prompts,hints): align MCP tool names and refactor guidance - #821
Open
TheJeje20 wants to merge 5 commits into
Open
fix(prompts,hints): align MCP tool names and refactor guidance#821TheJeje20 wants to merge 5 commits into
TheJeje20 wants to merge 5 commits into
Conversation
added 5 commits
July 28, 2026 19:05
Align prompts and hint generation with the exported MCP tool names. Update the tool wrappers that emit _hints so follow-up suggestions stay consistent with the server schema, and add regression coverage for the prompt text and refactor follow-ups.
Reintroduce semantic_search_nodes_tool as the follow-up suggestion for rename-oriented refactor flows. Mirror the guidance in prompts and add regression coverage so the workflow stays visible in both prompt text and hint generation.
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.
Align MCP prompts and hints with the exported tool surface
Summary
This PR updates the guidance layer used by prompts and hints so it matches the public MCP tools exposed by the server.
It also makes the refactor workflow easier to follow by explicitly suggesting symbol search when planning a rename.
What changed
_tool.dead_codeas the explicit refactor mode for dead-code checks.semantic_search_nodes_toolas the follow-up step for “find related symbols to also rename”.find_large_functions_toolas a separate size/complexity check.Scope and intent
This does not change the MCP API itself.
The change is limited to how the workflows are described and which follow-up actions are suggested:
refactor_tool(mode="dead_code")semantic_search_nodes_toolValidation
pytest tests/test_prompts.py tests/test_hints.py -q56 passedfor the refactor/hints path57 passedafter the prompt update