Keryx – One TypeScript action class, five transports (HTTP, WS, CLI, MCP, tasks)
17 hours ago
- #TypeScript
- #MCP-Native
- #Keryx
- MCP-Native allows every action to automatically function as an MCP tool with built-in OAuth 2.1 authentication and typed errors.
- A single action class can serve multiple purposes: HTTP endpoint, CLI command, WebSocket handler, and background task runner.
- Keryx framework unifies various transports (HTTP, WebSocket, CLI, background tasks, MCP) with the same validation and error handling.
- Example actions like 'Status' and 'UserCreate' demonstrate how one class can handle different request types with the same logic.
- Keryx provides automatic CLI flag generation from Zod schemas and background task enqueueing via Redis.
- MCP tools are automatically exposed for AI agents without additional configuration.
- Comparison table shows Keryx's unique features compared to other frameworks like Hono, Elysia, NestJS, FastAPI, and Django.
- Built on Bun with native TypeScript support, including features like bun test with watch mode and native fetch API.
- Requires Bun, PostgreSQL, and Redis for setup.