Add Codebase Semantic Search as an MCP tool
What does this MR do and why?
This MR will address step1:
Step 1: Add CodebaseSearch as an MCP tool
Add a new MCP tool definition for CodebaseSemanticSearch
Codebase Semantic Search invocation
- Option 1: Make use of the API introduced in Add a new API endpoint for the Codebase Search ... (#555843 - closed)
-
Option 2: Directly call the
Ai::ActiveContext::Queries::Code
Note: the feasibility of the above approaches are still under discussion. There are a few concerns including security. Please refer to the discussions in SPIKE: Discuss API tool design for MCP tool (#569206)
References
Set up and test
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Tian Gao