You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/features/mcp-server.mdx
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -304,22 +304,19 @@ Pass the key as an `Authorization: Bearer <key>` header when connecting to the M
304
304
305
305
## Available Tools
306
306
307
-
### `search_code`
307
+
### `grep`
308
308
309
-
Searches for code that matches the provided search query as a substring by default, or as a regular expression if `useRegex` is true.
309
+
Searches for code matching a regular expression pattern across repositories, similar to `grep`/`ripgrep`. Always case-sensitive. Results are grouped by file and include line numbers.
|`pattern`| yes | The regex pattern to search for in file contents. |
315
+
|`path`| no | Directory path to scope the search to. Defaults to the repository root. |
316
+
|`include`| no | File glob pattern to include in the search (e.g. `*.ts`, `*.{ts,tsx}`). |
317
+
|`repo`| no | Repository name to search in. If not provided, searches all repositories. Use the full name including host (e.g. `github.com/org/repo`). |
321
318
|`ref`| no | Commit SHA, branch or tag name to search on. If not provided, defaults to the default branch. |
322
-
|`maxTokens`| no |The maximum number of tokens to return (default: 10000). |
319
+
|`limit`| no |Maximum number of matching files to return (default: 100). |
323
320
324
321
### `list_repos`
325
322
@@ -336,18 +333,20 @@ Parameters:
336
333
337
334
### `read_file`
338
335
339
-
Reads the source code for a given file.
336
+
Reads the source code for a given file, with optional line range control for large files.
0 commit comments