Lerian MCP Server
Lerian MCP Server
Шлюз MCP для поиска продуктов Lerian, документации, обучения, примеров SDK, доступа к API продуктов в реальном времени и рабочих процессов между продуктами.
Этот сервер подключает MCP-клиенты, такие как Claude Desktop, Cursor, Windsurf, Continue и ChatGPT Desktop, к портфолио продуктов Lerian. Он предоставляет ИИ-ассистентам структурированный способ поиска продуктов Lerian, чтения официальной документации, генерации примеров реализации, проверки контрактов API в реальном времени, выполнения настроенных API продуктов и управления рабочими процессами, охватывающими несколько продуктов.
Область выполнения: этот сервер не ограничивается только документацией. Универсальный инструмент
lerianориентирован на чтение, но инструменты*-executeдля конкретных продуктов могут вызывать настроенные API Lerian в реальном времени. Вызовы API, изменяющие данные, требуют явного подтверждения и указания причины аудита.
2-минутная настройка
Выберите ваш MCP-совместимый ИИ-ассистент.
Добавьте конфигурацию сервера.
Перезапустите ИИ-приложение.
Спросите: "What can you tell me about Lerian Midaz?"
Claude Desktop
Расположение в macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Расположение в Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lerian": {
"command": "npx",
"args": ["-y", "@lerianstudio/lerian-mcp-server@latest"]
}
}
}Cursor, Windsurf, Continue, ChatGPT Desktop
Добавьте тот же блок сервера MCP в конфигурацию MCP вашего клиента:
{
"mcpServers": {
"lerian": {
"command": "npx",
"args": ["-y", "@lerianstudio/lerian-mcp-server@latest"]
}
}
}Related MCP server: natural-docs-mcp
Что вы получаете
Поддерживаемые продукты
Midaz: платформа финансовой бухгалтерской книги с функциями онбординга, балансов, транзакций, CRM и бухгалтерскими сервисами.
Fetcher: подключение к источникам данных, обнаружение схем и сервис асинхронного извлечения.
Reporter: генерация отчетов на основе шаблонов, управление источниками данных, метрики и артефакты.
Matcher: механизм сверки для сопоставления транзакций Midaz с внешними системами.
Tracer: механизм проверки транзакций с правилами, лимитами, валидациями и аудируемостью.
Flowker: платформа оркестрации рабочих процессов для провайдеров, исполнителей, вебхуков и потоков выполнения.
Underwriter: поверхность кредитования с учетом юрисдикции для кредитных продуктов и предварительного просмотра графиков.
All: поиск по всему портфолио, поиск по документации и сравнение.
Основные возможности
Поиск по портфолио через
lerianсoperation="discover".Поиск по документации через
lerianсoperation="docs".Обучение через
lerianсoperation="learn".Примеры SDK через
lerianсoperation="sdk".Поиск по нескольким продуктам через
lerianсoperation="search".Обнаружение контрактов API в реальном времени через инструменты
*-discoverдля конкретных продуктов.Выполнение API в реальном времени через инструменты
*-executeдля конкретных продуктов.Рабочие процессы между продуктами через
portfolio-workflow.Подсказки на основе промптов для онбординга, обучения, использования API и операционных рабочих процессов.
Поверхность инструментов выполнения
Сервер предоставляет небольшое ядро плюс пары API в реальном времени для каждого поддерживаемого продукта.
Основные инструменты
lerian: универсальный инструмент портфолио для документации, обучения, примеров SDK, поиска и обнаружения.portfolio-workflow: обнаружение рабочих процессов между продуктами, планирование, сессии с сохранением состояния и выполнение шагов.
Инструменты Live API
midaz-discoverиmidaz-executefetcher-discoverиfetcher-executereporter-discoverиreporter-executematcher-discoverиmatcher-executetracer-discoverиtracer-executeflowker-discoverиflowker-executeunderwriter-discoverиunderwriter-execute
Используйте соответствующий инструмент *-discover перед вызовом инструмента *-execute. Обнаружение возвращает ресурсы, действия, параметры пути, параметры запроса, схемы тела запроса, примеры и подсказки по выполнению.
Инструмент lerian
Инструмент lerian является основной точкой входа, ориентированной на чтение.
Tool: lerian
Parameters:
product midaz | fetcher | reporter | matcher | tracer | flowker | underwriter | all
operation discover | docs | learn | sdk | search
topic Topic to inspect, learn, or search
language go | typescript | javascript, for SDK examples
useCase Specific implementation scenario for SDK examples
experienceLevel beginner | intermediate | advanced
format summary | detailed | examples-only
includeExamples true | false
maxResults 1-50, for searchПример:
{
"product": "midaz",
"operation": "learn",
"topic": "transactions",
"experienceLevel": "beginner"
}Рабочий процесс Live API
Доступ к API в реальном времени намеренно разделен на два этапа.
Изучите поверхность продукта:
{
"intent": "list-resources"
}Изучите контракт конкретного действия:
{
"intent": "describe-action",
"resource": "transactions",
"action": "create"
}Выполните действие с контрактом, полученным при обнаружении:
{
"resource": "transactions",
"action": "create",
"pathParams": {
"organizationId": "...",
"ledgerId": "..."
},
"body": {
"description": "Example transaction"
},
"confirmMutation": true,
"mutationReason": "Create example transaction requested by operator"
}Действия API, изменяющие данные, требуют:
confirmMutation: truemutationReasonс человекочитаемой причиной аудита
Рабочие процессы между продуктами
Используйте portfolio-workflow, когда задача охватывает несколько продуктов Lerian.
Текущие рабочие процессы:
fetcher-to-reporter: проверка маппингов извлечения с помощью Fetcher, затем генерация или проверка отчетов Reporter.matcher-to-fetcher-to-midaz: настройка сверки Matcher, использование обнаружения Matcher через Fetcher и проверка данных на стороне бухгалтерской книги Midaz.
Поддерживаемые намерения:
list-workflowsdescribe-workflowplancreate-sessionget-sessionlist-sessionsexecute-stepexecute-next
Сессии рабочих процессов возвращают непрозрачный sessionToken. Храните его в секрете.
Конфигурация
Сервер работает сразу для документации и обнаружения. Выполнение API в реальном времени требует доступных сервисов продуктов и, где применимо, токенов или ключей API.
Источники конфигурации в порядке приоритета:
Командная строка
--configили--config-fileПеременные окружения
./lerian-mcp-config.json./midaz-mcp-config.json~/.lerian/mcp-config.json~/.midaz/mcp-config.json~/.config/lerian/mcp-config.json~/.config/midaz/mcp-config.jsonГлобальные пути конфигурации платформы
Создайте или обновите конфигурацию интерактивно:
npx -y -p @lerianstudio/lerian-mcp-server@latest lerian-mcp-configОбщие переменные окружения:
LERIAN_DOCS_URL=https://docs.lerian.studio
LOG_LEVEL=info
MIDAZ_ONBOARDING_URL=http://localhost:3000
MIDAZ_TRANSACTION_URL=http://localhost:3001
MIDAZ_CRM_URL=http://localhost:3002
MIDAZ_LEDGER_URL=http://localhost:3003
MIDAZ_AUTH_TOKEN=...
FETCHER_MANAGER_URL=http://localhost:4006
FETCHER_AUTH_TOKEN=...
REPORTER_MANAGER_URL=http://localhost:4005
REPORTER_AUTH_TOKEN=...
MATCHER_BASE_URL=http://localhost:4018
MATCHER_AUTH_TOKEN=...
TRACER_BASE_URL=http://localhost:4020
TRACER_API_KEY=...
FLOWKER_BASE_URL=http://localhost:4021
FLOWKER_AUTH_TOKEN=...
FLOWKER_API_KEY=...
UNDERWRITER_BASE_URL=http://localhost:8080
UNDERWRITER_AUTH_TOKEN=...Модель безопасности
Выполнение в реальном времени является опциональным через инструменты
*-executeдля конкретных продуктов.Методы, изменяющие данные, требуют явного подтверждения и причины изменения.
Базовые URL API продуктов должны использовать
httpилиhttps.HTTP-URL, отличные от localhost, отклоняются; HTTPS требуется вне локальной разработки.
URL со встроенными учетными данными отклоняются.
Заголовки авторизации и ключей API защищены от произвольной перезаписи.
Размеры бинарных файлов для загрузки и скачивания ограничены настраиваемыми лимитами.
Секреты генерируются и управляются локально в
~/.lerian/secrets.jsonпри необходимости.
Примеры диалогов
Поиск по портфолио
Вы: "What Lerian products can this MCP help with?"
ИИ: Использует lerian с product="all", operation="discover".
Путь обучения
Вы: "I'm new to Tracer. Teach me how validation rules work."
ИИ: Использует lerian с product="tracer", operation="learn", topic="rules".
Пример SDK
Вы: "Show me Go code for creating a Midaz ledger."
ИИ: Использует lerian с product="midaz", operation="sdk", language="go".
Обнаружение контракта Live API
Вы: "Inspect the contract for creating a Reporter template."
ИИ: Использует reporter-discover перед любым вызовом reporter-execute.
Рабочий процесс между продуктами
Вы: "Guide me through validating Fetcher mappings before generating a report."
ИИ: Использует portfolio-workflow с workflow="fetcher-to-reporter".
Разработка
Требуется Node.js >=20.19.0.
npm ci
npm run build
npm testПолезные скрипты:
npm run dev: запуск точки входа TypeScript с помощьюts-node.npm run build: компиляция вdist/и установка прав на выполнение для бинарных файлов.npm run lint: запуск ESLint.npm run typecheck: запуск TypeScript без создания файлов.npm test: запуск тестов Node плюс базовый тест сервера.npm run docs: генерация вывода TypeDoc вdocs/.
Документация
Информация о пакете
npm-пакет:
@lerianstudio/lerian-mcp-serverТекущая версия пакета:
3.4.0Среда выполнения: Node.js ESM
MCP SDK:
@modelcontextprotocol/sdkЛицензия: Apache-2.0
Репозиторий: github.com/lerianstudio/lerian-mcp-server
Краткий обзор архитектуры
MCP Client
-> stdio transport
-> McpServer from @modelcontextprotocol/sdk
-> core tools and prompts
-> product adapters
-> product routers and schema registries
-> configured Lerian product APIsОсновные уровни:
Транспорт: MCP JSON-RPC через stdio.
Загрузка сервера: безопасность, секреты, манифест документации, логирование, обнаружение клиента.
Основные инструменты:
lerianиportfolio-workflow.Адаптеры продуктов: пары обнаружения/выполнения для поддерживаемых продуктов.
Реестры схем: контракты ресурсов/действий для поверхностей API.
Выполнение HTTP: проверка построения URL, выполнение запросов, парсинг ответов и классификация ошибок.
Оркестрация рабочих процессов: управляемые, сохраняющие состояние потоки между несколькими продуктами.
Устранение неполадок
Сервер не запускается
Проверьте версию Node.js:
node --versionЗапустите вручную:
npx -y @lerianstudio/lerian-mcp-server@latestПроверьте локальные секреты:
ls -la ~/.lerian/secrets.jsonВызовы Live API завершаются ошибкой
Сначала используйте инструмент
*-discoverдля продукта.Убедитесь, что настроены соответствующий базовый URL и токен/ключ API.
Подтвердите, что удаленные URL (не локальные) используют HTTPS.
Для изменений включите
confirmMutation=trueиmutationReason.Проверьте, доступен ли целевой сервис продукта из среды выполнения MCP.
Инструмент не отвечает в клиенте
Перезапустите MCP-клиент после внесения изменений в конфигурацию.
Убедитесь, что MCP включен в клиенте.
При необходимости включите логирование с помощью
LOG_LEVEL=debug.Проверьте
./logs/, когда логирование включено.
Available Tools
16 toolsfetcher-discoverARead-onlyIdempotent
Discover Fetcher manager resources, actions, and execution contracts. Use this before fetcher-execute to inspect path params, required headers like organizationId/productName, body shapes, and supported migration/fetcher job operations.
Inputs: intent (required), query, action, resource, +1 more.
fetcher-executeADestructive
Execute Fetcher manager API actions. Use fetcher-discover first to inspect the required organizationId/productName context, path params, query params, and request body shape before calling this tool.
Inputs: action (required), resource (required), body, pathParams, +5 more.
flowker-discoverARead-onlyIdempotent
Discover Flowker API resources, actions, and execution contracts. Use this before flowker-execute to inspect workflow definitions, execution start requirements, provider and executor configuration payloads, audit filters, dashboard summaries, and webhook method/path behavior.
Inputs: intent (required), query, action, resource, +1 more.
flowker-executeADestructive
Execute Flowker API actions. Use flowker-discover first to inspect auth expectations, Idempotency-Key requirements for workflow execution start, provider and executor configuration payloads, and webhook method/path behavior.
Inputs: action (required), resource (required), body, headers, +4 more.
lerianARead-onlyIdempotent
Unified portfolio tool for Lerian products. Discover supported products and current MCP coverage, access documentation and learning resources, generate SDK examples, and search across the portfolio. Live API execution is available through product-specific tools for Midaz, Fetcher, Reporter, Matcher, Tracer, Flowker, and Underwriter, with cross-product workflow support available via portfolio-workflow.
Inputs: product (required), operation (required), topic, format, +5 more.
matcher-discoverARead-onlyIdempotent
Discover Matcher API resources, actions, and execution contracts. The current live slice covers contexts, sources, field maps, discovery-over-Fetcher endpoints, matching runs, exceptions, disputes, governance, reporting, and system operations. Use this before matcher-execute to inspect headers, path params, query filters, payload requirements, and export behavior.
Inputs: intent (required), query, action, resource, +1 more.
matcher-executeADestructive
Execute Matcher API actions. The current live slice covers contexts, sources, field maps, discovery-over-Fetcher endpoints, matching runs, exceptions, disputes, governance, reporting, and system operations. Use matcher-discover first to inspect payloads, required headers, and reporting export behavior.
Inputs: action (required), resource (required), body, headers, +4 more.
midaz-discoverARead-onlyIdempotent
Discover Midaz API resources, actions, and schemas. Use this BEFORE calling midaz-execute to find the right resource+action and understand required parameters. Supports listing all resources, describing specific resources/actions, searching, and filtering by component.
Inputs: intent (required), query, action, resource, +1 more.
midaz-executeADestructive
Execute Midaz API operations. Use midaz-discover first to find the right resource+action and required parameters, then call this tool to execute. Supports all CRUD operations across organizations, ledgers, assets, accounts, transactions, balances, holders, aliases, and more.
Inputs: action (required), resource (required), body, pathParams, +3 more.
portfolio-workflowADestructive
Cross-product workflow tool for orchestrating guided steps across Lerian products. Supports workflow discovery, readiness planning, stateful workflow sessions, step execution, and execute-next progression. Implemented workflows include fetcher-to-reporter and matcher-to-fetcher-to-midaz.
Inputs: intent (required), step, input, limit, +4 more.
reporter-discoverARead-onlyIdempotent
Discover Reporter manager resources, actions, and execution contracts. Use this before reporter-execute to inspect multipart requirements for templates, request headers like X-Idempotency, report download behavior, and the available template/report/deadline/datasource endpoints.
Inputs: intent (required), query, action, resource, +1 more.
reporter-executeADestructive
Execute Reporter manager API actions. Use reporter-discover first to inspect multipart requirements for template upload/update, request headers like X-Idempotency, and binary download behavior for report artifacts.
Inputs: action (required), resource (required), body, headers, +5 more.
tracer-discoverARead-onlyIdempotent
Discover Tracer API resources, actions, and execution contracts. Use this before tracer-execute to inspect rule/limit operations, validation payloads, audit investigation filters, and operational endpoints.
Inputs: intent (required), query, action, resource, +1 more.
tracer-executeBDestructive
Execute Tracer API actions. Use tracer-discover first to inspect rule/limit transitions, validation request bodies, audit filters, and operational endpoints before calling this tool.
Inputs: action (required), resource (required), body, headers, +4 more.
underwriter-discoverARead-onlyIdempotent
Discover Underwriter API resources, actions, and execution contracts. Use this before underwriter-execute to inspect jurisdiction discovery, loan product lifecycle actions, schedule preview payloads, and the example endpoints currently mounted by the service.
Inputs: intent (required), query, action, resource, +1 more.
underwriter-executeADestructive
Execute Underwriter API actions. Use underwriter-discover first to inspect bearer-auth requirements for protected routes, loan product path/query contracts, and the schedule preview payload where decimal amounts are encoded as strings.
Inputs: action (required), resource (required), body, headers, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each product-specific tool clearly targets a distinct product, and the discover/execute split is unambiguous. The two meta tools (lerian and portfolio-workflow) serve separate discovery and cross-product workflow purposes, so there is no overlap or confusion between any tools.
The 14 product tools follow a highly consistent <product>-discover/<product>-execute pattern. However, the 'lerian' and 'portfolio-workflow' tools deviate from this convention, introducing a minor inconsistency that prevents a perfect score.
With 16 tools, the count is slightly above the typical 3-15 range, but every tool is necessary to cover seven distinct products, each requiring discovery and execution, plus two meta tools. The size is justified by the multi-product scope.
The tool set provides complete coverage for each product with both discovery and execution capabilities, including full CRUD operations. The addition of a unified documentation tool and a cross-product workflow tool ensures no dead ends and covers the entire lifecycle from exploration to execution.
Maintenance
Related MCP Connectors
Docsy gives AI assistants current, version-specific documentation for libraries, frameworks and SDKs. Resolve library IDs and versions, then search and fetch focused official documentation with original source links using five read-only MCP tools. Hosted Streamable HTTP with OAuth 2.1 sign-in.
Gemmein docs, API reference, error explainers and a live integration check for coding agents.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Publish your API docs so AI assistants can look up endpoints and call your API correctly.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automatically create, update, and publish API documentation through Theneo's platform. Supports OpenAPI specs, Postman collections, AI-powered description generation, and natural language interactions for seamless documentation workflows.MIT
- AlicenseAqualityDmaintenanceProvides read-only tools to search, read, and look up Natural API documentation from an AI agent, enabling documentation lookup without credentials.4MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with live, searchable documentation for any programming library, eliminating hallucinated APIs by returning current, structured API references.-
- AlicenseAqualityBmaintenanceEnables AI assistants to search API documentation, retrieve endpoint details, get SDK snippets, and check changelogs from an OpenAPI spec.7112 npm4MIT