mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
3402a88f39
The HTTP transport example and "Key HTTP details" claimed plain
`app.MapMcp()` "defaults to /mcp". The C# MCP SDK signature is
`MapMcp(this IEndpointRouteBuilder endpoints, string pattern = "")`,
which maps at the root route ("/"), not "/mcp". This mismatch can
anchor models to generate `/mcp` client URLs against a root-mapped
server, producing 404s.
Map the endpoint explicitly with `app.MapMcp("/mcp")` and correct the
"Key HTTP details" text to describe the pattern argument accurately and
point clients at a matching URL. Aligns with references/transport-config.md,
which already documents the pattern as a custom path prefix.
Refs dotnet/skills#889.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6a8ce111-58e5-48a7-9f7f-8de972bdc693