Skip to content

MCP server + improved git tag resolution#57

Open
ctate wants to merge 5 commits into
mainfrom
ctate/mcp-mode
Open

MCP server + improved git tag resolution#57
ctate wants to merge 5 commits into
mainfrom
ctate/mcp-mode

Conversation

@ctate

@ctate ctate commented May 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • MCP server: Adds opensrc mcp subcommand 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_tag now tries {name}@v{version} and {name}@{version} patterns before v{version} and {version}, fixing resolution for monorepo packages like the Vercel AI SDK that use ai@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 via latest) retain the fallback behavior.

@vercel

vercel Bot commented May 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opensrc Ready Ready Preview, Comment May 1, 2026 4:18pm

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​rmcp@​1.6.089100100100100
Addedcargo/​schemars@​1.2.1100100100100100

View full report

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.

1 participant