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: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Changed
11
11
- Changed language detection to resolve file extensions with multiple language resolutions (e.g., .md) to the most common resolution. [#1026](https://github.com/sourcebot-dev/sourcebot/pull/1026)
12
+
- Changed the `webUrl` property of the `/api/repos` api to return a URL rather than just a path. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
13
+
- Changed the ask search scope selector to allow submitting questions with no search scope selected. When no selection is made, the agent will be able to search over all repos the user has access to. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
14
+
- Renamed the `search_code` tool to `grep` for ask and mcp. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
15
+
16
+
### Added
17
+
- Added `glob`, `find_symbol_definitions`, and `find_symbol_references` tools to the ask agent and MCP server. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
18
+
- Added `list_tree` tool to the ask agent. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
- Added `path` parameter to the `/api/commits` api to allow filtering commits by paths. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
21
+
22
+
### Fixed
23
+
- Fixed issue where ask responses would sometimes appear in the details panel while generating. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
24
+
- Fixed reference panel overflow issue in the ask UI. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
25
+
- Fixed homepage scrolling issue in the ask UI. [#1014](https://github.com/sourcebot-dev/sourcebot/pull/1014)
Copy file name to clipboardExpand all lines: docs/docs/features/mcp-server.mdx
+46-14Lines changed: 46 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.
|`ref`| no | Commit SHA, branch or tag name to fetch the source code for. If not provided, uses the default branch. |
344
+
|`offset`| no | Line number to start reading from (1-indexed). Omit to start from the beginning. |
345
+
|`limit`| no | Maximum number of lines to read (max: 500). Omit to read up to 500 lines. |
347
346
348
347
### `list_tree`
349
348
350
-
Lists files and directories from a repository path. Can be used as a directory listing tool (`depth: 1`) or a repo-tree tool (`depth > 1`).
349
+
Lists files and directories from a repository path. Directories are shown before files at each level.
351
350
352
351
Parameters:
353
352
| Name | Required | Description |
@@ -376,6 +375,39 @@ Parameters:
376
375
|`page`| no | Page number for pagination (min 1, default: 1). |
377
376
|`perPage`| no | Results per page for pagination (min 1, max 100, default: 50). |
378
377
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
+
379
411
### `list_language_models`
380
412
381
413
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