MCP ExplorerExplorer

Devin Mcp Uuid Sample

@TakahashiIkkion 10 months ago
1 MIT
FreeCommunity
AI Systems
TypeScript sample for UUID generation and validation with MCP server.

Overview

What is Devin Mcp Uuid Sample

devin-mcp-uuid-sample is a TypeScript sample project designed for generating and validating UUIDs in conjunction with an MCP server.

Use cases

Use cases include generating single or multiple UUIDs, validating UUIDs, and integrating with MCP clients like Devin.

How to use

To use devin-mcp-uuid-sample, first install the dependencies using ‘npm install’. Then, build the project with ‘npm run build’ and start it using ‘npm start’. For development mode, run ‘npm run dev’.

Key features

Key features include UUID generation (UUID v4), UUID version detection and validation, and connection to MCP servers.

Where to use

devin-mcp-uuid-sample can be used in applications requiring unique identifier generation and validation, particularly in server-client architectures.

Content

devin-mcp-uuid-sample

MCPサーバーと連携したUUID生成および検証のためのTypeScriptサンプルプロジェクト。

概要

このプロジェクトは以下の機能を提供します:

  • UUIDの生成(UUID v4)
    • 今、v4を勝手に作るようにしちゃっています. そのうち調整します.
  • UUIDのバージョン検出と検証
  • MCPサーバーとの接続

インストール

npm install

ビルド

npm run build

使用方法

npm start

開発モード

TypeScriptを直接実行する開発モード:

npm run dev

MCPクライアントとの接続

  • MCPクライアント(Devinなど)から接続するには、以下のいずれかの方法を使用します:
    • stdio接続: MCPクライアントから直接このプロジェクトを子プロセスとして起動
    • 外部プロセス接続: このプロジェクトを別プロセスとして起動し、MCPクライアントから接続

提供されるMCPツール

このMCPサーバーは以下のツールを提供します:

  1. generate-uuid: 単一のUUIDを生成
  2. generate-uuids: 指定された数のUUIDを生成(1〜100)
  3. detect-uuid-version: 指定されたUUIDの有効性とバージョンを検証

Memo: Claude Desktop からの設定

“mcpServers” に以下を追加することで動作が確認できた

{
  "mcpServers": {
    "{some-mcp-name}": {
      "command": "node",
      "args": [
        "/this/source/path/dist/src/index.js"
      ]
    }
  }
}

参考までに: https://x.com/ikkitang/status/1908895206709346329

テスト

テストを実行:

# 全テストを一度実行
npm test

# ウォッチモードでテストを実行
npm run test:watch

技術スタック

  • TypeScript
  • Model Context Protocol (MCP) SDK
  • UUID ライブラリ (v11.1.0)
  • Vitest (テストフレームワーク)

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers