File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515### Changed
1616- Updated API client to match the latest Sourcebot release. [ #652 ] ( https://github.com/sourcebot-dev/sourcebot/pull/652 )
1717
18+ ### Fixed
19+ - Fixed invalid file and url MCP results for local indexed repos [ #718 ] ( https://github.com/sourcebot-dev/sourcebot/pull/718 )
20+
1821## [ 1.0.10] - 2025-11-24
1922
2023### Changed
Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ server.tool(
106106 ( acc , chunk ) => acc + chunk . matchRanges . length ,
107107 0 ,
108108 ) ;
109-
110- let text = `file: ${ file . fileName . text } \nnum_matches: ${ numMatches } \nrepository: ${ file . repository } \nlanguage: ${ file . language } ` ;
109+ const fileIdentifier = file . webUrl ?? file . fileName . text ;
110+ let text = `file: ${ fileIdentifier } \nnum_matches: ${ numMatches } \nrepository: ${ file . repository } \nlanguage: ${ file . language } ` ;
111111
112112 if ( includeCodeSnippets ) {
113113 const snippets = file . chunks . map ( chunk => {
@@ -201,9 +201,10 @@ server.tool(
201201
202202 // Format output
203203 const content : TextContent [ ] = paginated . map ( repo => {
204+ const repoUrl = repo . webUrl ?? repo . repoCloneUrl ;
204205 return {
205206 type : "text" ,
206- text : `id: ${ repo . repoName } \nurl: ${ repo . repoCloneUrl } ` ,
207+ text : `id: ${ repo . repoName } \nurl: ${ repoUrl } ` ,
207208 }
208209 } ) ;
209210
You can’t perform that action at this time.
0 commit comments