MCP Framework
MCP-Framework is a framework for building Model Context Protocol (MCP) servers elegantly in TypeScript.
Key Features:
- Automatic Discovery: Automatically discovers and loads tools, resources, and prompts.
- Multiple Transport Support: Offers stdio, SSE, and HTTP Stream transport options.
- Type Safety: TypeScript-first development ensuring full type safety.
- Easy-to-use Base Classes: Provides base classes for tools, prompts, and resources, simplifying development.
- Authentication: Built-in authentication options for SSE endpoints, including JWT and API Key support.
Benefits:
- Efficient Project Setup: Use the CLI to create and manage MCP server projects effortlessly.
- Session Management: Automatic tracking and management of sessions.
- Stream and Batch Response Modes: Configurable response modes cater to different use cases, enhancing flexibility.
Highlights:
- Built on the official MCP SDK.
- Comprehensive error handling and logging features included.
Getting Started:
- Install the framework globally with:
npm install -g mcp-framework
- Create a new MCP server project:
mcp create my-mcp-server cd my-mcp-server
- Build your project with:
npm run build
- Start developing your tools and resources easily!