Kododo.Reiho.AspNetCore.Mcp
2.1.1
dotnet add package Kododo.Reiho.AspNetCore.Mcp --version 2.1.1
NuGet\Install-Package Kododo.Reiho.AspNetCore.Mcp -Version 2.1.1
<PackageReference Include="Kododo.Reiho.AspNetCore.Mcp" Version="2.1.1" />
<PackageVersion Include="Kododo.Reiho.AspNetCore.Mcp" Version="2.1.1" />
<PackageReference Include="Kododo.Reiho.AspNetCore.Mcp" />
paket add Kododo.Reiho.AspNetCore.Mcp --version 2.1.1
#r "nuget: Kododo.Reiho.AspNetCore.Mcp, 2.1.1"
#:package Kododo.Reiho.AspNetCore.Mcp@2.1.1
#addin nuget:?package=Kododo.Reiho.AspNetCore.Mcp&version=2.1.1
#tool nuget:?package=Kododo.Reiho.AspNetCore.Mcp&version=2.1.1
Kododo.Reiho.AspNetCore.Mcp
Offers Reiho requests as tools to AI agents over the Model Context Protocol, next to their HTTP endpoints. Built on the official MCP C# SDK.
[McpTool(ReadOnly = true), Description("Finds the orders of a customer, newest first.")]
public sealed record FindOrders([property: Description("Customer id, e.g. c-63")] string CustomerId) : IRequest<Order[]>;
builder.Services.AddRequestHandlers(typeof(Program).Assembly);
builder.Services.AddMcpServer()
.WithHttpTransport()
.WithRequests(typeof(Program).Assembly);
app.MapMcp("/mcp").RequireAuthorization();
Only requests marked with [McpTool], or included with o.Include<TRequest>(), become tools. A tool's arguments are the request's properties, and its result is the handler's result as JSON. A tool call does not go through the HTTP endpoints, so protect the MCP endpoint itself.
The request's validation, RequestExceptions and request filters apply to tool calls as to HTTP requests, and errors come back as error results the agent can read and act on. A FileResponse result is returned as an embedded resource; a request that receives files cannot be a tool.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Kododo.Reiho.AspNetCore (>= 2.1.1)
- ModelContextProtocol.AspNetCore (>= 2.2.0)
-
net8.0
- Kododo.Reiho.AspNetCore (>= 2.1.1)
- ModelContextProtocol.AspNetCore (>= 2.2.0)
-
net9.0
- Kododo.Reiho.AspNetCore (>= 2.1.1)
- ModelContextProtocol.AspNetCore (>= 2.2.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Kododo.Reiho.AspNetCore.Mcp:
| Package | Downloads |
|---|---|
|
Kododo.MonitorWay.Mcp
Lets AI agents read the telemetry kept by MonitorWay over the Model Context Protocol: the overview of the HTTP endpoints, logs with search and context, traces with their spans, errors grouped with their occurrences, and metrics as time series. |
GitHub repositories
This package is not used by any popular GitHub repositories.