Skip to content

Commit 0701063

Browse files
committed
fix fields and changelog
1 parent f09157d commit 0701063

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Fixed issue where 403 errors were being raised during a user driven permission sync against a self-hosted code host. [#729](https://github.com/sourcebot-dev/sourcebot/pull/729)
1212
- Fixed "ambiguous argument 'HEAD^{commit}': unknown revision or path not in the working tree" error for blank repositories. [#733](https://github.com/sourcebot-dev/sourcebot/pull/733)
1313
- Fixed issue where folders containing files with non-ASCII characters in their paths would appear duplicated in the file tree. [#726](https://github.com/sourcebot-dev/sourcebot/pull/726)
14+
- Fixed invalid file and url MCP results for local indexed repos [#718](https://github.com/sourcebot-dev/sourcebot/pull/718)
1415

1516
## [4.10.8] - 2026-01-13
1617

packages/mcp/src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ server.tool(
106106
(acc, chunk) => acc + chunk.matchRanges.length,
107107
0,
108108
);
109-
const fileIdentifier = file.webUrl ?? file.fileName.text;
110-
let text = `file: ${fileIdentifier}\nnum_matches: ${numMatches}\nrepository: ${file.repository}\nlanguage: ${file.language}`;
109+
110+
let text = `file: ${file.fileName.text}\nnum_matches: ${numMatches}\nrepository: ${file.repository}\nlanguage: ${file.language}`;
111111

112112
if (includeCodeSnippets) {
113113
const snippets = file.chunks.map(chunk => {
@@ -201,10 +201,9 @@ server.tool(
201201

202202
// Format output
203203
const content: TextContent[] = paginated.map(repo => {
204-
const repoUrl = repo.webUrl ?? repo.repoCloneUrl;
205204
return {
206205
type: "text",
207-
text: `id: ${repo.repoName}\nurl: ${repoUrl}`,
206+
text: `id: ${repo.repoName}\nurl: ${repo.repoCloneUrl}`,
208207
}
209208
});
210209

0 commit comments

Comments
 (0)