Repl.Mcp 0.10.0-dev.58

This is a prerelease version of Repl.Mcp.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Repl.Mcp --version 0.10.0-dev.58
                    
NuGet\Install-Package Repl.Mcp -Version 0.10.0-dev.58
                    
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="Repl.Mcp" Version="0.10.0-dev.58" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Repl.Mcp" Version="0.10.0-dev.58" />
                    
Directory.Packages.props
<PackageReference Include="Repl.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 Repl.Mcp --version 0.10.0-dev.58
                    
#r "nuget: Repl.Mcp, 0.10.0-dev.58"
                    
#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 Repl.Mcp@0.10.0-dev.58
                    
#: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=Repl.Mcp&version=0.10.0-dev.58&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Repl.Mcp&version=0.10.0-dev.58&prerelease
                    
Install as a Cake Tool

Repl.Mcp

MCP server integration for Repl Toolkit — expose your command graph as AI agent tools, resources, prompts, and MCP Apps UI via the Model Context Protocol.

One line to add

using Repl.Mcp;

app.UseMcpServer();

Your commands become MCP tools. Route constraints become JSON Schema. Annotations become safety hints.

myapp mcp serve   # AI agents connect here
myapp              # still a CLI / interactive REPL

MCP Apps

Repl.Mcp can also expose MCP Apps UI resources:

This support is experimental in the current version. AsMcpAppResource() handlers should return generated HTML as string, Task<string>, or ValueTask<string>; richer return shapes and asset helpers may be added later.

app.Map("contacts dashboard", (ContactStore contacts) =>
        $"<!doctype html><html><body>{contacts.All.Count} contacts</body></html>")
    .WithDescription("Open the contacts dashboard")
    .AsMcpAppResource()
    .WithMcpAppBorder()
    .WithMcpAppDisplayMode(McpAppDisplayModes.Fullscreen);

Clients with MCP Apps support render the generated ui:// resource. Other MCP clients still receive the command's normal launcher text instead of raw HTML.

What agents see

You write Agents get
.ReadOnly() readOnlyHint — call autonomously
.Destructive() destructiveHint — ask for confirmation
.AsResource() MCP resource with repl:// URI
.AsMcpAppResource() MCP Apps HTML resource with ui:// URI
.WithMcpAppBorder() MCP Apps border/background preference
.WithMcpAppDisplayMode(McpAppDisplayModes.Fullscreen) MCP Apps display preference
.AsPrompt() MCP prompt template
.AutomationHidden() Not visible to agents
{id:guid} { "type": "string", "format": "uuid" }
[Description("...")] Schema description field

Works with

Claude Desktop, Claude Code, VS Code Copilot, Cursor, and any MCP-compatible agent.

MCP Apps host support varies. VS Code currently renders MCP Apps inline; hosts that support display mode requests can honor preferredDisplayMode.

Learn more

  • Full documentation — annotations, interaction degradation, client compatibility matrix, agent configuration, NuGet publishing
  • Sample app — resources, tools, prompts, annotations, and a minimal MCP Apps UI in action
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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0-dev.59 43 4/13/2026
0.10.0-dev.58 666 4/7/2026
0.10.0-dev.52 39 4/7/2026
0.10.0-dev.39 46 4/4/2026
0.10.0-dev.36 49 4/4/2026
0.10.0-dev.35 44 4/4/2026
0.10.0-dev.31 41 4/3/2026
0.10.0-dev.20 53 3/30/2026
0.10.0-dev.19 50 3/29/2026
0.10.0-dev.17 43 3/29/2026
0.10.0-dev.14 45 3/29/2026
0.10.0-dev.2 44 3/25/2026
0.9.2 82 3/25/2026
0.9.2-dev.83 81 3/22/2026
0.9.2-dev.82 49 3/21/2026
0.9.2-dev.73 42 3/19/2026
0.9.2-dev.72 44 3/19/2026