archon-mcp

v6.9.0
archon-mcp Checked 8 hours ago Published 19 days ago

MCP server for generating C4 architecture diagrams.

MCP server for generating AND iteratively editing C4 architecture diagrams via AI agents. Works with Cursor AI, Claude Desktop, Windsurf, and any MCP-compatible client. It also ships a browser-worker build used by the Archon Forge plugin to drive the same toolset directly from the browser. Generates JSON files loadable in the Archon visual architecture tool. Add to your Cursor MCP settings (Cursor Settings → MCP → Add New MCP Server):

Summary extracted from the README.

archon-mcp

MCP server for generating AND iteratively editing C4 architecture diagrams via AI agents. Works with Cursor AI, Claude Desktop, Windsurf, and any MCP-compatible client. It also ships a browser-worker build used by the Archon Forge plugin to drive the same toolset directly from the browser.

Generates JSON files loadable in the Archon visual architecture tool.

Highlights

  • Full CRUD tool surface (add_*, update_*, delete_*, move_elements, clear_deploy_metadata, get_elements, get_project_meta).
  • Relationship rules R1–R4 enforced by the tools: a call into an App container of another system is drawn to that system with the endpoints of that call, missing endpoints go to the container's Manual API; a call into a DB / Bus carries the schemas / topics (with role) it uses; one relationship per source and target system or DB / Bus container, with a per-use-case description list. validate_relationships checks and fixes existing projects. See Relationship Rules.
  • load_project (stdio) — counterpart to save_project. Lets agents edit existing architecture.json files iteratively (load → mutate → save).
  • Two auto-layout engines — compact-grid and orthogonal-flow (the same engine as ArchON's «Orthogonal flow · Beta»).
  • Browser-worker build at dist-browser/worker.js exposing the same tools (minus setup_* / load_project / save_project) plus load_project_state and get_operations for in-browser plugins.
  • Operation log — every state-mutating tool emits a typed McpOperation that the Forge plugin replays on the host's Redux project (additive, undo-able).
  • Agent Skill bundle at skill/archon-mcp/ shipped on npm install — SKILL.md, REFERENCE.md (auto-generated), COOKBOOK.md, WORKFLOWS.md, PROMPTS.md, ARCHITECTURE.md, schemas/, examples/. Install into a project with the MCP tool setup_archon_skill (or npx archon-mcp --setup-skill).
  • See COOKBOOK.md for the 12 canonical user-prompt → tool-call sequences.

Features

  • 52 tools — 50 over stdio (Cursor / Claude), 47 callable in the browser worker (Forge); see Tools
  • Iterative editing — load an existing architecture.json, change only what was asked, save it back
  • Relationship rules — cross-system calls go through System Ingress, carry their endpoints and merge into one relationship per source and system
  • Stateful — project accumulates across tool calls within a session
  • Smart Visibility — parent systems are automatically included in integration layers if their containers are visible
  • Custom Anchor Points (Ports) — add specific connection points to elements for cleaner diagrams with many relationships
  • Auto Layout — automatic positioning of all elements with relationship routing and overlap prevention
  • Deploy Targets — the Deploy → Infrastructure card: target (ns: / vm: / pod:), instance count, CPU, RAM and HDD in GB, validated by set_deploy_targets
  • Deploy Metadata — per-version ops metadata (Admin/Monitor/Logs/Config/Infra) for systems, version-independent for containers
  • Markdown Support — descriptions and deploy metadata fields accept Markdown formatting
  • Name-based references — all element references use names (auto-resolved to UUIDs)
  • Full C4 model — systems, containers (App/DB/Bus), users, relationships with technologies and endpoints
  • Integration layers — multiple diagram views showing different subsets of the architecture
  • Business scenarios — step-by-step data flow narratives with per-step annotations
  • Visual groups — infrastructure boundaries (Kubernetes, VPC, DMZ)
  • Built-in quality rules — tool descriptions guide AI agents to produce comprehensive architectures
  • One-command Cursor Rule setup — setup_cursor_rule installs quality requirements into any project

Quick Start

Cursor AI

Add to your Cursor MCP settings (Cursor Settings → MCP → Add New MCP Server):

  • Name: archon-mcp
  • Type: command
  • Command: npx -y archon-mcp

Or add a .cursor/mcp.json file to your project root:

{
  "mcpServers": {
    "archon-mcp": {
      "command": "npx",
      "args": ["-y", "archon-mcp"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "archon-mcp": {
      "command": "npx",
      "args": ["-y", "archon-mcp"]
    }
  }
}

Windsurf / Other MCP Clients

Same pattern — configure the MCP server with command npx and args ["-y", "archon-mcp"].

After configuring the MCP server, ask your AI agent:

"Run setup_cursor_rule to install the Archon quality rules"

This creates .cursor/rules/archon.mdc in your project with:

  • Minimum element counts (6-12 systems, 40+ relationships, 3-5 business scenarios)
  • Thinking checklist (databases, messaging, security, observability, edge)
  • Tool workflow order
  • Color scheme and detail requirements

Without this rule, agents may produce minimal architectures. With it, they generate production-grade diagrams.

Usage

Once configured, just ask your AI agent:

"Create an architecture diagram for an e-commerce platform"

"Design a banking infrastructure with microservices"

"Draw a C4 diagram for a real-time messaging system"

The agent will call the tools in sequence and produce a JSON file you can load in Archon.

Tools

52 tools in total: 45 work in both transports, 5 only over stdio (Cursor / Claude: file system access and create_project), 2 only in the browser worker (Forge plumbing). create_project is declared for both transports in the registry but has no browser handler — the browser worker always edits the host's current project. Forge additionally hides auto_layout, create_project, load_project_state and get_operations from its model, so the model there sees 44. Full generated reference: skill/archon-mcp/REFERENCE.md.

Setup and project lifecycle

Tool Where Description
setup_cursor_rule stdio Install Archon quality rules into .cursor/rules/archon.mdc
setup_archon_skill stdio Install the Agent Skill bundle into .agents/skills/archon-mcp/
create_project stdio Initialize a new architecture project
load_project stdio Load an existing architecture.json for iterative editing
save_project stdio Save the project to a JSON file
load_project_state browser Hydrate the worker from the host's current project (Forge)
get_operations browser Drain the operation log for the host to replay (Forge)

Read

Tool Description
get_project_info Project summary and element counts
get_project_meta Project-level meta (name, colors, layer / scenario order) plus element counts, as JSON
get_elements Full element objects filtered by kind / names / ids — read before every partial update

Create

Tool Description
add_systems Systems (bounded contexts)
add_containers Containers: App, DB or Bus
add_users Actors / personas
add_relationships Connections between elements; applies the relationship rules
add_groups Visual boundaries (K8s, VPC, DMZ)
add_layer_groups Folders for integration layers
add_integration_layers Diagram views with element visibility
add_scenario_groups Folders for business scenarios
add_business_scenarios Step-by-step data flow narratives
add_scenario_steps Append steps to an existing scenario
add_scenario_step_comments Per-step element and relationship comments
add_ports Custom anchor points (ports) on elements
set_deploy_metadata Ops metadata (Admin / Monitor / Logs / Config / Infra) on systems and containers
set_deploy_targets Deploy → Infrastructure card: target, count, CPU, RAM, HDD, URL; merged by target name

Update

Tool Description
update_project_meta Project name and custom colors
update_system Partial update of a system
update_container Partial update of a container, including API capabilities (capabilities) and schemas / topics ([] clears the list, null or a non-list is ignored with a warning; dropped schemas / topics are also trimmed from relationships into the container)
update_user Partial update of an actor
update_relationship Partial update of a relationship; re-targeting, endpoint changes and DB / Bus schemas / topics changes go through the relationship rules
update_group Partial update of a group
update_integration_layer Layer settings; showElements / hideElements for incremental visibility
update_layer_group Rename a layer folder
update_scenario_group Rename a scenario folder
update_business_scenario Partial update of a scenario
update_scenario_step Rename / reorder / comment a scenario step
update_scenario_step_elements Include / exclude elements and relationships in a step, mark response relationships
update_ports Change attributes of existing ports (e.g. side)
move_elements Batch position update, one operation per element
clear_deploy_metadata Remove ops metadata fields from a system or container
validate_relationships Check relationships against R1–R4; fix: true rewrites and merges violations
validate_business_scenarios Per-step review against S1–S4 (shown relationships, missing systems and comments); fix: true adds missing parent systems

Delete (cascading)

Tool Description
delete_systems Systems with their containers, sidecars, relationships, scenario / layer references and ports
delete_containers Containers; trims their endpoints from relationships into their system
delete_users Actors with their relationships and scenario / layer references
delete_relationships By id or {from, to}; {from, to: container} behind a merged relationship removes only that container's calls
delete_groups Groups
delete_integration_layers Layers
delete_layer_groups Layer folders
delete_scenario_groups Scenario folders
delete_business_scenarios Scenarios
delete_scenario_steps Scenario steps
delete_scenario_step_comments Step comments
delete_ports Ports; relationships rebind to the default port on the same side

Layout

Tool Description
auto_layout Lay out ONE integration layer (layer): positions, overlaps, relationship routes square at the ports (compact-grid / orthogonal-flow)

Workflow

 1. create_project("My Architecture")
 2. add_systems([...])                   — 6-12 systems
 3. add_containers([...])                — 3-6 per system (App/DB/Bus)
 4. add_users([...])                     — 3-5 actors
 5. add_relationships([...])             — 40+ connections (cross-system calls: endpoints + description; DB: schemas; Bus: topics with role)
 6. add_groups([...])                    — infrastructure boundaries
 7. set_deploy_targets([...])            — target, count, CPU, RAM, HDD per system & container
    set_deploy_metadata([...])           — ops metadata on systems & containers
 8. add_layer_groups([...])              — layer folders
 9. add_integration_layers([...])        — 3-5 views (one isDefault:true)
10. add_scenario_groups([...])           — scenario folders
11. add_business_scenarios([...])        — 3-5 step-by-step flows, comments inside every step
12. add_scenario_steps([...])            — (optional) append steps
13. update_scenario_step_elements([...]) — exclude the [auto] relationships a step does not perform
14. add_scenario_step_comments([...])    — fill the comments the result reports missing
    validate_business_scenarios({})      — review all steps (S1–S4)
15. add_ports([...])                     — anchor points (optional)
16. auto_layout({ layer })               — REQUIRED before save, once per integration layer
17. save_project("architecture.json")

Editing an existing project

1. load_project("architecture.json")     — never create_project over an existing file
2. get_elements / get_project_meta       — read current values before partial updates
3. add_* / update_* / delete_* / move_elements — only what the user asked for
4. validate_relationships()              — optional: report rule violations in older files
5. auto_layout({ layer })                — only if the user asked to re-layout that layer
6. save_project("architecture.json")

Relationship Rules (R1–R4)

add_relationships and update_relationship run every relationship through a rule pipeline before writing it. The result lists each rewrite under Rules applied: ([R1], [R2], [R3], [R4]) and each refused item under Rejected — fix and resend these items:.

Rule What the tool does
R2 — cross-system calls target the system A call from a container, user or system into an App container of another system is stored as a relationship to that system (System Ingress). Each endpoint keeps its container in containerId.
R1 — ingress API capabilities Such a call needs endpoints chosen for this exact call (method + path) and a description of the use case, otherwise it is rejected. Endpoints the container does not expose yet are added to its Manual capability.
R4 — DB / Bus calls carry their data A relationship into a DB needs schemas, one into a Bus needs topics as { name, role } (producer / consumer / both) — only what this call uses — plus a description; otherwise it is rejected (a plain-string topic or a topic without role too). Schemas / topics the container lacks are added to it. Applies inside one system too; a DB / Bus of another system stays the direct target. topics on a DB call, schemas on a Bus call and endpoints on either are ignored with a warning.
R3 — one relationship per source and target From one source there is one relationship per target system and one per DB / Bus container. Further calls are merged into it: endpoints / schemas / topics are unioned (a topic with different roles becomes both), technologies are unioned, and the description becomes a list with one line per use case.

Out of scope (stored as sent): relationships between App containers of one system, into users, and into systems without App containers.

add_relationships({ items: [
  { from: "Checkout API", to: "Payments API", description: "Charges the card when the order is placed",
    technology: "REST/HTTPS", endpoints: [{ method: "POST", path: "/v1/charges" }] },
  { from: "Checkout API", to: "Invoices API", description: "Creates the invoice for a paid order",
    technology: "REST/HTTPS", endpoints: [{ method: "POST", path: "/v1/invoices" }] }
]})
// Both containers live in system "Billing" → one relationship "Checkout API → Billing" with both endpoints
// and the description (built by the tool, one line per use case):
// - Charges the card when the order is placed — POST /v1/charges (Payments API)
// - Creates the invoice for a paid order — POST /v1/invoices (Invoices API)

add_relationships({ items: [
  { from: "Order Service", to: "Order DB", description: "Stores the new order", technology: "SQL",
    schemas: ["orders"] },
  { from: "Order Service", to: "Kafka", description: "Publishes the new order", technology: "Kafka",
    topics: [{ name: "order.created", role: "producer" }] }
]})
// A second call into Order DB from Order Service merges into the same relationship:
// - Stores the new order — schema orders
// - Records the payment status — schema payments

Related behavior:

  • To target the system directly, pass it as to and add containerName to each endpoint.
  • Scenario tools resolve { from: "Checkout API", to: "Payments API" } to the merged relationship.
  • delete_relationships { from, to: <container> } removes only that container's calls; the relationship goes away with its last endpoint.
  • update_relationship { from, to: <container> } edits only that container's calls; newFrom / newTo are rejected in that mode — move the whole relationship by id.
  • Older projects are not changed on load. validate_relationships() reports violations; validate_relationships({ fix: true }) rewrites and merges them and moves scenario and layer references. Relationships without endpoints (or DB / Bus relationships without schemas / topics with role) stay in the report until the agent supplies them.
  • A description from before the list format that holds several lines (one per use case, as R3 used to join them) becomes one list line per old line, without items, on the next merge.

Relationship Colors

Relationships get archon-slate by default. A color you pass is resolved in this order: palette token (archon-blue, archon-indigo, archon-purple, archon-emerald, archon-yellow, archon-amber, archon-rose, archon-slate) or color name → a custom color the project already has → exact palette hex → the closest palette color of the same hue family → a new custom color (added to customColors). The result lists every rewrite under Colors:. Palette tokens are theme-adaptive in ArchON; custom hexes are not.

Scenario Step Rules (S1–S4)

Applied and reported by add_business_scenarios, add_scenario_steps, update_scenario_step_elements, add_scenario_step_comments and validate_business_scenarios:

  • S1 — a container in a step brings its system into the step; the tool adds it. A cross-system call is stored as a relationship to the system (R2), so without the system the call would not join the step. A system stays in a step while its containers do.
  • S2 — if A and B are both step elements, every relationship between them is in the step automatically, without relationships. relationships is only for a relationship with an end outside the step.
  • S3 — an auto-included relationship the step does not perform goes to the step's excludedRelationships (update_scenario_step_elements { excludeRelationships }); other steps are not affected.
  • S4 — every step element and every relationship the step shows gets a comment; it is mandatory when the description could suggest another intent (merged relationship with several use cases, App with several endpoints, DB with several schemas, Bus with several topics). Scenario-level comments are ignored.

Each of these tools returns a per-step review: the relationships the step shows ([auto] / [listed], response), exclusions, relationships with NO COMMENT and why they are ambiguous, elements without comment, comments on things outside the step and unresolved names. get_elements({ kind: "step" }) adds shownRelationships to every step. validate_relationships({ fix: true }) also adds the system a rewritten call now points to.

Markdown Support

All description fields on Systems, Containers, Users, Groups, Relationships, and Business Scenarios support Markdown formatting.

All deploy metadata fields (administration, monitoring, logging, configuration, infrastructure) also support Markdown.

Deploy Targets (Deploy → Infrastructure)

The Infrastructure card of a system or container (deploymentTargets). Fill it with set_deploy_targets; targets are merged by name, fields you don't pass are preserved.

Field Meaning Format
target Where the element is deployed <kind>: <name> — ns: <namespace>, vm: <virtual machine>, pod: <pod>, or another kind (host:, cluster:, sts: …)
count Instances Whole number ≥ 1, default 1; containers only
cpu CPU cores Number
ram Memory, GB GB as a number: 16 GB → 16, 256 MB → 0.256, 128 MB 512 KB → 0.128 (1 GB = 1000 MB; only the first 3 decimals are kept, no rounding)
hdd SSD / HDD / disk, GB Same as ram
url Link Usually left out

Values are numbers without units — the canvas badge sums them × count. DB and Bus containers may hold several targets; systems and App containers hold one. removeTargets drops targets by name, replace: true replaces the list.

set_deploy_targets({ items: [
  { name: "User Service", targets: [{ target: "ns: user-svc" }] },
  { name: "API Server",   targets: [{ target: "pod: api-server", count: 3, cpu: 2, ram: 0.256, hdd: 16 }] },
  { name: "PostgreSQL",   targets: [{ target: "vm: pg-primary", cpu: 8, ram: 32, hdd: 500 },
                                    { target: "vm: pg-replica", cpu: 8, ram: 32, hdd: 500 }] }
]})

Deploy Metadata (Admin / Monitor / Logs / Config / Infra)

infrastructure holds notes on what is special about the infrastructure (HA, autoscaling, storage class, network policies, backups); the resource values go to set_deploy_targets.

Operational metadata has different storage depending on element type:

Element Storage Version behavior
System versionData[version] VERSION-SPECIFIC — each system version has its own ops links
Container / DB / Bus deployMetadata VERSION-INDEPENDENT — stored directly on the element

Use set_deploy_metadata to set these in bulk:

set_deploy_metadata({ items: [
  // System — specify version (defaults to activeVersion or "latest")
  { name: "User Service", version: "2.0.0",
    administration: "[Admin Panel](https://admin.example.com)",
    monitoring: "Grafana dashboard: `user-service-prod`",
    infrastructure: "HPA 2–6 pods on CPU 70%, PodDisruptionBudget `minAvailable: 1`" },

  // Container — no version needed (version-independent)
  { name: "API Server",
    monitoring: "Datadog APM: `api-server`",
    logging: "ELK: `api-server-*` index pattern" }
]})

Auto Layout

The auto_layout tool must be called after all elements are added and before save_project — once per integration layer: auto_layout({ layer: "<name>" }). Each call lays out ONE layer: positions go into that layer's placements (layerPlacements), bends and labels into that layer's routes (layerRoutes), and other layers keep their arrangement. Ports are shared by all layers, so where a moved port broke a route's ends on another layer, only those ends are squared there. With layers in the project, a call without layer is an error; a project without layers is laid out as a whole. Every route leaves and enters its ports at a right angle, with the first and last segments outside the element, so the line start and the arrow head are never drawn inside a box. It:

  1. Arranges containers in a grid within each system (sorted: App → DB → Bus)
  2. Orders systems using relationship topology (BFS from source systems)
  3. Keeps grouped systems clustered within their group boundary
  4. Places users at the top of the diagram
  5. Calculates system and group bounds from child elements
  6. Reassigns relationship port sides based on final positions
  7. Adds control points to relationships to reduce line crossings

Parameters:

  • layer — integration layer name or id; required when the project has layers (Forge defaults to the chat's current layer)
  • engine (default: "compact-grid") — "compact-grid" is the algorithm described above; "orthogonal-flow" lays systems out left to right along the relationships with right-angled routes kept apart (slower; the same engine as ArchON's «Orthogonal flow · Beta»)
  • maxColumnsPerSystem (default: 3) — container columns per system (compact-grid only)
  • routeRelationships (default: true) — whether to add crossing-avoidance control points (compact-grid only)

In the Forge browser worker auto_layout does not compute anything: it asks ArchON to lay out the named layer (or the chat's current layer) after the batch, as one undoable step.

Anchor Points (Ports)

Use add_ports when an element has many connections to avoid overlapping lines.

  • left / right ports: work from TOP to BOTTOM (y-axis)
  • top / bottom ports: work from LEFT to RIGHT (x-axis)
  • In add_relationships, use fromSide, toSide, fromPortId, toPortId to connect to specific ports.

Container Types

Type Description Default Color
App Application, microservice, API, worker #6366f1
DB Database (PostgreSQL, Redis, MongoDB...) #10b981
Bus Event bus / Message queue (Kafka, RabbitMQ...) #a855f7

Example

User: "Create a simple web app architecture"

Agent calls:
  create_project({ name: "Web App" })
  add_systems({ items: [
    { name: "Frontend", description: "React SPA" },
    { name: "Backend", description: "API services" },
    { name: "Data", description: "Storage layer" }
  ]})
  add_containers({ items: [
    { name: "React App", systemName: "Frontend", type: "App", technologies: ["React", "TypeScript"] },
    { name: "API Server", systemName: "Backend", type: "App", technologies: ["Node.js", "Express"] },
    { name: "PostgreSQL", systemName: "Data", type: "DB", schemas: ["users", "posts"] },
    { name: "Redis Cache", systemName: "Data", type: "DB", technologies: ["Redis"], schemas: ["sessions"] }
  ]})
  add_users({ items: [{ name: "User", description: "End user" }] })
  add_relationships({ items: [
    // Cross-system calls into App containers need endpoints + a use-case description (stored as User → Frontend, React App → Backend)
    { from: "User", to: "React App", description: "Opens the web app", technology: "HTTPS",
      endpoints: [{ method: "GET", path: "/" }] },
    { from: "React App", to: "API Server", description: "Loads and publishes posts", technology: "REST",
      endpoints: [{ method: "GET", path: "/api/posts" }, { method: "POST", path: "/api/posts" }] },
    // DB calls carry the schemas this call uses
    { from: "API Server", to: "PostgreSQL", description: "Reads and writes posts", technology: "SQL",
      schemas: ["posts"] },
    { from: "API Server", to: "Redis Cache", description: "Caches user sessions", technology: "Redis Protocol",
      schemas: ["sessions"] }
  ]})
  set_deploy_metadata({ items: [
    { name: "API Server", monitoring: "Datadog APM", logging: "ELK stack" },
    { name: "PostgreSQL", infrastructure: "RDS `db.r6g.xlarge`, Multi-AZ" }
  ]})
  add_integration_layers({ items: [{ name: "Full View", isDefault: true }] })
  auto_layout({ layer: "Full View" })
  save_project({ fileName: "web-app.json" })

Loading in Archon

  1. Run the Archon app
  2. Click Load Project in the toolbar
  3. Select the generated .json file
  4. Explore the architecture with layers, scenarios, and element details

Manual Cursor Rule Setup

If you prefer to set up the rule manually instead of using setup_cursor_rule, create .cursor/rules/archon.mdc:

---
description: Archon C4 architecture generation via MCP tools
alwaysApply: true
---

# Archon MCP — Architecture Generation Rules

When asked to create architecture diagrams, use archon-mcp tools.

## Requirements
- 6-12 systems, 3-6 containers per system, 3-5 users, 40+ relationships
- 3-5 integration layers (one isDefault:true), 3-5 business scenarios
- Container types: ONLY "App", "DB", "Bus"
- Every relationship: fill description AND technology; calls into another system's App container also need endpoints
- Every DB: fill schemas. Every Bus: fill topics
- Every relationship into a DB: the schemas this call uses. Into a Bus: the topics as { name, role } (producer / consumer / both)
- Use set_deploy_targets on every system (`ns: …`) and container/DB/Bus (`pod: …` / `vm: …`, count, CPU, RAM / HDD in GB)
- Use set_deploy_metadata on every system (per version) and container/DB/Bus
- All descriptions and deploy metadata fields support Markdown
- Think about: security, observability, messaging, edge, data storage

## Relationship rules (enforced by the tools)
- A call into an App container of ANOTHER system is stored as a relationship to that system (System Ingress). Pass the container as `to` (or the system plus `containerName` on each endpoint), the endpoints this exact call uses (method + path) and a description of the use case — otherwise the item is rejected.
- Endpoints the container does not expose yet are added to its Manual API capability automatically.
- A call into a DB needs `schemas`, into a Bus needs `topics` as { name, role } — only what this call uses, not all of them — and a description; missing schemas / topics are added to the container. Applies inside one system too; DB / Bus are always the direct target.
- One relationship per source and target system, and per source and DB / Bus container: more calls are merged into it, and the tool rewrites the description as a list, one line per use case (`- Charges the card — POST /v1/charges (Payments API)`).
- Calls between App containers of one system, users as targets and systems without App containers are stored as sent.
- Old files: run `validate_relationships` (report) and `validate_relationships` with `fix: true` to rewrite and merge.

## Deploy Metadata
- Systems: VERSION-SPECIFIC → stored in versionData[version]
- Containers/DB/Bus: VERSION-INDEPENDENT → stored in deployMetadata
- infrastructure = notes on infrastructure specifics; target / count / CPU / RAM / HDD → set_deploy_targets

## Ports (Anchor Points)
Use `add_ports` when an element has many connections.
- `left` / `right` ports: TOP to BOTTOM
- `top` / `bottom` ports: LEFT to RIGHT
- Use `fromSide`, `toSide`, `fromPortId`, `toPortId` in `add_relationships`.

Development

git clone https://github.com/alexfromgithub/archon-mcp.git
cd archon-mcp
npm install
npm test                # node:test suites in test/ (tool selection, layer targeting, relationship rules)
npm run build           # skill bundle + stdio (obfuscated) + browser worker
npm run build:browser   # only dist-browser/worker.js (consumed by Archon Forge)
npm run skill:check     # fails if skill/archon-mcp/ is out of sync with src/registry.ts
npm start

skill/archon-mcp/REFERENCE.md is generated from src/registry.ts (and the rule catalog in src/rules/catalog.ts) by npm run build:skill — do not edit it by hand.

License

MIT