MCP.so
登录

MCP Framework

@QuantGeekDev

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

QuantGeekDev

关于 MCP Framework

The Typescript MCP Framework

MCP Framework 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-framework": {
      "command": "node",
      "args": [
        "dist/index.js",
        "#",
        "Server",
        "validates",
        "tools",
        "on",
        "startup"
      ]
    }
  }
}

MCP Framework 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Framework?

MCP Framework is a TypeScript framework for building Model Context Protocol (MCP) servers. It provides automatic directory-based discovery of tools, resources, and prompts, along with a CLI for project scaffolding. The framework is designed for developers who want to create MCP servers with minimal boilerplate and built-in validation.

How to use MCP Framework?

Install the framework globally with npm install -g mcp-framework, then create a project using mcp create my-mcp-server. Add tools, prompts, or resources with mcp add tool <name>, mcp add prompt <name>, or mcp add resource <name>. Build and validate with npm run build. Serve the server with node dist/index.js and configure MCP clients (e.g., Claude Desktop) by pointing to the built dist/index.js.

Key features of MCP Framework

  • Automatic discovery and loading of tools, resources, and prompts
  • Multiple transport support: stdio, SSE, and HTTP Stream
  • TypeScript-first development with full type safety
  • Built on the official MCP SDK
  • Easy-to-use base classes for tools, prompts, and resources
  • Out-of-the-box authentication for SSE endpoints (OAuth 2.1, JWT, API Key)

Use cases of MCP Framework

  • Build custom MCP servers with structured tool, resource, and prompt management
  • Develop AI‑assistant integrations that use MCP to expose actions (e.g., crypto tipping via tip.md)
  • Rapidly prototype and deploy MCP servers for Claude Desktop or other MCP clients

常见问题

1

How do I add a new tool to my MCP server?

Use the CLI command `mcp add tool <name>` from the project root. This generates a skeleton file in the `tools/` directory. Define the tool’s schema using a Zod object and implement the `execute` method.

2

Which transports does MCP Framework support?

The framework supports stdio (default), SSE, and HTTP Stream. You can enable HTTP transport at creation time with `mcp create <project> --http --port 1337 --cors`.

3

How can I validate that my tools have proper descriptions?

Run `npm run build` (which includes automatic validation) or the standalone command `mcp validate`. The framework enforces that every Zod schema field has a `.describe()` call.

4

Where are log files stored and how can I enable them?

Logging to files is disabled by default. Set the environment variable `MCP_ENABLE_FILE_LOGGING=true` and optionally `MCP_LOG_DIRECTORY` (default `logs`). Debug console output is enabled via `MCP_DEBUG_CONSOLE=true`.

5

What authentication options are available for SSE endpoints?

MCP Framework provides built‑in authentication for SSE endpoints using OAuth 2.1, JWT, and API Key mechanisms.

评论

开发工具 分类下的更多 MCP 服务器