TimeWarp.Nuru.McpHost
4.0.0-beta.18
Prefix Reserved
dotnet add package TimeWarp.Nuru.McpHost --version 4.0.0-beta.18
NuGet\Install-Package TimeWarp.Nuru.McpHost -Version 4.0.0-beta.18
<PackageReference Include="TimeWarp.Nuru.McpHost" Version="4.0.0-beta.18" />
<PackageVersion Include="TimeWarp.Nuru.McpHost" Version="4.0.0-beta.18" />
<PackageReference Include="TimeWarp.Nuru.McpHost" />
paket add TimeWarp.Nuru.McpHost --version 4.0.0-beta.18
#r "nuget: TimeWarp.Nuru.McpHost, 4.0.0-beta.18"
#:package TimeWarp.Nuru.McpHost@4.0.0-beta.18
#addin nuget:?package=TimeWarp.Nuru.McpHost&version=4.0.0-beta.18&prerelease
#tool nuget:?package=TimeWarp.Nuru.McpHost&version=4.0.0-beta.18&prerelease
TimeWarp.Nuru.McpHost
Serve a TimeWarp.Nuru app's routes as MCP tools without writing any per-route code. Each route becomes one tool. The tool's input schema is built from the same catalog --capabilities prints, and tools/call runs through the generated binder that --json-args uses. MCP and the CLI therefore share tool names and arguments.
using TimeWarp.Nuru;
NuruApp app = NuruApp.CreateBuilder()
.DiscoverEndpoints()
.AddMcpRoute(instructions: "Use add and multiply for arithmetic.")
.Build();
return await app.RunAsync(args);
myapp mcp # MCP server over stdio
To serve the same tools from an ASP.NET Core app over streamable HTTP, use the ModelContextProtocol.AspNetCore package:
builder.Services.AddMcpServer()
.WithHttpTransport()
.WithNuruTools(nuruApp);
app.MapMcp();
An object or array member publishes the real JSON Schema of its type, so a model sends the object itself. Annotations come from the endpoint kind plus [TimeWarp.Contracts.Destructive], [TimeWarp.Contracts.OpenWorld], and a title ([Operation(Title)] on a contract, [DisplayName] on a [NuruRoute] class that is not an operation). NuruMcpHostOptions.ToolAnnotations overrides them per tool. A default is in both the default keyword and the description.
Tool calls run concurrently, each with its own output, exit code and service scope; notifications/cancelled cancels only that call. Mark a handler that is not thread-safe [Exclusive], or set NuruMcpHostOptions.ExclusiveCalls.
See MCP hosting.
Not to be confused with TimeWarp.Nuru.Mcp, the frozen dev-assist server, or TimeWarp.Nuru.McpBridge (task 507), which goes the other way and maps MCP tool methods to Nuru routes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- ModelContextProtocol (>= 2.4.0)
- TimeWarp.Nuru (>= 4.0.0-beta.18)
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 |
|---|---|---|
| 4.0.0-beta.18 | 47 | 11/27/2026 |
| 4.0.0-beta.17 | 61 | 11/22/2026 |
| 4.0.0-beta.16 | 67 | 11/18/2026 |
| 4.0.0-beta.15 | 67 | 11/16/2026 |
| 4.0.0-beta.14 | 70 | 11/14/2026 |
| 4.0.0-beta.13 | 71 | 11/13/2026 |
| 4.0.0-beta.12 | 70 | 11/9/2026 |
| 4.0.0-beta.11 | 110 | 10/31/2026 |
| 4.0.0-beta.10 | 82 | 10/30/2026 |
| 4.0.0-beta.9 | 77 | 10/30/2026 |
| 4.0.0-beta.8 | 70 | 10/30/2026 |
| 4.0.0-beta.7 | 73 | 10/28/2026 |
| 4.0.0-beta.6 | 67 | 10/26/2026 |
| 4.0.0-beta.5 | 89 | 10/21/2026 |
| 4.0.0-beta.4 | 71 | 10/20/2026 |
| 4.0.0-beta.3 | 71 | 10/19/2026 |
| 4.0.0-beta.2 | 85 | 10/19/2026 |