Point kiid-mcp at an OpenAPI document and get a complete, buildable
ASP.NET Core MCP server — MCP, REST and streaming endpoints, a deterministic
intent classifier, persistent chat, Scalar API docs and a full PostgreSQL audit trail. No model runs
on the request path. Every operation becomes a typed tool.
# 1. preview the tools kiid-mcp will generate (writes nothing) $ kiid-mcp inspect --spec https://api.example.com/openapi.json 27 operations → 27 tools (Read 11 · List 6 · Create 5 · Update 3 · Delete 2) # 2. generate a complete ASP.NET Core MCP server $ kiid-mcp new --spec ./openapi.json --out ./Payments.Mcp ✓ scaffolded solution ✓ dotnet build ✓ dotnet test (all passed) # 3. run it $ dotnet run --project src/Payments.Mcp.Api now listening on http://localhost:5080 docs → /docs mcp → /mcp
What you get
Every generated project follows Clean Architecture + DDD and references a signed, maintained runtime. You own a small, readable repo; the engine stays maintained for you.
Each OpenAPI operation becomes a typed MCP tool with parameters, intent category and risk level.
Streamable HTTP MCP at /mcp, a REST surface, and Server-Sent-Events streaming — same dispatch pipeline.
A lexical intent classifier routes free text to the right tool. No model in the request loop — predictable and free.
Chat context is saved server-side in SQLite with a configurable retention window (capped at 12h). Resume across refreshes and devices.
An interactive Scalar reference at /docs, backed by a live OpenAPI document at /openapi/v1.json.
Read-only / confirm-destructive policy, result-size guardrails, and a fail-closed PostgreSQL audit trail of every call.
Built-in get_current_time and natural expressions like “next friday”, “end of month”.
Turns raw API responses into short human sentences — “Found 3 pets.”, “No order 7 was found.”
A prebuilt React app (kiid-mcp ui) that talks to any forged server — chat, dev console and a tool browser.
How it works
The scaffold is fully deterministic. A model (Claude, OpenAI, Ollama) is optional and only polishes tool descriptions, intent keywords and narration — its output is validated, and deterministic defaults stay in place if a call fails.
Loads Swagger 2.0 / OpenAPI 3.0 (file or URL): operations, parameters, bodies, security.
Names tools, types parameters, assigns intent + risk, resource nouns, keywords.
Optional LLM pass with strictly validated output — descriptions and narration.
Writes the full solution from deterministic templates.
dotnet build + dotnet test on the generated solution.
Quickstart
Requires the .NET 10 SDK. Docker is used only for the Postgres audit database.
Preview the planned tools, their HTTP operation, intent and risk — writes nothing.
Builds and tests the generated project by default. Scope a big API with --tags a,b; set the port with --port.
Credentials go in user-secrets or environment variables, never in appsettings.
The scaffold already ships .mcp.json (Claude Code) and .cursor/mcp.json (Cursor).
The generated server
Beyond /mcp, the same tool dispatch is exposed over REST in two answer modes, plus docs, persistence and audit. GET forms only call read-only (Safe) tools; anything that mutates needs POST.
| Method | Endpoint | What it does |
|---|---|---|
| GET | /docs | Interactive Scalar API reference |
| GET | /openapi/v1.json | The server's own OpenAPI document |
| POST | /mcp | Model Context Protocol (Streamable HTTP) |
| POST | /api/ask | Full answer — one JSON result when the call finishes |
| SSE | /api/stream | Same call streamed as Server-Sent Events |
| GET | /api/tools | Browse the tool catalog (filter by category / risk) |
| POST | /api/sessions | Persistent conversations (SQLite, 12h-capped retention) |
| GET | /api/audit | Audit trail & stats of every dispatched call |
| GET | /api/info | Live endpoint map, tool counts, upstream & policy |
| GET | /health | Liveness |
See it working
The frames below are placeholders. Capture each screen from a running server and drop the image into site/images/ with the matching filename — the slot will show your screenshot automatically. (Capture steps are in the README next to this page.)
/docs — every generated tool, browsable and callable.kiid-mcp ui) streaming an answer, with persistent sessions./mcp.