Archform
Render and validate diagrams as code: Mermaid, PlantUML, C4, Graphviz, D2 and more.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@archform/mcpclaude mcp add archform -e 'KROKI_URL=<KROKI_URL>' -- npx -y @archform/mcp@0.2.2
{
"mcpServers": {
"archform": {
"command": "npx",
"args": [
"-y",
"@archform/mcp@0.2.2"
],
"env": {
"KROKI_URL": "<KROKI_URL>"
}
}
}
}
متغيرات البيئة
KROKI_URLKroki server used for rendering. Defaults to the public https://kroki.io; set it to a self-hosted instance to keep diagram source private.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Archform
Diagrams as code for AI assistants.
This diagram was drawn by Archform. Connect it to your assistant and ask, for example, "Draw a C4 context diagram of a URL shortener."
This is the monorepo for the @archform npm scope.
| Package | Description |
|---|---|
@archform/mcp | MCP server that renders and validates Mermaid, PlantUML, C4, Graphviz, D2, Structurizr, BPMN and Excalidraw diagrams |
Quick start
claude mcp add archform -- npx -y @archform/mcp
See packages/mcp for Claude Desktop, Cursor, VS Code and ChatGPT setup.
By default diagram source is sent to the public kroki.io service for rendering. Set
KROKI_URLto a self-hosted Kroki to keep it private.
Development
Requires Node.js 22+ and pnpm (corepack enable).
pnpm install
pnpm lint && pnpm typecheck && pnpm test && pnpm build
Releasing
Bump version in both packages/mcp/package.json and packages/mcp/server.json in a pull request. When it merges to main, the Publish workflow publishes the new version to npm (trusted publishing, with provenance) and to the MCP Registry. Pushes that don't change the version publish nothing.
License
الأسئلة الشائعة
ما هو Archform؟
Render and validate diagrams as code: Mermaid, PlantUML, C4, Graphviz, D2 and more.
كيف أثبّت Archform؟
يعمل على جهازك. في Claude Code: claude mcp add archform -e 'KROKI_URL=<KROKI_URL>' -- npx -y @archform/mcp@0.2.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Archform إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل Archform مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Archform؟
ينشره himanshu-mamgain. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.