MonumentalSystems.Mcp 0.1.10

dotnet add package MonumentalSystems.Mcp --version 0.1.10
                    
NuGet\Install-Package MonumentalSystems.Mcp -Version 0.1.10
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonumentalSystems.Mcp" Version="0.1.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MonumentalSystems.Mcp" Version="0.1.10" />
                    
Directory.Packages.props
<PackageReference Include="MonumentalSystems.Mcp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MonumentalSystems.Mcp --version 0.1.10
                    
#r "nuget: MonumentalSystems.Mcp, 0.1.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MonumentalSystems.Mcp@0.1.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MonumentalSystems.Mcp&version=0.1.10
                    
Install as a Cake Addin
#tool nuget:?package=MonumentalSystems.Mcp&version=0.1.10
                    
Install as a Cake Tool

MonumentalSystems.Mcp

Model Context Protocol (MCP) client library for Microsoft Extensions.AI. Provides extensible transport providers for connecting to MCP servers and exposing tools as AIFunction instances.

Overview

MonumentalSystems.Mcp is a lightweight MCP client that integrates with the Microsoft Extensions.AI (AIFunction) ecosystem. It supports:

  • HTTP transport with SSE streaming and session tracking
  • Stdio transport for subprocess-based MCP servers
  • Custom transport providers for extensibility (e.g., tunneled transports)
  • Dynamic AIFunction generation via Reflection.Emit for proper schema discovery

Quick Start

Prerequisites

Installation

dotnet add package MonumentalSystems.Mcp

Usage

using MonumentalSystems.Mcp;

// Configure an MCP server
var config = new McpServerConfig
{
    Type = "http",
    Url = "http://localhost:8080/mcp"
};

// Create client
var client = new McpClient(config, httpClient, logger);

// Initialize and list tools
await client.InitializeAsync();
var tools = await client.ListToolsAsync();

// Create AIFunction instances from MCP tools
var functions = await McpAIFunctionFactory.CreateFromMcpClientAsync(client, logger);

Architecture

MonumentalSystems.Mcp/
├── McpClient.cs                # Core client with transport provider pattern
├── McpConfig.cs                # Configuration models
├── McpModels.cs                # JSON-RPC models, tool definitions
├── McpAIFunctionFactory.cs     # MCP tools -> AIFunction via Reflection.Emit
├── McpStdioTransport.cs        # Stdio subprocess transport
├── McpHttpTransport.cs         # HTTP POST + SSE transport
├── IMcpTransport.cs            # Transport interface
├── IMcpTransportProvider.cs    # Transport provider extension point
└── ToolResult.cs               # Structured tool result formatting

Development

Build & Test

dotnet restore
dotnet build
dotnet test

Build Configuration

  • global.json — Pins the .NET SDK version
  • Directory.Build.props — Shared build settings (nullable, warnings-as-errors)
  • Directory.Packages.props — Central package version management

License

This project is licensed under the MIT License — see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MonumentalSystems.Mcp:

Package Downloads
MonumentalSystems.Sprites

A Semantic Kernel plugin for Sprites containerized development environment integration. Provides tools for managing sprites, executing commands, creating checkpoints, and establishing port forwarding tunnels.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.10 159 6/3/2026
0.1.9 118 6/3/2026
0.1.8 113 6/3/2026
0.1.4 326 6/3/2026
0.1.3 206 5/23/2026
0.1.2 111 5/23/2026
0.1.1 192 2/15/2026
0.1.0 192 2/14/2026