
swayingleaves/uml-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
사이트맵 Server는 MCP (Model Context Protocol)을 기반으로 한 UML 다이어그램 생성 도구로, 사용자가 자연 언어 설명 또는 직접 통해 UML 다이어그램의 다양한 유형을 생성 할 수 있습니다 ...
개요
사이트맵 Server는 MCP (Model Context Protocol)에 기반한 UML 다이어그램 생성 도구이며, 사용자가 자연 언어 설명 또는 직접 작성 PlantUML 코드를 통해 UML 다이어그램의 다양한 유형을 생성할 수 있습니다. - 여러 UML 다이어그램 유형 지원 : 클래스 다이어그램, 시퀀스 다이어그램, 활동 다이어그램, 사용 케이스 다이어그램, 국가 다이어그램, 구성요소 다이어그램, 배포 다이어그램, 객체 다이어그램 - UML 다이어그램은 자연 언어 설명을 통해 생성 될 수 있습니다 - UML 다이어그램을 생성하기 위해 PlantUML 코드를 직접 사용할 수 있습니다 - 반품 PlantUML 코드 및 쉽게 공유 및 시청을위한 액세스 URL 링크 - 동시에 생성 된 UML 다이어그램을 로컬로 저장하고 로컬 파일 경로를 제공합니다 - 사용자 정의 저장 경로 및 UML 이미지의 출력 디렉토리를 지정 - MCP 서버로, Claude와 같은 MCP를 지원하는 클라이언트와 통합 할 수 있습니다 - 서버 운영 상태 및 작동 로그를 기록하는 포괄적 인 로깅 시스템 Claude Desktop 용 UML 다이어그램 생성 도구 설치 ...
개요(AI 번역)
Korean | 한국어
사이트맵 Server는 MCP (Model Context Protocol)에 기반한 UML 다이어그램 생성 도구이며, 사용자가 자연 언어 설명 또는 직접 작성 PlantUML 코드를 통해 UML 다이어그램의 다양한 유형을 생성할 수 있습니다.
기능적인 특징
- 여러 UML 다이어그램 유형 지원 : 클래스 다이어그램, 시퀀스 다이어그램, 활동 다이어그램, 사용 사례 다이어그램, 국가 다이어그램, 구성 요소 다이어그램, 배포 다이어그램, 객체 다이어그램
- UML 다이어그램은 자연적인 언어 설명을 통해 생성될 수 있습니다
- 직접 PlantUML 코드를 사용하여 UML 다이어그램 생성
- 반품 PlantUML 코드 및 쉽게 공유 및 시청을위한 접근 가능한 URL 링크
- 동시에 생성 된 UML 다이어그램을 로컬로 저장하고 로컬 파일 경로를 제공합니다
- 사용자 지정 저장 경로 및 UML 이미지 출력 디렉토리를 지정
- MCP 서버로, Claude와 같은 MCP를 지원하는 클라이언트와 통합할 수 있습니다
- 서버 운영 상태 및 운영 로그를 기록하는 종합 로깅 시스템
설치
Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 UML Diagram Generation Tool을 자동으로 설치하십시오.
수동 설치
-
복부 저장소:
-
명세.
이 페이지는 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"
}
}
}