Skip to content

fix(mcp): steer codegraph_context task param toward keywords (#571) - #582

Closed
Elimartain wants to merge 1 commit into
colbymchenry:mainfrom
Elimartain:fix-context-task-description
Closed

Elimartain wants to merge 1 commit into
colbymchenry:mainfrom
Elimartain:fix-context-task-description

Conversation

@Elimartain

Copy link
Copy Markdown

The task parameter described itself as "Description of the task, bug, or feature," which leads models to pass full natural-language sentences. The context search is FTS5 keyword-based, so those extra words dilute the query and cause misses.

Reworded it to ask for short keywords or symbol names, matching how the other params in this file are described.

Ran tsc --noEmit to confirm it still compiles. Fixes #571.

@colbymchenry

Copy link
Copy Markdown
Owner

Thanks for the fix and for diagnosing #571 so precisely, @Elimartain! The codegraph_context tool and its task parameter were removed in 0.9.9 when codegraph_explore became the single primary tool (#647), so there's nothing left for this change to apply to. Closing as obsolete.

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.

codegraph_context task parameter description misleads models into passing natural language instead of keywords

3 participants