Skip to content

Commit f057b11

Browse files
update mcp docs
1 parent 199bab2 commit f057b11

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ SOURCEBOT_TELEMETRY_DISABLED=true # Disables telemetry collection
7777
NODE_ENV=development
7878
# SOURCEBOT_TENANCY_MODE=single
7979

80-
DEBUG_WRITE_CHAT_MESSAGES_TO_FILE=true
80+
DEBUG_WRITE_CHAT_MESSAGES_TO_FILE=true

docs/docs/features/mcp-server.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,39 @@ Parameters:
375375
| `page` | no | Page number for pagination (min 1, default: 1). |
376376
| `perPage` | no | Results per page for pagination (min 1, max 100, default: 50). |
377377

378+
### `glob`
379+
380+
Finds files whose paths match a glob pattern across repositories (e.g. `**/*.ts`, `src/**/*.test.{ts,tsx}`). Results are grouped by repository.
381+
382+
Parameters:
383+
| Name | Required | Description |
384+
|:----------|:---------|:------------|
385+
| `pattern` | yes | Glob pattern to match file paths against (e.g. `**/*.ts`, `src/**/*.test.{ts,tsx}`). |
386+
| `path` | no | Restrict results to files under this subdirectory. |
387+
| `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`). |
388+
| `ref` | no | Commit SHA, branch or tag name to search on. If not provided, defaults to the default branch. |
389+
| `limit` | no | Maximum number of files to return (default: 100). |
390+
391+
### `find_symbol_definitions`
392+
393+
Finds where a symbol (function, class, variable, etc.) is defined in a repository.
394+
395+
Parameters:
396+
| Name | Required | Description |
397+
|:---------|:---------|:------------|
398+
| `symbol` | yes | The symbol name to find definitions of. |
399+
| `repo` | yes | Repository name to scope the search to. Use the full name including host (e.g. `github.com/org/repo`). |
400+
401+
### `find_symbol_references`
402+
403+
Finds all usages of a symbol (function, class, variable, etc.) across a repository.
404+
405+
Parameters:
406+
| Name | Required | Description |
407+
|:---------|:---------|:------------|
408+
| `symbol` | yes | The symbol name to find references to. |
409+
| `repo` | yes | Repository name to scope the search to. Use the full name including host (e.g. `github.com/org/repo`). |
410+
378411
### `list_language_models`
379412

380413
Lists the available language models configured on the Sourcebot instance. Use this to discover which models can be specified when calling `ask_codebase`.

0 commit comments

Comments
 (0)