ArchLang is an MCP server published by io.github.ChanMeng666, hosted at mcp.archlang.uk. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 13 tools, including compile, describe, lint, validate, score.
Floor plans as code: compile, lint and repair ArchLang (.arch) floor plans to SVG, DXF and PDF.
1 connections through 5 shared values. Tap any node.
Compile ArchLang `.arch` source (or a Plan-JSON object) to an SVG floor plan, or with `format` to a plain-text ASCII plan ("txt"), Plan JSON ("json") or an image ("png"). Format "json" returns the plan as an object, with `schema` naming its JSON Schema; passed back as `plan_json` it compiles to the same drawing, unless the plan uses a part of the language Plan JSON does not carry (sheet tables, styles, circular rooms, roofs, storeys, `place`, accessibility metadata). Returns the output plus diagnostics; a diagnostic usually carries a byte span with line/col and an E_/W_ code, and often a fix, sometimes one the `fix` tool can apply. Errors come back as data, never as exceptions: read `diagnostics` and correct the source. A multi-storey plan (`level <n> { … }`) returns the lowest storey in `output` and every storey in `pages[]` ({ level, name, output }); pass `level` to render just one. format "png" is unavailable on the hosted server, which has no image renderer: use format "svg", or GET /svg/<payload> on the hosted server for an image URL.
| Parameter | Type | Description |
|---|---|---|
| level | integer | Render only this storey of a multi-storey plan. An undeclared level is an error, not a guess. |
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| width | integer | png only (any other format refuses it): the image width in pixels, clamped to 256-4096, and narrower for a tall plan so neither side exceeds 4096; default 1600. |
| format | string | svg (default), txt (zero-dependency ASCII), json (Plan JSON, the shape `plan_json` takes) or png (an image; needs the optional renderer). |
| source | string | ArchLang source (a `plan "…" { … }`). Provide this OR plan_json. |
| overlay | string | Draw an opt-in circulation overlay (SVG only). |
| plan_json | object | Plan JSON (RPLAN shape) as an alternative to `source`; converted to .arch then compiled. |
| accessible | boolean | Emit <title>/<desc>/role/aria accessibility metadata (SVG only). |
{
"name": "compile",
"title": "Compile a floor plan to a drawing",
"description": "Compile ArchLang `.arch` source (or a Plan-JSON object) to an SVG floor plan, or with `format` to a plain-text ASCII plan (\"txt\"), Plan JSON (\"json\") or an image (\"png\"). Format \"json\" returns the plan as an object, with `schema` naming its JSON Schema; passed back as `plan_json` it compiles to the same drawing, unless the plan uses a part of the language Plan JSON does not carry (sheet tables, styles, circular rooms, roofs, storeys, `place`, accessibility metadata). Returns the output plus diagnostics; a diagnostic usually carries a byte span with line/col and an E_/W_ code, and often a fix, sometimes one the `fix` tool can apply. Errors come back as data, never as exceptions: read `diagnostics` and correct the source. A multi-storey plan (`level <n> { … }`) returns the lowest storey in `output` and every storey in `pages[]` ({ level, name, output }); pass `level` to render just one. format \"png\" is unavailable on the hosted server, which has no image renderer: use format \"svg\", or GET /svg/<payload> on the hosted server for an image URL.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"level": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Render only this storey of a multi-storey plan. An undeclared level is an error, not a guess."
},
"width": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "png only (any other format refuses it): the image width in pixels, clamped to 256-4096, and narrower for a tall plan so neither side exceeds 4096; default 1600."
},
"format": {
"enum": [
"svg",
"txt",
"json",
"png"
],
"type": "string",
"description": "svg (default), txt (zero-dependency ASCII), json (Plan JSON, the shape `plan_json` takes) or png (an image; needs the optional renderer)."
},
"source": {
"type": "string",
"description": "ArchLang source (a `plan \"…\" { … }`). Provide this OR plan_json."
},
"overlay": {
"enum": [
"circulation"
],
"type": "string",
"description": "Draw an opt-in circulation overlay (SVG only)."
},
"plan_json": {
"type": "object",
"description": "Plan JSON (RPLAN shape) as an alternative to `source`; converted to .arch then compiled.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"accessible": {
"type": "boolean",
"description": "Emit <title>/<desc>/role/aria accessibility metadata (SVG only)."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Report a plan's facts without rendering, so you can check it against the brief without looking at an image. Returns rooms (`area_m2`, measured on the wall centrelines; `net_area_m2`, the floor no wall stands on, absent when it cannot be computed exactly; bbox, adjacency, use, and the exact shape: `floor_polygon` for a `room polygon`, `floor_circle` for a `room circle`, whose area is exactly πR²), doors (what each connects), windows, circulation (walk distance, bottleneck width, detour), zones, storeys (`levels[i]` carries the same facts per floor) with the shafts that join them and which storeys stay reachable (`vertical`), the drawing extent (`bbox`, `bbox_outer`), `freedom` (which positions are hand-authored and which are derived), and totals (`floor_area_m2` on centrelines, `net_floor_area_m2` beside it, absent when any room's net area is).
| Parameter | Type | Description |
|---|---|---|
| source * | string | ArchLang source. |
{
"name": "describe",
"title": "Describe a plan (facts, no render)",
"description": "Report a plan's facts without rendering, so you can check it against the brief without looking at an image. Returns rooms (`area_m2`, measured on the wall centrelines; `net_area_m2`, the floor no wall stands on, absent when it cannot be computed exactly; bbox, adjacency, use, and the exact shape: `floor_polygon` for a `room polygon`, `floor_circle` for a `room circle`, whose area is exactly πR²), doors (what each connects), windows, circulation (walk distance, bottleneck width, detour), zones, storeys (`levels[i]` carries the same facts per floor) with the shafts that join them and which storeys stay reachable (`vertical`), the drawing extent (`bbox`, `bbox_outer`), `freedom` (which positions are hand-authored and which are derived), and totals (`floor_area_m2` on centrelines, `net_floor_area_m2` beside it, absent when any room's net area is).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"source": {
"type": "string",
"description": "ArchLang source."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List advisory architectural-soundness warnings (`W_*` codes) as data: unreachable room, windowless bedroom, too-narrow door, blocked doorway, furniture through a wall, circuitous path, and more. `profile` selects a ruleset ("residential-basic", "accessibility-advisory", …).
| Parameter | Type | Description |
|---|---|---|
| source * | string | ArchLang source. |
| profile | string | Advisory ruleset name (default: the built-in ruleset). |
{
"name": "lint",
"title": "Lint architectural soundness",
"description": "List advisory architectural-soundness warnings (`W_*` codes) as data: unreachable room, windowless bedroom, too-narrow door, blocked doorway, furniture through a wall, circuitous path, and more. `profile` selects a ruleset (\"residential-basic\", \"accessibility-advisory\", …).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"source": {
"type": "string",
"description": "ArchLang source."
},
"profile": {
"type": "string",
"description": "Advisory ruleset name (default: the built-in ruleset)."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Check a plan in one pass without returning a drawing (parse, resolve and lint): the gate a plan passes before it ships. `strict:true` makes advisory warnings fail too. Optional `graph` checks the plan's interior-door adjacency against an intended room graph (`{ room: [neighbours] }`); a mismatch fails. Optional `intent` (a brief's expectations, shaped as the `archlang://intent-schema` resource describes) is checked against the plan: a missed gating assertion (room count, existence, area, total area, windows) fails, while adjacency and reachability are advisory and only score. `profile` lints under a named ruleset as well, and its warnings are the ones reported; `taste` scores the plan under a taste profile, which never fails it. `next` is the one item to fix first, chosen in a fixed order (an error, a compile warning, a validity warning, a drafting warning, the brief and the graph, a profile-only warning, then the lowest taste score), or null when nothing is left; a broken `soft` keep is not weighed here yet, so where the CLI's `validate` names it this returns a later item, or null. A malformed intent returns `{ ok:false, intentErrors }` and an unknown profile `{ ok:false, error }` as data, never an exception. Returns { ok, diagnostics, graph?, intent?, next }.
| Parameter | Type | Description |
|---|---|---|
| graph | object | Intended interior-door adjacency: { room: [neighbour rooms] }. |
| taste | string | Taste profile that ranks `next`'s taste tier (for example "generic"); it never fails the plan. |
| intent | object | A brief's intent JSON (shape: the archlang://intent-schema resource); gating assertions fail. |
| source * | string | ArchLang source. |
| strict | boolean | Advisory warnings fail too. |
| profile | string | Advisory lint ruleset to report under ("residential-basic", "accessibility-advisory", …); default: the built-in ruleset. |
{
"name": "validate",
"title": "Validate (parse + resolve + lint)",
"description": "Check a plan in one pass without returning a drawing (parse, resolve and lint): the gate a plan passes before it ships. `strict:true` makes advisory warnings fail too. Optional `graph` checks the plan's interior-door adjacency against an intended room graph (`{ room: [neighbours] }`); a mismatch fails. Optional `intent` (a brief's expectations, shaped as the `archlang://intent-schema` resource describes) is checked against the plan: a missed gating assertion (room count, existence, area, total area, windows) fails, while adjacency and reachability are advisory and only score. `profile` lints under a named ruleset as well, and its warnings are the ones reported; `taste` scores the plan under a taste profile, which never fails it. `next` is the one item to fix first, chosen in a fixed order (an error, a compile warning, a validity warning, a drafting warning, the brief and the graph, a profile-only warning, then the lowest taste score), or null when nothing is left; a broken `soft` keep is not weighed here yet, so where the CLI's `validate` names it this returns a later item, or null. A malformed intent returns `{ ok:false, intentErrors }` and an unknown profile `{ ok:false, error }` as data, never an exception. Returns { ok, diagnostics, graph?, intent?, next }.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"graph": {
"type": "object",
"description": "Intended interior-door adjacency: { room: [neighbour rooms] }.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"taste": {
"type": "string",
"description": "Taste profile that ranks `next`'s taste tier (for example \"generic\"); it never fails the plan."
},
"intent": {
"type": "object",
"description": "A brief's intent JSON (shape: the archlang://intent-schema resource); gating assertions fail.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"source": {
"type": "string",
"description": "ArchLang source."
},
"strict": {
"type": "boolean",
"description": "Advisory warnings fail too."
},
"profile": {
"type": "string",
"description": "Advisory lint ruleset to report under (\"residential-basic\", \"accessibility-advisory\", …); default: the built-in ruleset."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Measure how much of a brief's intent JSON a plan satisfies, without gating. Returns { ok, satisfied, total, score, subscores, violations }, where `score` is satisfied/total in [0,1] (an empty intent scores 1); call it across edits to watch a plan approach the brief. The intent's shape is the `archlang://intent-schema` resource. A malformed intent returns `{ ok:false, intentErrors }` as data, never an exception.
| Parameter | Type | Description |
|---|---|---|
| brief * | object | A brief's intent JSON (shape: the archlang://intent-schema resource) to measure against. |
| source * | string | ArchLang source. |
{
"name": "score",
"title": "Score a plan against a brief (intent meter)",
"description": "Measure how much of a brief's intent JSON a plan satisfies, without gating. Returns { ok, satisfied, total, score, subscores, violations }, where `score` is satisfied/total in [0,1] (an empty intent scores 1); call it across edits to watch a plan approach the brief. The intent's shape is the `archlang://intent-schema` resource. A malformed intent returns `{ ok:false, intentErrors }` as data, never an exception.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source",
"brief"
],
"properties": {
"brief": {
"type": "object",
"description": "A brief's intent JSON (shape: the archlang://intent-schema resource) to measure against.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"source": {
"type": "string",
"description": "ArchLang source."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Correct furniture placement and return the corrected `.arch` source with a change log. It pushes furniture out of walls, doorways and door swings, separates overlapping pieces, moves fixtures that sit in the wrong room, and snaps floating pieces to walls. A piece it may not rewrite is listed in `unresolved` with the reason. It never adds doors or windows (that is a design choice); use `suggest` for those.
| Parameter | Type | Description |
|---|---|---|
| source * | string | ArchLang source to correct. |
{
"name": "repair",
"title": "Repair furniture placement",
"description": "Correct furniture placement and return the corrected `.arch` source with a change log. It pushes furniture out of walls, doorways and door swings, separates overlapping pieces, moves fixtures that sit in the wrong room, and snaps floating pieces to walls. A piece it may not rewrite is listed in `unresolved` with the reason. It never adds doors or windows (that is a design choice); use `suggest` for those.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"source": {
"type": "string",
"description": "ArchLang source to correct."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Apply the machine-applicable fixes attached to a plan's compile diagnostics and return the edited source. It corrects source-level faults (an opening off its wall becomes the attachment form, an out-of-range position is clamped, …); furniture geometry is `repair`'s job. It runs at most 4 passes and rolls back a pass that raises the error count. `unsafe:true` also applies `maybe-incorrect` fixes. Of several alternative fixes on one diagnostic it applies the one `archlang fix` takes. Returns { ok, passes, applied, skipped, source }.
| Parameter | Type | Description |
|---|---|---|
| source * | string | ArchLang source to fix. |
| unsafe | boolean | Also apply `maybe-incorrect` fixes (default: machine-applicable only). |
{
"name": "fix",
"title": "Apply machine-applicable diagnostic fixes",
"description": "Apply the machine-applicable fixes attached to a plan's compile diagnostics and return the edited source. It corrects source-level faults (an opening off its wall becomes the attachment form, an out-of-range position is clamped, …); furniture geometry is `repair`'s job. It runs at most 4 passes and rolls back a pass that raises the error count. `unsafe:true` also applies `maybe-incorrect` fixes. Of several alternative fixes on one diagnostic it applies the one `archlang fix` takes. Returns { ok, passes, applied, skipped, source }.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"source": {
"type": "string",
"description": "ArchLang source to fix."
},
"unsafe": {
"type": "boolean",
"description": "Also apply `maybe-incorrect` fixes (default: machine-applicable only)."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Complete a plan for export by adding what it lacks; run it once `lint` is clean. Two stages. `furnish` puts furniture, by room use, in each rectangular room that holds none, on every storey (a furnished room is never touched, and one that lacks a piece its use requires is named in `unresolved` with the missing pieces, not filled; placement is `against wall` / `in <room> anchor`, never absolute). `sheet` adds the sheet statements the plan lacks (`paper`, `scale`, `dims auto`, `title`, `schedule rooms`, `legend`), choosing the finest standard scale on the smallest sheet that holds the drawing. It fills only what is missing and deletes nothing; `only` runs one stage; `reissue:true` may replace `paper`/`scale` (only those) when the drawing does not fit them. Returns { ok, changed, changes, unresolved, source }; a plan that does not compile comes back untouched with `ok:false`, and every room left empty (its use has no furniture row or is unknown, or furnishing it would raise a new diagnostic) and every sheet statement left out is named in `unresolved` with the reason; a note with `scope` set (`outside-table`) asks nothing of you unless that room should hold furniture.
| Parameter | Type | Description |
|---|---|---|
| only | string | Run only this stage. Default: `furnish`, then `sheet`. |
| source * | string | ArchLang source to finish. |
| reissue | boolean | Allow `paper` and `scale` to be replaced when the drawing does not fit the authored sheet. |
{
"name": "finish",
"title": "Finish the drawing",
"description": "Complete a plan for export by adding what it lacks; run it once `lint` is clean. Two stages. `furnish` puts furniture, by room use, in each rectangular room that holds none, on every storey (a furnished room is never touched, and one that lacks a piece its use requires is named in `unresolved` with the missing pieces, not filled; placement is `against wall` / `in <room> anchor`, never absolute). `sheet` adds the sheet statements the plan lacks (`paper`, `scale`, `dims auto`, `title`, `schedule rooms`, `legend`), choosing the finest standard scale on the smallest sheet that holds the drawing. It fills only what is missing and deletes nothing; `only` runs one stage; `reissue:true` may replace `paper`/`scale` (only those) when the drawing does not fit them. Returns { ok, changed, changes, unresolved, source }; a plan that does not compile comes back untouched with `ok:false`, and every room left empty (its use has no furniture row or is unknown, or furnishing it would raise a new diagnostic) and every sheet statement left out is named in `unresolved` with the reason; a note with `scope` set (`outside-table`) asks nothing of you unless that room should hold furniture.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"only": {
"enum": [
"sheet",
"furnish"
],
"type": "string",
"description": "Run only this stage. Default: `furnish`, then `sheet`."
},
"source": {
"type": "string",
"description": "ArchLang source to finish."
},
"reissue": {
"type": "boolean",
"description": "Allow `paper` and `scale` to be replaced when the drawing does not fit the authored sheet."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Suggest the doors and windows a plan's room graph needs, as data; nothing is applied. For a room with no path back, a building with no entrance, a bath reachable only through a bedroom, or a windowless bedroom, it returns ready-to-paste `door`/`window` statements with a rationale, for you to choose among and insert. Each names its wall by an authored id or a unique wall category, else by absolute `at (x, y)` coordinates. Door candidates avoid furniture in the door's approach; window candidates do not consider furniture. On a plan of `level` blocks each suggestion also carries `level` (its storey) and `insertAt` (the offset of that storey's closing `}`, where its statements go), and no door to the outside is offered on a storey reached only by a stair or lift, nor onto the roof of a storey below.
| Parameter | Type | Description |
|---|---|---|
| source * | string | ArchLang source. |
{
"name": "suggest",
"title": "Suggest topology fixes (advisory)",
"description": "Suggest the doors and windows a plan's room graph needs, as data; nothing is applied. For a room with no path back, a building with no entrance, a bath reachable only through a bedroom, or a windowless bedroom, it returns ready-to-paste `door`/`window` statements with a rationale, for you to choose among and insert. Each names its wall by an authored id or a unique wall category, else by absolute `at (x, y)` coordinates. Door candidates avoid furniture in the door's approach; window candidates do not consider furniture. On a plan of `level` blocks each suggestion also carries `level` (its storey) and `insertAt` (the offset of that storey's closing `}`, where its statements go), and no door to the outside is offered on a storey reached only by a stair or lift, nor onto the roof of a storey below.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"source": {
"type": "string",
"description": "ArchLang source."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List the completion items in scope at a source byte offset: keywords, element names, ids and enum values, the same items an editor's language server offers. For structured or assisted authoring.
| Parameter | Type | Description |
|---|---|---|
| at * | integer | Source byte offset to complete at. |
| source * | string | ArchLang source. |
{
"name": "complete",
"title": "Completions at a source offset",
"description": "List the completion items in scope at a source byte offset: keywords, element names, ids and enum values, the same items an editor's language server offers. For structured or assisted authoring.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source",
"at"
],
"properties": {
"at": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Source byte offset to complete at."
},
"source": {
"type": "string",
"description": "ArchLang source."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Look up an E_/W_ diagnostic code in the catalogue: what it means, why it is raised and how to resolve it, with an example that raises it and, for most codes when the installed core has them, `fixed`, the same example corrected. Returns { ok:true, code, entry: { code, severity, message, cause, fix, example, fixed? } }, the `explain --json` of the CLI; an unknown code returns { ok:false, code }. The code is matched case-insensitively.
| Parameter | Type | Description |
|---|---|---|
| code * | string | A diagnostic code, e.g. E_ROOM_SIZE or W_DOOR_CLEARANCE. |
{
"name": "explain",
"title": "Explain a diagnostic code",
"description": "Look up an E_/W_ diagnostic code in the catalogue: what it means, why it is raised and how to resolve it, with an example that raises it and, for most codes when the installed core has them, `fixed`, the same example corrected. Returns { ok:true, code, entry: { code, severity, message, cause, fix, example, fixed? } }, the `explain --json` of the CLI; an unknown code returns { ok:false, code }. The code is matched case-insensitively.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "A diagnostic code, e.g. E_ROOM_SIZE or W_DOOR_CLEARANCE."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Make two URLs that show a plan in the browser with nothing to install, for handing to a person. `playground` opens it in the hosted editor, rendered; `embed` draws it alone, for an iframe. The plan travels inside the URL, after the `#`, so it is never sent to a server and the URL carries nothing else. A plan that does not compile still gets links, and the page shows its diagnostics; `ok` says whether it compiles, and `errors` counts the errors when it does not. `bytes` is the size of the compressed plan in the URL.
| Parameter | Type | Description |
|---|---|---|
| source * | string | ArchLang source. |
{
"name": "link",
"title": "Share link to the rendered plan",
"description": "Make two URLs that show a plan in the browser with nothing to install, for handing to a person. `playground` opens it in the hosted editor, rendered; `embed` draws it alone, for an iframe. The plan travels inside the URL, after the `#`, so it is never sent to a server and the URL carries nothing else. A plan that does not compile still gets links, and the page shows its diagnostics; `ok` says whether it compiles, and `errors` counts the errors when it does not. `bytes` is the size of the compressed plan in the URL.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"source"
],
"properties": {
"source": {
"type": "string",
"description": "ArchLang source."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Explain this hosted ArchLang server in one short page: the authoring loop, the size cap, what is unavailable here, how to get an image URL for a plan, and what the server keeps (nothing). Call it first when unsure.
No parameters.
{
"name": "read_me",
"title": "How to use this server",
"description": "Explain this hosted ArchLang server in one short page: the authoring loop, the size cap, what is unavailable here, how to get an image URL for a plan, and what the server keeps (nothing). Call it first when unsure.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}ArchLang compiles `.arch` text to SVG floor plans. Before writing any `.arch`, read the `archlang://spec` resource: the whole language (from a shell: `npx -y @chanmeng666/archlang spec`). The loop: 1. Write the plan as `.arch` source. 2. `compile` it. Errors are diagnostics, usually with a byte span, often a fix; `fix` applies the machine-applicable ones, edit the rest by hand. 3. `describe` it; check rooms, areas and doors against the brief. 4. `validate` with strict:true (parse, resolve, `lint`); fix its next item first, then every warning, then back to 2. 5. `finish` once lint is clean, before export: it adds what the plan lacks and deletes nothing. With a shell, the CLI runs the same loop at no context cost: `archlang <cmd>`, or `npx -y @chanmeng666/archlang <cmd>` without a global install. Every tool, command, limit and export format: the `archlang://capabilities` resource.
Names, descriptions and schemas were written by the server and are shown as data.