SDK / infra · #107 trending MCP repo

Csharp SDK

modelcontextprotocol/csharp-sdk

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

Stars
4.6k
This week
—
Forks
841
Open issues
213
Skills inside
9

Inside this repo

9 skills

breaking-changesAudit 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 PR.github/skills/breaking-changesbump-versionAssess 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,.github/skills/bump-versionissue-triageGenerate 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 tri.github/skills/issue-triageprepare-releasePrepare 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.github/skills/prepare-releasepublish-releasePublish 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,.github/skills/publish-releaserun-conformance-from-branchRun MCP conformance tests in the C# SDK against a conformance branch (including forks) instead of the published npm version, then restore pinned dependencies..github/skills/run-conformance-from-branchverify-releaseVerify a published release of the C# MCP SDK. Monitors the Release and Publish Docs workflows triggered by publishing a GitHub release, confirms the packages are listed on NuGet.org, and confirms the versioned documentation site reflects the release. Use when asked to verify a release, check whether.github/skills/verify-releasegit-workflowFollow this team's Git conventions for branching, commit messages, and pull requests.samples/SkillsServer/Skills/git-workflowrefundsProcess customer refund requests per company policy.samples/SkillsServer/Skills/refunds

Documentation

README

View on GitHub ↗

MCP C# SDK

NuGet version

The official C# SDK for the Model Context Protocol, enabling .NET applications, services, and libraries to implement and interact with MCP clients and servers. Please visit the API documentation for more details on available functionality.

Packages

The SDK packages are:

Getting Started

To get started, see the Getting Started guide in the conceptual documentation for installation instructions, package-selection guidance, and complete examples for both clients and servers.

You can also browse the samples directory and the API documentation for more details on available functionality.

About MCP

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It enables secure integration between LLMs and various data sources and tools.

For more information about MCP:

Cross-Application Access (Identity Assertion Authorization Grant flow)

The SDK provides support for the Identity Assertion Authorization Grant flow via IdentityAssertionGrantProvider. See the Cross-Application Access section in the transport docs for full usage details.

License

This project is licensed under the Apache License 2.0.

Releases

Recent versions

All releases ↗
  1. v2.4.0
  2. v2.3.1
  3. v1.4.2
  4. v2.3.0
  5. v2.2.0
  6. v2.1.0