TimeWarp.Nuru.McpHost
4.0.0-beta.4
Prefix Reserved
dotnet add package TimeWarp.Nuru.McpHost --version 4.0.0-beta.4
NuGet\Install-Package TimeWarp.Nuru.McpHost -Version 4.0.0-beta.4
<PackageReference Include="TimeWarp.Nuru.McpHost" Version="4.0.0-beta.4" />
<PackageVersion Include="TimeWarp.Nuru.McpHost" Version="4.0.0-beta.4" />
<PackageReference Include="TimeWarp.Nuru.McpHost" />
paket add TimeWarp.Nuru.McpHost --version 4.0.0-beta.4
#r "nuget: TimeWarp.Nuru.McpHost, 4.0.0-beta.4"
#:package TimeWarp.Nuru.McpHost@4.0.0-beta.4
#addin nuget:?package=TimeWarp.Nuru.McpHost&version=4.0.0-beta.4&prerelease
#tool nuget:?package=TimeWarp.Nuru.McpHost&version=4.0.0-beta.4&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 [Destructive], [OpenWorld] and [DisplayName] on the endpoint class, and 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 | 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 (>= 2.2.0)
- TimeWarp.Nuru (>= 4.0.0-beta.4)
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.4 | 0 | 10/20/2026 |
| 4.0.0-beta.3 | 37 | 10/19/2026 |
| 4.0.0-beta.2 | 49 | 10/19/2026 |