-
Notifications
You must be signed in to change notification settings - Fork 9
Implementated selective disable of tools to spare with the schema size #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1201,6 +1201,7 @@ export interface CodegraphConfig { | |||||||||||||||||
|
|
||||||||||||||||||
| mcp: { | ||||||||||||||||||
| defaults: McpDefaults; | ||||||||||||||||||
| disabledTools: string[]; | ||||||||||||||||||
| }; | ||||||||||||||||||
|
Comment on lines
1202
to
1205
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validateMultiRepoAccessruns before disabled-tool guardvalidateMultiRepoAccessis called on line 171 before theenabledToolNamescheck on line 173. In multi-repo mode, if a caller omits the requiredrepoargument when invoking a disabled tool, the handler will throw a multi-repo access error instead of returning the expected"Unknown tool: <name>"response. Swapping the two checks keeps the disabled-tool path clean.