by agentfront
TypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.
# Add to your Claude Code skills
git clone https://github.com/agentfront/frontmcpThe TypeScript way to build MCP servers with decorators, DI, and Streamable HTTP.
[Docs][docs-home] • [Quickstart][docs-quickstart] • [API Reference][docs-sdk-ref] • Discord
</div>FrontMCP is a TypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.
import 'reflect-metadata';
import { FrontMcp, LogLevel } from '@frontmcp/sdk';
import HelloApp from './hello.app';
@FrontMcp({
info: { name: 'Demo', version: '0.1.0' },
apps: [HelloApp],
http: { port: 3000 },
logging: { level: LogLevel.Info },
})
export default class Server {}
No comments yet. Be the first to share your thoughts!
Node.js 22+ required (24 recommended).
# New project (recommended)
npx frontmcp create my-app
# Existing project
npm i -D frontmcp @types/node@^22
npx frontmcp init
Full setup guide: [Installation][docs-install]
| Capability | Description | Docs |
| -------------------- | ------------------------------------------------------------------------------- | ------------------------------- |
| @FrontMcp Server | Decorator-configured server with info, apps, HTTP, logging, session, auth | [Server][docs-server] |
| @App | Organizational units grouping tools, resources, prompts with optional isolation | [Apps][docs-apps] |
| @Tool | Typed actions with Zod schemas — class or function style | [Tools][docs-tools] |
| @Resource | Read-only data exposure with static and template URIs | [Resources][docs-resources] |
| @Prompt | Reusable message templates returning GetPromptResult ...