Skip to main content
The 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.
Blocks until stdin is closed or cancellation is requested.

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):

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: Parse errors return JSON-RPC error code -32700. Unknown methods return -32601.

Writing SKILL.md to Disk

For dotagents distribution, emit the generated SKILL.md as a build artifact:
Similarly for LLMS.txt: