mcpField
M
MCP Generate UUID Server

MCP Generate UUID Server

Local
github.com/lempijiDeveloper Tools0Updated 82w ago

About MCP Generate UUID Server

A sample MCP server built with D and the `mcp` package for generating UUIDs. MCP clients can call `generate_uuid` to request a chosen quantity, defaulting to one and capped at 100.

Key features

  1. 01Generate a requested number of UUIDs
  2. 02Generate one UUID by default
  3. 03Generate up to 100 UUIDs

Use cases

  1. 01Create UUIDs for development or testing
  2. 02Request batches of UUIDs through an MCP client

MCP support

Exposes the `generate_uuid` tool to MCP clients, with an optional count.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Generate UUID Server

このプロジェクトは、UUIDを生成するためのMCPサーバー(サンプル実装)です。D言語および mcp パッケージライブラリを使用して構築されています。

https://github.com/gtnoble/mcp-d

機能

  • generate_uuid ツールを提供し、指定された数のUUIDを生成します。
  • デフォルトでは1つのUUIDを生成しますが、最大100個まで生成可能です。

Claude Desktopの実行結果

ローカル実行手順

  1. ローカルパッケージとしてプロジェクトを追加します。

    dub add-local .
    
  2. サーバーを実行します。

    dub run -q mcp-generate-uuid-server
    

MCPサーバーとしての設定手順

dub run コマンドで実行できるように設定します。 -q オプションは、dub run コマンドの余計な出力を抑えるために使用します。

Claude Desktopの設定

Claude Desktopを使用している場合、以下のように設定を行います。

{
    "mcpServers": {
        "generate-uuid-server": {
            "command": "dub",
            "args": [
                "run",
                "mcp-generate-uuid-server",
                "-q"
            ]
        }
    }
}
Github Copilotの設定

Github Copilotを使用している場合、以下のように設定を行います。

{
    "mcp": {
        "inputs": [],
        "servers": {
            "generate-uuid-server": {
                "command": "dub",
                "args": [
                    "run",
                    "mcp-generate-uuid-server",
                    "-q"
                ],
                "env": {}
            }
        }
    }
}

MCPプロジェクトの作成手順

このプロジェクトと同様のMCPプロジェクトを作成するには、以下のような手順を行います。

  1. DUBを使用して新しいプロジェクトを作成します。

    dub init mcp-generate-uuid-server
    
  2. 必要な依存関係を追加します。 dub.sdl ファイルに以下の依存関係を追加してください。(dub add mcp コマンドを使用しても追加できます。)

    dependency "mcp" version="~>1.0.0"
    
  3. プロジェクトのコードを source/app.d に記述します。

    • addTool メソッドを使用して、UUID生成ツールを追加します。
      • ツール名を指定します
      • ツールの説明を追加します
      • ツール呼び出しのスキーマを定義します
      • ツールの実行ロジックを実装します(JSONValue を受け取り、JSONValue を返すメソッドです)

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.