@sourcebot/mcp 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +36 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -164,19 +164,22 @@ For a more detailed guide, checkout [the docs](https://docs.sourcebot.dev/docs/f
|
|
|
164
164
|
|
|
165
165
|
### search_code
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
Searches for code that matches the provided search query as a substring by default, or as a regular expression if `useRegex` is true.
|
|
168
168
|
|
|
169
169
|
<details>
|
|
170
170
|
<summary>Parameters</summary>
|
|
171
171
|
|
|
172
172
|
| Name | Required | Description |
|
|
173
173
|
|:----------------------|:---------|:----------------------------------------------------------------------------------------------------------------------------------|
|
|
174
|
-
| `query` | yes |
|
|
175
|
-
| `
|
|
176
|
-
| `
|
|
177
|
-
| `
|
|
178
|
-
| `
|
|
179
|
-
| `
|
|
174
|
+
| `query` | yes | The search pattern to match against code contents. Do not escape quotes in your query. |
|
|
175
|
+
| `useRegex` | no | Whether to use regular expression matching. When false, substring matching is used (default: false). |
|
|
176
|
+
| `filterByRepos` | no | Scope the search to specific repositories. |
|
|
177
|
+
| `filterByLanguages` | no | Scope the search to specific languages. |
|
|
178
|
+
| `filterByFilepaths` | no | Scope the search to specific filepaths. |
|
|
179
|
+
| `caseSensitive` | no | Whether the search should be case sensitive (default: false). |
|
|
180
|
+
| `includeCodeSnippets` | no | Whether to include code snippets in the response (default: false). |
|
|
181
|
+
| `ref` | no | Commit SHA, branch or tag name to search on. If not provided, defaults to the default branch. |
|
|
182
|
+
| `maxTokens` | no | The maximum number of tokens to return (default: 10000). Higher values provide more context but consume more tokens. |
|
|
180
183
|
</details>
|
|
181
184
|
|
|
182
185
|
|
|
@@ -187,42 +190,47 @@ Lists repositories indexed by Sourcebot with optional filtering and pagination.
|
|
|
187
190
|
<details>
|
|
188
191
|
<summary>Parameters</summary>
|
|
189
192
|
|
|
190
|
-
| Name
|
|
191
|
-
|
|
192
|
-
| `query`
|
|
193
|
-
| `
|
|
194
|
-
| `
|
|
193
|
+
| Name | Required | Description |
|
|
194
|
+
|:------------|:---------|:--------------------------------------------------------------------------------|
|
|
195
|
+
| `query` | no | Filter repositories by name (case-insensitive). |
|
|
196
|
+
| `page` | no | Page number for pagination (min 1, default: 1). |
|
|
197
|
+
| `perPage` | no | Results per page for pagination (min 1, max 100, default: 30). |
|
|
198
|
+
| `sort` | no | Sort repositories by 'name' or 'pushed' (most recent commit). Default: 'name'. |
|
|
199
|
+
| `direction` | no | Sort direction: 'asc' or 'desc' (default: 'asc'). |
|
|
195
200
|
|
|
196
201
|
</details>
|
|
197
202
|
|
|
198
|
-
###
|
|
203
|
+
### read_file
|
|
199
204
|
|
|
200
|
-
|
|
205
|
+
Reads the source code for a given file.
|
|
201
206
|
|
|
202
207
|
<details>
|
|
203
208
|
<summary>Parameters</summary>
|
|
204
209
|
|
|
205
|
-
| Name
|
|
206
|
-
|
|
207
|
-
| `
|
|
208
|
-
| `
|
|
210
|
+
| Name | Required | Description |
|
|
211
|
+
|:-------|:---------|:---------------------------------------------------------------------------------------------------------------|
|
|
212
|
+
| `repo` | yes | The repository name. |
|
|
213
|
+
| `path` | yes | The path to the file. |
|
|
214
|
+
| `ref` | no | Commit SHA, branch or tag name to fetch the source code for. If not provided, uses the default branch. |
|
|
209
215
|
</details>
|
|
210
216
|
|
|
211
|
-
###
|
|
217
|
+
### list_commits
|
|
212
218
|
|
|
213
|
-
|
|
219
|
+
Get a list of commits for a given repository.
|
|
214
220
|
|
|
215
221
|
<details>
|
|
216
222
|
<summary>Parameters</summary>
|
|
217
223
|
|
|
218
|
-
| Name
|
|
219
|
-
|
|
220
|
-
| `
|
|
221
|
-
| `query`
|
|
222
|
-
| `since`
|
|
223
|
-
| `until`
|
|
224
|
-
| `author`
|
|
225
|
-
| `
|
|
224
|
+
| Name | Required | Description |
|
|
225
|
+
|:----------|:---------|:--------------------------------------------------------------------------------------------------------------------------------------|
|
|
226
|
+
| `repo` | yes | The name of the repository to list commits for. |
|
|
227
|
+
| `query` | no | Search query to filter commits by message content (case-insensitive). |
|
|
228
|
+
| `since` | no | Show commits more recent than this date. Supports ISO 8601 (e.g., '2024-01-01') or relative formats (e.g., '30 days ago'). |
|
|
229
|
+
| `until` | no | Show commits older than this date. Supports ISO 8601 (e.g., '2024-12-31') or relative formats (e.g., 'yesterday'). |
|
|
230
|
+
| `author` | no | Filter commits by author name or email (case-insensitive). |
|
|
231
|
+
| `ref` | no | Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch. |
|
|
232
|
+
| `page` | no | Page number for pagination (min 1, default: 1). |
|
|
233
|
+
| `perPage` | no | Results per page for pagination (min 1, max 100, default: 50). |
|
|
226
234
|
|
|
227
235
|
</details>
|
|
228
236
|
|