SS

staruml/staruml-mcp-server

Developer toolsОфициальный

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

27 stars 10 forks Качество 80 Тренд 14MIT

StarUML - это сложный модельер для гибкого и краткого моделирования. Позволяет создавать диаграммы или генерировать коды из диаграмм в StarUML через подсказки.

Обзор

StarUML - это сложный модельер для гибкого и краткого моделирования. Позволяет создавать диаграммы или генерировать коды из диаграмм в StarUML через подсказки. - StarUML v7.0.0 или выше - Node.js v22 или выше Настройка claude desktop config.json в Claude Desktop: Вы можете использовать опцию -api-port= для изменения порта сервера API для StarUML. - «Создать диаграмму класса для книжного магазина в StarUML» - «Создать диаграмму последовательности для аутентификации OAuth в StarUML» - «Создать SQL DDL из текущей диаграммы ERD в StarUML» - generate diagram - get current diagram info - get all diagrams info - get diagram image by id 1. Клонировать это хранилище. 2.Строить с помощью npm run build. 3. Обновить claude desktop config.json в Claude Desktop, как указано ниже. 4. Перезапустить Клод Десктоп.

Обзор (машинный перевод)

StarUML - это сложный модельер для гибкого и краткого моделирования. StarUML MCP Server позволяет создавать диаграммы или генерировать коды из диаграмм в StarUML с помощью подсказок.

Настройка

Обязательно:

  • StarUML v7.0.0 или выше Node.js v22 или выше

Установите claude_desktop_config.json в Claude Desktop следующим образом:

Вы можете использовать опцию --api-port= , чтобы изменить порт сервера API для StarUML.

Примеры подсказок

  • “Создать диаграмму классов для книжного магазина в StarUML”
  • “Создать схему последовательности для аутентификации OAuth в StarUML”
  • “Generate SQL DDL from the current ERD diagram in StarUML”

Инструменты

  • [[Т4]]
  • [[Т5]]
  • [[Т6]]
  • [[Т7]]

##Дев

  1. Клонировать это хранилище. 2.Строить с [8]. 3.Обновить claude_desktop_config.json в Claude Desktop как ниже.
  2. Перезапустить Клод Десктоп.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

StarUML MCP Server

StarUML is a sophisticated modeler for agile and concise modeling. StarUML MCP Server is a Model Context Protocol server that lets AI assistants such as Claude work with StarUML: create diagrams from prompts, read the diagrams in the current project, see diagram images, and query or modify models with scripts (e.g. generate code from diagrams).

How It Works

StarUML runs a local API server (http://127.0.0.1:58321 by default). StarUML MCP Server is a small Node.js program that the AI client runs over stdio, and it translates each MCP tool call to a request to the StarUML API server.

AI client (Claude Desktop, Claude Code, ...) ──stdio──▶ StarUML MCP Server ──HTTP──▶ StarUML (API server)

StarUML must be running with a project open while you use the tools.

Requirements

  • StarUML v7.0.0 or higher (v8.1.0 or higher for execute_script)
  • Node.js v22 or higher

Use the version of StarUML MCP Server matching your StarUML:

StarUML StarUML MCP Server
v8 0.3.x (latest)
v7 0.1.0

Setup

Claude Desktop

Add the server to claude_desktop_config.json (Settings > Developer > Edit Config) and restart Claude Desktop:

{
  "mcpServers": {
    "staruml-mcp-server": {
      "command": "npx",
      "args": ["-y", "staruml-mcp-server"]
    }
  }
}

For StarUML v7, use [email protected] instead of staruml-mcp-server.

Claude Code

claude mcp add staruml -- npx -y staruml-mcp-server

Other MCP Clients

Any MCP client that supports stdio servers can run the server with the command npx -y staruml-mcp-server.

Options

  • --api-port=: Port of the StarUML API server (default: 58321). Use it when you change the port in StarUML.
{
  "mcpServers": {
    "staruml-mcp-server": {
      "command": "npx",
      "args": ["-y", "staruml-mcp-server", "--api-port=60000"]
    }
  }
}

StarUML Settings

In StarUML v8.1.0 or higher, the API server is configured in Preferences > API Server (restart StarUML after changing them):

  • Run on Start: Run the API server when StarUML starts (default: on).
  • Port: Port number of the API server (default: 58321). If you change it, pass the same port with --api-port.

The API server listens on the loopback address (127.0.0.1) only, so it cannot be reached from other machines.

API Access

With StarUML v8, when the MCP server calls StarUML for the first time, StarUML asks you to allow API access for “StarUML MCP Server”. Click Allow to continue. The access is kept until StarUML is restarted, and StarUML asks again after a restart (the MCP server requests a new access automatically).

StarUML v7 does not ask for API access.

Tools

Открыть полный README на GitHub

Установка

npx -y staruml-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "staruml-mcp-server": { "command": "npx", "args": ["-y", "staruml-mcp-server"] } } }