Skip to content

Conversation

@msukkari
Copy link
Contributor

@msukkari msukkari commented Jan 8, 2026

Fixes MCP results returning undefined filenames for local repositories by adding fallbacks for webUrl.

For local repositories, the webUrl field is inherently undefined. The MCP search_code and list_repos tools were directly using file.webUrl and repo.webUrl respectively, leading to "undefined" being displayed. This PR introduces fallbacks to file.fileName.text for search results and repo.repoCloneUrl for repo listings when webUrl is not available.

Fixes #717


Linear Issue: SOU-193

Open in Cursor Open in Web

…local repos

For local repositories, the webUrl field is undefined since there's no
web hosting URL. This fix makes both search_code and list_repos tools
fallback to the fileName.text and repoCloneUrl respectively when webUrl
is not available.
@cursor
Copy link

cursor bot commented Jan 8, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Jan 8, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] MCP results return undefined filename on local repos

3 participants