Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- `filterByFilepaths` in the MCP `search_code` tool now accepts regular expressions matched against the full file path, instead of treating values as escaped literals. [#1008](https://github.com/sourcebot-dev/sourcebot/pull/1008)
Comment thread
brendan-kellam marked this conversation as resolved.

## [4.15.7] - 2026-03-16

### Added
Expand Down
1 change: 0 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,5 @@ PR description:

After the PR is created:
- Update CHANGELOG.md with an entry under `[Unreleased]` linking to the new PR. New entries should be placed at the bottom of their section.
- If the change touches `packages/mcp`, update `packages/mcp/CHANGELOG.md` instead
- Do NOT add a CHANGELOG entry for documentation-only changes (e.g., changes only in `docs/`)
- Enterprise-only features (gated by an entitlement) should be prefixed with `[EE]` in the CHANGELOG entry (e.g., `- [EE] Added support for ...`)
4 changes: 2 additions & 2 deletions packages/web/src/features/mcp/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function createMcpServer(): McpServer {
.optional(),
filterByFilepaths: z
.array(z.string())
.describe(`Scope the search to the provided filepaths.`)
.describe(`Scope the search to the provided filepaths. Each filepath is a regular expression matched against the full file path.`)
.optional(),
caseSensitive: z
.boolean()
Expand Down Expand Up @@ -147,7 +147,7 @@ export function createMcpServer(): McpServer {
query += ` (lang:${languages.join(' or lang:')})`;
}
if (filepaths.length > 0) {
query += ` (file:${filepaths.map(fp => escapeStringRegexp(fp)).join(' or file:')})`;
query += ` (file:${filepaths.join(' or file:')})`;
Comment thread
brendan-kellam marked this conversation as resolved.
}
if (ref) {
query += ` ( rev:${ref} )`;
Expand Down
Loading