Skip to content

fix(prompts,hints): align MCP tool names and refactor guidance - #821

Open
TheJeje20 wants to merge 5 commits into
tirth8205:mainfrom
TheJeje20:codex/fix-prompts-hints-sync
Open

fix(prompts,hints): align MCP tool names and refactor guidance#821
TheJeje20 wants to merge 5 commits into
tirth8205:mainfrom
TheJeje20:codex/fix-prompts-hints-sync

Conversation

@TheJeje20

Copy link
Copy Markdown

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

  • Replaced bare tool names in prompts and hint routing with the public MCP names ending in _tool.
  • Kept dead_code as the explicit refactor mode for dead-code checks.
  • Added semantic_search_nodes_tool as the follow-up step for “find related symbols to also rename”.
  • Kept find_large_functions_tool as a separate size/complexity check.
  • Updated tests to cover the revised prompt text and hint suggestions.

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:

  • dead-code detection still uses refactor_tool(mode="dead_code")
  • rename planning now explicitly points to semantic_search_nodes_tool
  • large-function checks remain a separate step

Validation

  • pytest tests/test_prompts.py tests/test_hints.py -q
  • 56 passed for the refactor/hints path
  • 57 passed after the prompt update

TheJeje20 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.
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.

1 participant