MCP server + improved git tag resolution#57
Open
ctate wants to merge 5 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MCP server: Adds
opensrc mcpsubcommand that runs opensrc as an MCP server over stdio using the official Rust SDK (rmcp). Exposes all 5 CLI commands as MCP tools (opensrc_fetch,opensrc_path,opensrc_list,opensrc_remove,opensrc_clean), so MCP-aware agents (Cursor, Claude Desktop, etc.) can call them directly without shell wrappers.Monorepo tag resolution:
clone_at_tagnow tries{name}@v{version}and{name}@{version}patterns beforev{version}and{version}, fixing resolution for monorepo packages like the Vercel AI SDK that useai@5.0.0-style tags.Fail on pinned version miss: When a version is explicitly requested (e.g.
opensrc fetch ai@5.0.0) and no matching git tag is found, opensrc now returns an error instead of silently falling back to the default branch. Unpinned versions (resolved vialatest) retain the fallback behavior.