arx-mcp
Enables AI assistants to compile, run, lint, and format ArxLang code directly through ArxNode without manual terminal commands.
README
arx-mcp
MCP-сервер, що дозволяє AI-асистенту (Claude, Cursor тощо) напряму
компілювати/запускати/лінтити/форматувати ArxLang (.arx) код через
ArxNode — без ручного
dotnet run/copy-paste в термінал.
Навіщо окремий репозиторій, а не частина ArxEcosystem
node_modules цього проєкту не мав би потрапляти в dotnet-збірку чи
publish/ ArxLang. Живе поруч, як сестринський проєкт.
Встановлення
git clone https://github.com/Faneraiy14/ArxMcp.git
cd ArxMcp
npm install
Потрібен зібраний ArxNode поруч (../ArxEcosystem за замовчуванням,
dotnet build src/ArxLang там) — або задай шлях явно:
export ARX_NODE_PATH=/шлях/до/ArxLang.exe # чи .dll — тоді запускається через `dotnet`
# або
export ARX_ECOSYSTEM_ROOT=/шлях/до/ArxEcosystem
Підключення (Claude Desktop / Claude Code)
{
"mcpServers": {
"arxlang": {
"command": "node",
"args": ["/шлях/до/ArxMcp/src/server.js"]
}
}
}
Інструменти
| Інструмент | Що робить |
|---|---|
arxlang_run |
Компілює й виконує код у пісочниці (окремий процес, timeout, ліміт GC-виділень) |
arxlang_lint |
Стильові попередження (довжина рядка, порожні блоки) — не перевірка синтаксису, завжди exitCode=0 |
arxlang_format |
Форматує код |
arxlang_version |
Версія знайденого ArxNode — заодно health check |
arxlang_docs |
GUIDE.md цілком або конкретна секція (### -заголовок) за назвою |
Безпека виконання (arxlang_run)
- Код НІКОЛИ не потрапляє в shell/argv як текст — завжди пишеться у
власний тимчасовий файл, шлях до якого передається як звичайний
аргумент процесу (
execFile, безshell: true). - Процесний
timeout(типово 10с, максимум 60с) — єдиний реальний захист відwhile (true) {}без виділень пам'яті:ARX_GC_MAX_OBJECTSрахує лише ArxLang-виділення (масиви/структури/мапи), а не ітерації циклу самі по собі. env— allowlist (PATH,SystemRoot,TEMP,DOTNET_ROOTтощо), не весьprocess.envцього серверного процесу.- Вивід (
stdout/stderr) обрізається до 32 КБ на потік — цикл, що друкує мільйони рядків, не заповнить контекст відповіді. - Тимчасова тека видаляється в
finallyзавжди, навіть при таймауті.
RunFile в ArxNode.cs пише Runtime Error:/Parse Error: у stdout
(не stderr) і завершується з exitCode=1 — це поведінка самого
ArxNode, не цього сервера; кожен інструмент явно зазначає це в описі.
Тести
npm test
14 перевірок: smoke.mjs викликає обробники напряму (успішний запуск,
необроблений throw, таймаут нескінченного циклу, gc_max_objects,
обрізання великого виводу, стійкість до shell-метасимволів у коді,
відсутність витоку тимчасових директорій), transport.mjs — те саме
через РЕАЛЬНИЙ MCP-протокол (StdioClientTransport + Client), не
лише прямі виклики функцій.
Ліцензія
MIT — Faneraiy14.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.