File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,18 +186,17 @@ async def mcp_server():
186186 mcp .add_tool (
187187 fn = list_collections ,
188188 name = "ls" ,
189- description = "List all projects indexed by VectorCode. Call this before making queries." ,
189+ description = "\n " .join (
190+ prompt_by_categories ["ls" ] + prompt_by_categories ["general" ]
191+ ),
190192 )
191193
192194 mcp .add_tool (
193195 fn = query_tool ,
194196 name = "query" ,
195- description = f"""
196- Use VectorCode to perform vector similarity search on repositories and return a list of relevant file paths and contents.
197- Make sure `project_root` is one of the values from the `ls` tool.
198- Unless the user requested otherwise, start your retrievals by { mcp_config .n_results } files.
199- The result contains the relative paths for the files and their corresponding contents.
200- """ ,
197+ description = "\n " .join (
198+ prompt_by_categories ["query" ] + prompt_by_categories ["general" ]
199+ ),
201200 )
202201
203202 return mcp
You can’t perform that action at this time.
0 commit comments