UUID Generator MCP Server
MCPプロトコルに準拠したUUID v4生成サーバー
セットアップ
必要要件
- Node.js (v18以上)
- npm (v8以上)
インストール手順
- リポジトリのクローン
git clone <repository-url>
cd mcp-server-demo
- 依存パッケージのインストール
npm install
- ビルド
npm run build
使用方法
サーバーの起動
node dist/index.js
開発用サーバーの起動
npm run dev
利用可能なツール
generate_uuid
- 説明: UUID v4を生成します
- 入力: なし
- 出力: ランダムなUUID文字列
MCPクライアントの設定
VSCode拡張機能の場合
- 以下のパスの設定ファイルを開きます:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
mcpServers
オブジェクトに以下の設定を追加します:
{
"mcpServers": {
"uuid-generator": {
"command": "node",
"args": ["プロジェクトのパス/dist/index.js"],
"disabled": false,
"autoApprove": []
}
}
}
Claude Desktopの場合
- 以下のパスの設定ファイルを開きます:
~/Library/Application Support/Claude/claude_desktop_config.json
mcpServers
オブジェクトに以下の設定を追加します:
{
"mcpServers": {
"uuid-generator": {
"command": "node",
"args": ["プロジェクトのパス/dist/index.js"],
"disabled": false,
"autoApprove": []
}
}
}
ライセンス
MIT