Qyl.Agents package provides two transports for serving generated MCP servers.
Stdio Transport
Primary transport for Claude Code, Cursor, and other CLI-based AI agents. Reads JSON-RPC from stdin, writes responses to stdout.HTTP Transport
For web applications — maps MCP endpoints onto ASP.NET Core routing.Endpoints
MapMcpServer<T>() registers four endpoints under a configurable pattern (default /mcp):
| Method | Path | Description |
|---|---|---|
| POST | /mcp | JSON-RPC request handler |
| GET | /mcp/skill.md | SKILL.md content (text/markdown) |
| GET | /mcp/llms.txt | LLMS.txt content (text/plain) |
| GET | /.well-known/skills/default/skill.md | Well-known discovery endpoint |
Custom Pattern
Dependency Injection
Pass an existing server instance for DI or factory patterns:JSON-RPC Protocol
The POST endpoint handles standard MCP JSON-RPC:| Request | Response |
|---|---|
initialize | Server capabilities, name, version |
tools/list | Tool metadata with schemas and safety hints |
tools/call | Dispatches to generated tool method |
resources/list | Resource metadata |
resources/read | Dispatches to generated resource method |
prompts/list | Prompt metadata |
prompts/get | Dispatches to generated prompt method |
ping | Empty response |
Notifications (no id) | 204 No Content |
-32700. Unknown methods return -32601.
