Repl.Mcp
0.10.0-dev.59
dotnet add package Repl.Mcp --version 0.10.0-dev.59
NuGet\Install-Package Repl.Mcp -Version 0.10.0-dev.59
<PackageReference Include="Repl.Mcp" Version="0.10.0-dev.59" />
<PackageVersion Include="Repl.Mcp" Version="0.10.0-dev.59" />
<PackageReference Include="Repl.Mcp" />
paket add Repl.Mcp --version 0.10.0-dev.59
#r "nuget: Repl.Mcp, 0.10.0-dev.59"
#:package Repl.Mcp@0.10.0-dev.59
#addin nuget:?package=Repl.Mcp&version=0.10.0-dev.59&prerelease
#tool nuget:?package=Repl.Mcp&version=0.10.0-dev.59&prerelease
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 | Versions 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. |
-
net10.0
- ModelContextProtocol (>= 1.2.0)
- Repl.Defaults (>= 0.10.0-dev.59)
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 | 569 | 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 | 52 | 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 | 43 | 3/25/2026 |
| 0.9.2 | 82 | 3/25/2026 |
| 0.9.2-dev.83 | 81 | 3/22/2026 |
| 0.9.2-dev.82 | 48 | 3/21/2026 |
| 0.9.2-dev.73 | 42 | 3/19/2026 |
| 0.9.2-dev.72 | 44 | 3/19/2026 |