mcp-server
@MCP-Mirror
关于 mcp-server
Mirror of
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"la-rebelion_mcp-server": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mcp-server?
mcp-server is a simple server that implements the Model Context Protocol (MCP) using a facade pattern to provide a simpler API for creating MCP servers. It is built by La Rebelion to simplify the process of starting with MCP, allowing developers to focus on tool logic.
How to use mcp-server?
Install via yarn add @la-rebelion/mcp-server alongside the MCP SDK and dependencies (zod, zod-to-json-schema). Create a tool by extending the Tool class and implementing its execute method, then register it with an MCPServer instance and call server.run(). Build with yarn build and start with yarn start or node build/index.js.
Key features of mcp-server
- Implements the Model Context Protocol (MCP) with a simplified facade.
- Requires only tool creation, registration, and server start.
- Provides a base
Toolclass for custom tool logic. - Includes an example
EchoToolto demonstrate the pattern. - Outputs results in standard MCP content format.
Use cases of mcp-server
- Building custom MCP-compatible servers with minimal boilerplate.
- Rapid prototyping of tools for use with MCP clients like Claude Desktop.
- Abstracting tool logic into reusable, extension-based components.
FAQ from mcp-server
What is the facade pattern used in mcp-server?
The facade pattern simplifies the process of creating an MCP server by hiding complexity—you only need to create tools, register them, and start the server.
How do I install mcp-server?
Add the package to your project with yarn add @la-rebelion/mcp-server along with @modelcontextprotocol/sdk, zod, and zod-to-json-schema.
How do I create a custom tool?
Extend the Tool class, define a toolSchema with name, description, and parameter schema, then implement the execute method with your custom logic.
How do I build and run the server?
Build with yarn build and start with yarn start or node build/index.js. Test with any MCP client like Claude Desktop.
常见问题
What is the facade pattern used in mcp-server?
The facade pattern simplifies the process of creating an MCP server by hiding complexity—you only need to create tools, register them, and start the server.
How do I install mcp-server?
Add the package to your project with `yarn add @la-rebelion/mcp-server` along with `@modelcontextprotocol/sdk`, `zod`, and `zod-to-json-schema`.
How do I create a custom tool?
Extend the `Tool` class, define a `toolSchema` with name, description, and parameter schema, then implement the `execute` method with your custom logic.
How do I build and run the server?
Build with `yarn build` and start with `yarn start` or `node build/index.js`. Test with any MCP client like Claude Desktop.
基本信息
其他 分类下的更多 MCP 服务器
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
评论