FluffOS MCP Server
MCP-сервер FluffOS
Реальная проверка драйвером для разработки на LPC — MCP-сервер, который оборачивает инструменты командной строки FluffOS для обеспечения проверки и отладки на уровне драйвера.
Этот MCP-сервер предоставляет ИИ-ассистентам доступ к мощным утилитам командной строки FluffOS (symbol и lpcc), позволяя им проверять код LPC с помощью реального драйвера и изучать скомпилированный байт-код.
Что это дает
ИИ-ассистенты теперь могут:
Проверять файлы LPC с помощью реального драйвера FluffOS (а не просто выполнять проверку синтаксиса)
Выявлять проблемы компиляции во время выполнения, которые пропускает статический анализ
Изучать скомпилированный байт-код для отладки проблем производительности или поведения
Понимать, как именно компилируется код LPC
Related MCP server: LPC MCP Server
Инструменты
fluffos_validate: Проверка файла LPC с помощью инструментаsymbolиз состава FluffOSfluffos_disassemble: Дизассемблирование LPC в байт-код с помощьюlpccfluffos_doc_lookup: Поиск в документации FluffOS по efun, apply, концепциям и т. д.
Все три инструмента работают только на чтение и являются идемпотентными — они никогда не изменяют файлы, драйверы или работающие MUD, поэтому безопасны для автоматического вызова агентами.
Когда какой инструмент использовать
Я хочу… | Используйте |
Проверить, компилируется ли файл драйвером |
|
Увидеть байт-код, в который компилируется функция |
|
Исследовать, почему шаблон работает медленно |
|
Найти сигнатуру efun или семантику apply |
|
Узнать, существует ли efun в этой сборке драйвера |
|
Выполнить проверку перед коммитом / деплоем |
|
Инструмент fluffos_doc_lookup регистрируется только в том случае, если сервер запущен с установленной переменной FLUFFOS_DOCS_DIR.
Предварительные требования
1. Установка FluffOS
Вам необходимо установить FluffOS с доступными инструментами командной строки. Должны присутствовать следующие бинарные файлы:
symbol— для проверки файлов LPClpcc— для дизассемблирования в байт-код
2. Node.js
Требуется Node.js 16+:
node --version # Should be v16.0.0 or higherУстановка
Вы можете установить сервер через npm:
npm install -g @gesslar/fluffos-mcpИли клонировать и установить локально:
git clone https://github.com/gesslar/fluffos-mcp.git
cd fluffos-mcp
npm installКонфигурация
Сервер требует наличия следующих переменных окружения:
FLUFFOS_BIN_DIR— директория, содержащая бинарные файлы FluffOS (symbol,lpcc)MUD_RUNTIME_CONFIG_FILE— путь к файлу конфигурации FluffOS (например,/mud/lib/etc/config.test)FLUFFOS_DOCS_DIR— (опционально) директория, содержащая документацию FluffOS для поиска
Настройка для различных ИИ-инструментов
Warp (Терминал)
Добавьте в конфигурацию Warp MCP:
Расположение: Settings → AI → Model Context Protocol
Если установлено через npm:
{
"fluffos": {
"command": "npx",
"args": ["@gesslar/fluffos-mcp"],
"env": {
"FLUFFOS_BIN_DIR": "/path/to/fluffos/bin",
"MUD_RUNTIME_CONFIG_FILE": "/mud/lib/etc/config.test",
"FLUFFOS_DOCS_DIR": "/path/to/fluffos/docs"
}
}
}Если клонировано локально:
{
"fluffos": {
"command": "node",
"args": ["/absolute/path/to/fluffos-mcp/index.js"],
"env": {
"FLUFFOS_BIN_DIR": "/path/to/fluffos/bin",
"MUD_RUNTIME_CONFIG_FILE": "/mud/lib/etc/config.test",
"FLUFFOS_DOCS_DIR": "/path/to/fluffos/docs"
}
}
}Важно: Используйте абсолютные пути!
После добавления конфигурации перезапустите Warp.
Claude Desktop
Добавьте в ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) или эквивалентный файл:
Если установлено через npm:
{
"mcpServers": {
"fluffos": {
"command": "npx",
"args": ["@gesslar/fluffos-mcp"],
"env": {
"FLUFFOS_BIN_DIR": "/path/to/fluffos/bin",
"MUD_RUNTIME_CONFIG_FILE": "/mud/lib/etc/config.test",
"FLUFFOS_DOCS_DIR": "/path/to/fluffos/docs"
}
}
}
}Если клонировано локально:
{
"mcpServers": {
"fluffos": {
"command": "node",
"args": ["/absolute/path/to/fluffos-mcp/index.js"],
"env": {
"FLUFFOS_BIN_DIR": "/path/to/fluffos/bin",
"MUD_RUNTIME_CONFIG_FILE": "/mud/lib/etc/config.test",
"FLUFFOS_DOCS_DIR": "/path/to/fluffos/docs"
}
}
}
}После настройки перезапустите Claude Desktop.
Примеры использования
После настройки вы можете спросить своего ИИ-ассистента:
"Проверь этот файл LPC с помощью реального драйвера"
→ ИИ использует fluffos_validate для запуска symbol
"Покажи мне байт-код для этой функции"
→ ИИ использует fluffos_disassemble для запуска lpcc
"Почему этот код работает медленно?" → ИИ изучает дизассемблированный код для выявления неэффективных шаблонов
"Какой синтаксис у call_out?"
→ ИИ использует fluffos_doc_lookup для поиска в документации
"Как использовать mappings?" → ИИ ищет в документации информацию о mapping
Как это работает
AI Assistant
↓ (natural language)
MCP Protocol
↓ (tool calls: fluffos_validate, fluffos_disassemble)
This Server
↓ (spawns: symbol, lpcc)
FluffOS CLI Tools
↓ (validates/compiles with actual driver)
Your LPC CodeИИ-ассистент отправляет запросы к инструментам MCP
Сервер запускает соответствующий инструмент командной строки FluffOS
Инструмент CLI проверяет/дизассемблирует код с помощью драйвера
Сервер возвращает результаты ИИ
ИИ понимает ваш код на уровне драйвера и может ссылаться на документацию FluffOS, чтобы объяснить, как работают функции!
Детали реализации
Архитектура
Сервер построен с использованием Model Context Protocol SDK и следует классовой архитектуре:
Класс FluffOSMCPServer: основная реализация сервера
MCP SDK Server: обрабатывает обмен протоколами через stdio
Запуск дочерних процессов: выполняет инструменты командной строки FluffOS
Нормализация путей: преобразует абсолютные пути в пути относительно mudlib
Обработка путей
Сервер интеллектуально обрабатывает пути к файлам:
Анализирует
mudlib directoryиз вашего файла конфигурации FluffOSНормализует абсолютные пути в пути относительно mudlib
Передает нормализованные пути инструментам FluffOS (которые ожидают относительные пути)
Пример: /mud/ox/lib/std/object.c → std/object.c
Реализация инструментов
fluffos_validate:
Запускает
symbol <config> <file>из директории конфигурацииЗахватывает stdout/stderr
Возвращает успех/ошибку с ошибками компиляции
Код выхода 0 = проверка пройдена
fluffos_disassemble:
Запускает
lpcc <config> <file>из директории конфигурацииВозвращает полное дизассемблирование байт-кода
Включает таблицы функций, строки и детали на уровне инструкций
fluffos_doc_lookup (опционально):
Запускает вспомогательный скрипт
scripts/search_docs.shИспользует
grepдля поиска по файлам markdownДоступно только если установлена переменная
FLUFFOS_DOCS_DIR
Обработка ошибок
Проверяет необходимые переменные окружения при запуске
Возвращает структурированные ответы об ошибках через MCP
Корректно обрабатывает отсутствие конфигурации или сбои при выполнении инструментов
Ненулевые коды выхода сообщаются, но не приводят к аварийному завершению сервера
Дополнительные инструменты
Этот сервер отлично работает вместе с:
lpc-mcp — интеграция языкового сервера для интеллектуальной работы с кодом
VS Code с расширением LPC от jlchmura — поддержка IDE
Используйте их вместе для полноценного опыта разработки на LPC!
Вклад в проект
PR приветствуются! Это простая обертка, которую можно расширить другими инструментами FluffOS.
Благодарности
Команда FluffOS — за потрясающий драйвер и инструменты командной строки
Model Context Protocol — за возможность такой интеграции
Лицензия
@gesslar/fluffos-mcp выпущен под лицензией 0BSD.
Этот пакет включает или зависит от сторонних компонентов, распространяемых под их собственными лицензиями:
Зависимость | Лицензия |
0BSD | |
MIT | |
MIT |
Available Tools
2 toolsfluffos_disassembleB
Disassemble an LPC file to show compiled bytecode using lpcc. Useful for debugging and understanding how code compiles.
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the LPC file to disassemble |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It mentions the tool is 'useful for debugging and understanding how code compiles,' which gives some behavioral context about its purpose. However, it doesn't disclose important behavioral traits like whether this is a read-only operation, what permissions are needed, whether it modifies the file, error handling, or output format details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded. The first sentence clearly states the core functionality, and the second sentence adds valuable context about when to use it. Both sentences earn their place with zero waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 1 parameter with 100% schema coverage and no output schema, the description provides adequate but minimal context. It explains what the tool does and its use cases, but for a tool with no annotations and no output schema, it should ideally provide more behavioral details about what the disassembly output looks like or any limitations.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, with the single parameter 'file' well-documented in the schema. The description doesn't add any parameter-specific information beyond what the schema provides. With high schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate but doesn't need to.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Disassemble an LPC file to show compiled bytecode using lpcc.' It specifies the verb (disassemble), resource (LPC file), and method (using lpcc). However, it doesn't explicitly differentiate from the sibling tool 'fluffos_validate', which appears to be a different operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides implied usage context: 'Useful for debugging and understanding how code compiles.' This suggests when to use the tool, but doesn't explicitly state when not to use it or mention alternatives. No comparison to the sibling tool is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fluffos_validateA
Validate an LPC file using the FluffOS driver's symbol tool. Returns success/failure and any compilation errors.
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the LPC file to validate |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the validation outcome ('success/failure and any compilation errors'), which is useful context beyond basic functionality. However, it doesn't address important behavioral aspects like error handling, performance characteristics, or whether this operation has side effects.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is perfectly concise with two sentences that each earn their place: the first states the core functionality, and the second describes the return value. There's zero waste or redundancy, and it's appropriately front-loaded with the main purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter validation tool with no annotations and no output schema, the description provides adequate but minimal information. It covers what the tool does and what it returns, but doesn't address potential complexities like what constitutes validation success versus failure, error message formats, or limitations of the validation process.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents the single 'file' parameter. The description doesn't add any additional meaning about the parameter beyond what the schema provides, such as file format requirements or validation scope limitations. The baseline of 3 is appropriate when the schema does all the parameter documentation work.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('validate an LPC file') and resource ('using the FluffOS driver's symbol tool'), distinguishing it from the sibling tool 'fluffos_disassemble' which implies a different operation. It provides a complete verb+resource+scope statement.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. While the sibling tool name suggests a different function, the description doesn't explicitly state when to choose validation over disassembly or other potential options. There's no mention of prerequisites or context for usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
v1.0.0- First observed
fluffos_disassemble - First observed
fluffos_validate
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: disassemble focuses on showing compiled bytecode for debugging, while validate checks for compilation errors and success/failure. There is no overlap or ambiguity between these functions.
Both tools follow a consistent 'fluffos_verb' naming pattern (fluffos_disassemble and fluffos_validate), using the same prefix and verb-based structure. This makes them predictable and easy to identify.
With only 2 tools, the server feels thin for a FluffOS/LPC development environment. While disassembly and validation are useful, typical development workflows would benefit from additional tools like code execution, file management, or debugging support, making this set under-scoped.
The server covers only disassembly and validation, leaving significant gaps for a FluffOS development tool. Missing are core operations like running LPC code, editing files, managing projects, or advanced debugging features, which limits agents' ability to handle comprehensive development tasks.
Maintenance
Related MCP Connectors
The OpenZeppelin Solidity Contracts MCP server integrates OpenZeppelin's security and style rules into AI-driven development workflows, enabling AI assistants to generate safe, correct, and production-ready smart contracts. It automatically validates generated code against OpenZeppelin standards (including imports, modifiers, naming conventions, and security checks) and supports various contract types including ERC-20, ERC-721, ERC-1155, Stablecoins, RWA, Governor, and Account contracts through prompt-driven workflows.
Architecture compiler for AI code. 11 tools, 92 actions, 872 Lean4 proofs, 100/100 self-cert.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to compile, execute, and check Almide code for syntax or compilation errors. It provides tools for generating ASTs and accessing language grammar resources.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to understand and query LPC codebases through natural language, using a language server for hover info, definitions, references, and diagnostics.18 npm2BSD Zero Clause
- FlicenseAqualityDmaintenanceCompile, validate, and explore TON smart contracts using the Tolk compiler from any MCP-compatible AI assistant.3-
- AlicenseNot gradedqualityDmaintenanceEnables verification of Lean 4 mathematical proofs via MCP tools, allowing AI clients to compile and check theorems with Mathlib.1MIT