File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/web/src/features/mcp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export function createMcpServer(): McpServer {
9898 . optional ( ) ,
9999 filterByFilepaths : z
100100 . array ( z . string ( ) )
101- . describe ( `Scope the search to the provided filepaths.` )
101+ . describe ( `Scope the search to the provided filepaths. Each filepath is a regular expression matched against the full file path. ` )
102102 . optional ( ) ,
103103 caseSensitive : z
104104 . boolean ( )
@@ -147,7 +147,7 @@ export function createMcpServer(): McpServer {
147147 query += ` (lang:${ languages . join ( ' or lang:' ) } )` ;
148148 }
149149 if ( filepaths . length > 0 ) {
150- query += ` (file:${ filepaths . map ( fp => escapeStringRegexp ( fp ) ) . join ( ' or file:' ) } )` ;
150+ query += ` (file:${ filepaths . join ( ' or file:' ) } )` ;
151151 }
152152 if ( ref ) {
153153 query += ` ( rev:${ ref } )` ;
You can’t perform that action at this time.
0 commit comments