
swayingleaves/uml-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
UML-MCPの特長 Server は MCP (Model Context Protocol) に基づく UML ダイアグラム生成ツールです。これにより、ユーザーは自然言語の説明や直接 UML ダイアグラムを生成できます.
概要
UML-MCPの特長 Server は MCP (Model Context Protocol) に基づく UML ダイアグラム生成ツールです。これにより、ユーザーは自然言語の説明や、PlanetUML コードを直接書くことで、さまざまな UML ダイアグラムを生成できます。 - クラス図、シーケンス図、アクティビティ図、ユースケース図、ステート図、コンポーネント図、デプロイメント図、オブジェクト図、オブジェクト図などの複数のUML図タイプをサポートしています - UML図は、自然言語の説明によって生成できます - 直接、PlanetUML コードを使用して、UML の図を生成できます。 - 簡単に共有と閲覧するためのアクセス可能な URL リンク - 生成されたUML の図をローカルに保存し、ローカルファイルパス - サポート カスタムパスを保存し、UML イメージの出力ディレクトリを指定します - MCP サーバーとして、Claude などの MCP をサポートするクライアントと統合できます。サーバーの運用状況と運用ログを記録する包括的なロギングシステム Claudeデスクトップ用のUML図生成ツールをインストールするには...
概要(AI 翻訳)
日本語 English
UML-MCPの特長 Server は MCP (Model Context Protocol) に基づく UML ダイアグラム生成ツールです。これにより、ユーザーは自然言語の説明や、PlanetUML コードを直接書くことで、さまざまな UML ダイアグラムを生成できます。
機能的特徴
- クラス図、シーケンス図、アクティビティ図、ユースケース図、ステート図、コンポーネント図、デプロイメント図、オブジェクト図をサポート
- UML図は、自然言語の説明で生成できます
- 直接PlanetUMLコードを使用してUML図を生成できます
- 簡単に共有と閲覧するためのPlanetUMLコードとアクセス可能なURLリンクを返す
- 生成されたUML図をローカルに保存し、ローカルファイルパスを提供
- カスタムパスを保存し、UML画像の出力ディレクトリを指定するサポート
- MCP サーバーとして、Claude などの MCP をサポートするクライアントと統合できます。
- サーバの運用状況と運用ログを記録する総合ロギングシステム
インストール
##Smitheryでインストールする
スミサリーを介して自動的にクロードデスクトップ用のUML図生成ツールをインストールするには:
手動インストール
-
リポジトリのクローン化:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
UML-MCP-Server
UML-MCP Server is a UML diagram generation tool based on MCP (Model Context Protocol), which can help users generate various types of UML diagrams through natural language description or directly writing PlantUML code.
Functional Features
- Supports multiple UML diagram types: class diagram, sequence diagram, activity diagram, use case diagram, state diagram, component diagram, deployment diagram, object diagram
- UML diagrams can be generated through natural language description
- You can directly use PlantUML code to generate UML diagrams
- Return PlantUML code and accessible URL links for easy sharing and viewing
- Simultaneously save the generated UML diagram locally and provide the local file path
- Support custom save path and specify the output directory for UML images
- As an MCP server, it can integrate with clients that support MCP, such as Claude
- A comprehensive logging system that records server operating status and operation logs
Installation
Installing via Smithery
To install UML Diagram Generation Tool for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Swayingleaves/uml-mcp-server --client claude
Manual Installation
- Clone repository:
git clone https://github.com/yourusername/UML-MCP-Server.git
cd UML-MCP-Server
- Create and activate a virtual environment:
python -m venv uml-mcp-venv
source uml-mcp-venv/bin/activate # Linux/Mac
# Or
uml-mcp-venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
Usage Method
Used as a Python Library
from fix_plantuml import generate_uml
# Create UML code
uml_code = """
@startuml
Title: Simple Class Diagram
class User {
-String name
-String email
+login()
+logout()
}
class Order {
-int id
-Date date
+process()
}
User "1" -- "many" Order: places
@enduml
"""
# Generate URLs, code, and local paths for UML diagrams
result = generate_uml(uml_code)
# Output result
print("PlantUML code: ")
print(result["code"])
print("\nPlantUML URL:")
print(result["url"])
print("\nLocal file path: ")
print(result["local_path"])
Configure MCP in Cursor
The Cursor supports MCP (Model Context Protocol) servers, allowing you to directly generate UML diagrams using UML-MCP Server in the Cursor. The configuration steps are as follows:
-
Ensure that the latest version of Cursor IDE (which supports MCP functionality) is installed.
-
Open the configuration file of Cursor:
- On macOS:
~/Library/Application Support/Cursor/config.json - On Windows:
%APPDATA%\Cursor\config.json - On Linux:
~/.config/Cursor/config.json
- Add or modify the ‘mcpServer’ section in the configuration file:
{
インストール
npx -y @smithery/cli install @Swayingleaves/uml-mcp-server --client claude設定
{
"mcpServers": {
"UML-MCP-Server": {
"command": "uv",
"args": [
"--directory",
"/Users/yourpath/UML-MCP-Server",
"run",
"uml_mcp_server.py"
],
"output_dir": "/Users/yourpath/uml-output"
}
}
}