MCP.so
ログイン

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 Tool class for custom tool logic.
  • Includes an example EchoTool to 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.

コメント

「その他」の他のコンテンツ