シナリオワード
mcp-framework を使用して構築されたモデル コンテキスト プロトコル (MCP) サーバー。
クイックスタート
プロジェクト構造
コンポーネントの追加
このプロジェクトにsrc/tools/ExampleTool.ts
にサンプルツールが付属しています。CLIを使用してツールを追加することもできます。
ツール開発
ツール構造の例:
npmへの公開
- package.json を更新します。
name
が一意であり、npm の命名規則に従っていることを確認してください。- 適切な
version
を設定する description
、author
、license
などを追加します。bin
が正しいエントリファイルを指しているか確認する
- ローカルでビルドしてテストします。
- npm にログインします (必要に応じてアカウントを作成します)。
- パッケージを公開します:
公開後、ユーザーはそれをクロードデスクトップクライアント(下記参照)に追加したり、npxで実行したりすることができます。
公開後
この構成を Claude Desktop 構成ファイルに追加します。
MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json
Windows : %APPDATA%/Claude/claude_desktop_config.json
構築とテスト
- ツールに変更を加える
npm run build
を実行してコンパイルする- サーバーは起動時にツールを自動的に読み込みます
もっと詳しく知る
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Claude AI がカスタム ツールと対話できるようにし、MCP フレームワークを通じて Claude の機能を拡張できるようにするモデル コンテキスト プロトコル (MCP) サーバー。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated -235TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that integrates with OmniFocus to enable Claude (or other MCP-compatible AI assistants) to interact with your tasks and projects.Last updated -773064TypeScript
- AsecurityFlicenseAqualityA Machine Context Protocol server that enables Claude AI to interact with tools through a structured communication interface, following standard MCP patterns with server initialization and stdio transport.Last updated -6621TypeScript
- -securityFlicense-qualityA server implementation for the Model Context Protocol (MCP) that allows Claude AI to execute commands through a command-line interface, enabling direct system interactions from within Claude.Last updated -Python