SL

smartzan63/lucid-mcp-server

Developer tools

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

19 stars 6 forks Качество 75 Тренд 26MIT

Сервер Model Context Protocol (MCP) для интеграции приложений Lucid. Экспортирует диаграммы Lucid в виде изображений, чтобы клиент, способный видеть, мог интерпретировать их и создавать новые диаграммы из Lucid Standard Import JSON.

Обзор

Сервер Model Context Protocol (MCP) для интеграции приложений Lucid. Экспортирует диаграммы Lucid в виде изображений, чтобы клиент, способный видеть, мог интерпретировать их и создавать новые диаграммы из Lucid Standard Import JSON. - an и извлечение метаданных из LucidChart, LucidSpark и LucidScale - an для быстрого обзора структуры документа - an️ из диаграмм Lucid, возвращенный в качестве блока контента изображения для клиента, способного интерпретировать - an️ из Lucid Standard Import JSON (flowcharts, org charts, UML, BPMN, облачная архитектура), с помощью макета - an️ (перейти в мусор) - an с полным покрытием теста - an для простого тестирования Сервер представляет собой тонкий мостик к API Lucid REST. Он работает с любым LLM: Поисковые документы и get-document-tabs возвращают метаданные JSON из API Lucid. Получить документ с аналитическим изображением: настоящий экспорт запрашиваемой страницы в виде PNG и возвращает ее в виде блока содержимого изображения MCP. - создавать пакеты диаграмм Lucid Standard Import JSON, которые вы предоставляете.

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

Сервер Model Context Protocol (MCP) для интеграции приложений Lucid. Экспортирует диаграммы Lucid в виде изображений, чтобы клиент, способный видеть, мог интерпретировать их и создавать новые диаграммы из Lucid Standard Import JSON.

Таблица содержимого

  • Особенности
  • Как это работает Совместимость клиентов и моделей
  • Предварительные условия
  • Установка
  • Использование
  • Вклад
  • Ссылки
  • Лицензия

Особенности

** Открытие документов** и извлечение метаданных из LucidChart, LucidSpark и LucidScale ** Легкие метаданные вкладки** для краткого обзора структуры документа ** Экспорт изображений PNG** из диаграмм Lucid, возвращенных в качестве блока контента изображения для клиента, способного интерпретировать

  • ️ ** Создание диаграммы** от Lucid Standard Import JSON (flowcharts, org charts, UML, BPMN, облачная архитектура) с помощью вспомогательной компоновки
  • )️ ** Удаление документов** (переезд в мусорную корзину)
  • ** Реализация сценариев типов** с полным охватом испытаний ** Интеграция с MCP-инспектором** для простого тестирования

Как это работает

Сервер представляет собой тонкий мостик к API Lucid REST. Он ** не** запускает собственный LLM:

search-documents и get-document-tabs возвращают метаданные JSON из Lucid API.

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

README

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

Lucid MCP Server

Model Context Protocol (MCP) server for Lucid App integration. Exports Lucid diagrams as images so a vision-capable client can interpret them, and creates new diagrams from Lucid Standard Import JSON.

Table of Contents

Features

  • 🔍 Document discovery and metadata retrieval from LucidChart, LucidSpark, and LucidScale
  • 📑 Lightweight tab metadata for quick document structure overview
  • 🖼️ PNG image export from Lucid diagrams, returned as an image content block for a vision-capable client to interpret
  • ✏️ Diagram creation from Lucid Standard Import JSON (flowcharts, org charts, UML, BPMN, cloud architecture), with assisted layout
  • 🗑️ Document deletion (move to trash)
  • 📝 TypeScript implementation with full test coverage
  • 🔧 MCP Inspector integration for easy testing

How It Works

The server is a thin bridge to the Lucid REST API. It does not run any LLM of its own:

  • search-documents and get-document-tabs return JSON metadata from the Lucid API.
  • get-document with analyzeImage: true exports the requested page as a PNG and returns it as an MCP image content block.
  • create-diagram packages the Lucid Standard Import JSON you provide into a .lucid archive and creates a new document via the Lucid API.
  • delete-diagram moves a document to the trash.

Diagram interpretation is delegated entirely to the model already driving your MCP client. This keeps the server free of any AI-provider dependency and reuses the (typically more capable) model running your session instead of a second, separately configured one. Likewise, the Standard Import JSON for create-diagram is authored by your session model, so the server needs no diagram-generation logic of its own.

Creating and deleting documents require a Lucid API key with document edit (write) scope. A read-only key can still search, read, and export. There is no in-place content editing in the Lucid REST API: to change a diagram, create a new one (optionally deleting the old). The exported JSON format and the Standard Import format are not interchangeable, so there is no download-edit-reupload round trip.

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

Установка

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

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

{ "mcpServers": { "lucid": { "command": "npx", "args": ["-y", "lucid-mcp-server"], "env": { "LUCID_API_KEY": "your-lucid-api-key" } } } }