MCP.so
登录

Cmmv MCP Server

@cmmvio

基本信息

分类

其他

传输方式

stdio

作者

cmmvio

关于 Cmmv MCP Server

Model Context Protocol (MCP) module for CMMV

Cmmv MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Cmmv MCP Server 工具

工具列表暂未提供

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

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

概览

What is Cmmv Mcp?

Cmmv Mcp (the @cmmv/mcp module) implements the Model Context Protocol (MCP) for CMMV applications, enabling standardized interactions between LLMs and your application. It provides a structured interface for defining tools callable by AI models in a standard format.

How to use Cmmv Mcp?

Install via pnpm add @cmmv/mcp, configure the module in .cmmv.config.cjs with settings like mcp.port, mcp.transport, and integrateWithHttp, then create tool handlers using the @MCPTool decorator with Zod validation schemas. Run the application in standalone or integrated mode. For example, start the server and call tools via POST /mcp with JSON-RPC payloads.

Key features of Cmmv Mcp

  • LLM Integration for bidirectional communication with language models.
  • Flexible Transport via HTTP (StreamableHTTP), SSE, or Stdio.
  • API Decorator-Based tool registration with @MCPTool.
  • Validation with Zod for input schemas.
  • Connection Management for multiple concurrent sessions.
  • Modern SDK using StreamableHTTPServerTransport.
  • Health Monitoring and tools listing endpoints.
  • CORS support and DNS rebinding protection.

Use cases of Cmmv Mcp

  • Expose custom application functions as tools for AI assistants.
  • Integrate MCP into an existing CMMV HTTP server on the same port.
  • Build a standalone MCP server for LLM interactions.
  • Create secure, validated endpoints for tool calls with JWT authentication.

常见问题

1

What dependencies does Cmmv Mcp require?

It requires `@cmmv/core`, `@cmmv/http`, and the `@modelcontextprotocol/sdk` package (installed automatically).

2

Which transport protocols are supported?

HTTP via StreamableHTTP, SSE (legacy), and Standard I/O (stdio). Configured via the `mcp.transport` setting.

3

How can I integrate MCP with my existing HTTP server?

Set `integrateWithHttp: true` in the MCP config. MCP routes will be added to the same HTTP server port.

4

How do I define a tool for LLMs?

Use the `@MCPTool(name, schema)` decorator on a method. The schema uses Zod to define parameters, and the method returns a response object.

5

Is there a health check endpoint?

Yes, `GET /mcp/health` returns server health status. Also `GET /mcp/tools` lists available tools.

评论

其他 分类下的更多 MCP 服务器