Agent skill
bump-version
Assess and bump the SDK version using Semantic Versioning 2.0.0. Evaluates queued changes to recommend PATCH/MINOR/MAJOR, updates src/Directory.Build.props, and creates a pull request. Owns the SemVer assessment logic shared by prepare-release and publish-release. Use when asked to bump the version, assess the version, or determine what the next version should be.
Install this agent skill to your Project
npx add-skill https://github.com/modelcontextprotocol/csharp-sdk/tree/main/.github/skills/bump-version
SKILL.md
Bump Version
Assess and bump the SDK version in src/Directory.Build.props to prepare for the next release. This skill owns the Semantic Versioning 2.0.0 assessment logic — the SemVer assessment guide is the single source of truth for version assessment criteria used across the release workflow by both the prepare-release and publish-release skills.
Note: For comprehensive release preparation — including ApiCompat/ApiDiff, documentation review, and release notes — use the prepare-release skill, which incorporates version assessment as part of its broader workflow.
Process
Step 1: Read Current Version and Previous Release
Read src/Directory.Build.props on the default branch and extract:
<VersionPrefix>— theMAJOR.MINOR.PATCHversion
Display the current version to the user.
Determine the previous release tag from gh release list (most recent published release). Draft releases must be ignored — they represent a pending release that has not yet shipped. Use --exclude-drafts or filter to only published releases when querying.
Step 2: Assess and Determine Next Version
If the user provided a target version in their prompt, use it directly. Otherwise, determine the next version using one of two approaches:
SemVer-Informed Assessment (Preferred)
When context about queued changes is available or can be gathered, assess the version following the SemVer assessment guide:
- Get the list of PRs merged between the previous release tag and the target commit (typically HEAD).
- Classify the release level:
- MAJOR — if any confirmed breaking changes (API or behavioral), excluding
[Experimental]APIs - MINOR — if new public APIs, features, or obsoletion warnings are present
- PATCH — otherwise
- MAJOR — if any confirmed breaking changes (API or behavioral), excluding
- Compute the recommended version from the previous release tag (see the assessment guide for increment rules).
- Compare against the current version in
Directory.Build.propsand flag any discrepancy. - Present the assessment with a summary table and rationale, then get user confirmation.
Default Suggestion (Fallback)
When a quick bump is needed without full change analysis, suggest the next minor version:
- Current
1.0.0→ suggest1.1.0 - Current
1.2.3→ suggest1.3.0
Present the suggestion and let the user confirm or provide an alternative.
Parse the confirmed version into its VersionPrefix component.
Step 3: Create Pull Request
- Create a new branch named
bump-version-to-{version}(e.g.bump-version-to-1.1.0) from the default branch - Update
src/Directory.Build.props:- Set
<VersionPrefix>to the new version - Update
<PackageValidationBaselineVersion>if the MAJOR version has changed
- Set
- Commit with message:
Bump version to {version} - Push the branch and create a pull request:
- Title:
Bump version to {version} - Label:
infrastructure - Base: default branch
- Title:
Step 4: Confirm
Display the pull request URL to the user.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
publish-release
Publish a GitHub release for the C# MCP SDK after a prepare-release PR has been merged. Refreshes release notes to include any PRs merged since preparation, warns about version or breaking change impacts from late-arriving PRs, and creates a draft GitHub release. Use when asked to publish a release, finalize a release, create release notes, or complete a release after the prepare-release PR has been merged.
issue-triage
Generate an issue triage report for the C# MCP SDK. Fetches all open issues, evaluates SLA compliance against SDK tier requirements, reviews issue discussions for status and next steps, cross-references related issues in other MCP SDK repos, and produces a BLUF markdown report. Use when asked to triage issues, audit SLA compliance, review open issues, or generate an issue report.
prepare-release
Prepare a new release for the C# MCP SDK. Assesses Semantic Versioning level (PATCH/MINOR/MAJOR), bumps the version, runs ApiCompat and ApiDiff, reviews documentation, updates changelogs, drafts release notes, and creates a pull request with all release artifacts. Use when asked to prepare a release, start a release, create a release PR, or assess what the next release should be.
breaking-changes
Audit pull requests for breaking changes in the C# MCP SDK. Examines PR descriptions, review comments, and diffs to identify API and behavioral breaking changes, then reconciles labels with user confirmation. Use when asked to audit breaking changes, check for breaking changes, or review a set of PRs for breaking impact.
convert-web-app
This skill should be used when the user asks to "add MCP App support to my web app", "turn my web app into a hybrid MCP App", "make my web page work as an MCP App too", "wrap my existing UI as an MCP App", "convert iframe embed to MCP App", "turn my SPA into an MCP App", or needs to add MCP App support to an existing web application while keeping it working standalone. Provides guidance for analyzing existing web apps and creating a hybrid web + MCP App with server-side tool and resource registration.
add-app-to-server
This skill should be used when the user asks to "add an app to my MCP server", "add UI to my MCP server", "add a view to my MCP tool", "enrich MCP tools with UI", "add interactive UI to existing server", "add MCP Apps to my server", or needs to add interactive UI capabilities to an existing MCP server that already has tools. Provides guidance for analyzing existing tools and adding MCP Apps UI resources.
Didn't find tool you were looking for?