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
- 01Generate a requested number of UUIDs
- 02Generate one UUID by default
- 03Generate up to 100 UUIDs
Use cases
- 01Create UUIDs for development or testing
- 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.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Generate UUID Server
このプロジェクトは、UUIDを生成するためのMCPサーバー(サンプル実装)です。D言語および mcp パッケージライブラリを使用して構築されています。
https://github.com/gtnoble/mcp-d
機能
generate_uuidツールを提供し、指定された数のUUIDを生成します。- デフォルトでは1つのUUIDを生成しますが、最大100個まで生成可能です。

ローカル実行手順
-
ローカルパッケージとしてプロジェクトを追加します。
dub add-local . -
サーバーを実行します。
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プロジェクトを作成するには、以下のような手順を行います。
-
DUBを使用して新しいプロジェクトを作成します。
dub init mcp-generate-uuid-server -
必要な依存関係を追加します。
dub.sdlファイルに以下の依存関係を追加してください。(dub add mcpコマンドを使用しても追加できます。)dependency "mcp" version="~>1.0.0" -
プロジェクトのコードを
source/app.dに記述します。addToolメソッドを使用して、UUID生成ツールを追加します。- ツール名を指定します
- ツールの説明を追加します
- ツール呼び出しのスキーマを定義します
- ツールの実行ロジックを実装します(
JSONValueを受け取り、JSONValueを返すメソッドです)
Comments
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.