Skip to main content
Glama
architectural-canvas

architectural-canvas

by JIALI1014

Architectural Modeling 3D Infinite Canvas

A local infinite image workspace for architectural 3D modeling workflows. Capture a view from SketchUp or Rhino, arrange screenshots, select an image region, describe a design change, and compare the returned image proposal.

0.1.0-preview · Apache-2.0 · Python 3.11+

The workspace contains image cards taken from 3D views. It does not contain a live mesh/BRep editor. A generated visual proposal does not modify the native model: accept the image direction first, then request native modeling as a separate operation in your modeling workflow.

What it includes

  • Pan and zoom a continuous workspace; move, select and compare image cards.

  • Import, drop or paste single-frame PNG/JPEG images.

  • Select a rectangle in original image pixels and write a design instruction.

  • Queue, claim and complete image-edit requests with source/result hashes.

  • Keep originals. Regional composition preserves RGBA pixels outside the selected rectangle; resizing a result to the rectangle is explicit.

  • Localhost-only HTTP service, session credentials and persistent image files.

  • Seven stdio MCP tools for an AI client with a real image-editing capability.

  • Optional lightweight SketchUp/Rhino window and viewport-capture adapters.

  • Standalone Python packaging; no dependency on the complete ArchJIA install.

No AI account, paid image generation, model weights, CAD host, runtime binary or general native-code execution bridge is bundled. The server does not inject messages into a chat or silently start a model API call.

Related MCP server: Inkbolt

Quick start

Install Python 3.11 or newer, then open a terminal in the extracted source:

python -m venv .venv

Activate the environment:

# Windows PowerShell
.venv\Scripts\Activate.ps1
# macOS / Linux
source .venv/bin/activate

Install and start the canvas:

python -m pip install .
architectural-canvas serve --application browser --open-browser

Keep the foreground process running. Its local connector file contains the session credential: do not upload it or share its private browser URL. Sessions are stored in the per-user application-data directory, outside this source tree. Use --data-dir on each command to select another private data directory. A foreground server stops with Ctrl+C.

For a background session:

architectural-canvas open --application browser --open-browser
architectural-canvas status
architectural-canvas close --session-id SESSION_ID

Restarting a closed/stopped service does not silently restore an old listener. Keep images, start a new session and import the saved images when needed.

SketchUp and Rhino

Start a session for the host:

architectural-canvas open --application sketchup
# or:
architectural-canvas open --application rhino

Load the returned connector.json through the optional host adapter. The adapter opens the canvas in a native window and sends the current viewport using its Capture viewport command. The canvas itself does not remotely drive the host: use the host command to capture another view.

See native adapter installation for the exact commands. Adapters read the current document and do not create or modify model geometry. Captures are plugin-reported observations, not persistent live-host certification or remote attestation.

The adapter source targets SketchUp HtmlDialog and Rhino 8 Windows Eto/ Python 3. This extracted release has not been certified through complete real host GUI tests; SDK doubles and source checks are labeled separately. Browser use and imported images do not require either commercial application.

Current AI client / MCP

Install the package into the environment your MCP client will use. Example configuration; replace the executable with that environment's absolute path:

{
  "mcpServers": {
    "architectural-canvas": {
      "command": "/absolute/path/to/venv/python",
      "args": ["-m", "architectural_canvas", "mcp"]
    }
  }
}

The stdio server exposes canvas_open, canvas_status, canvas_import, canvas_request, canvas_claim, canvas_complete and canvas_close. Read the actual tools/list schemas; write tools require confirmed: true.

  1. Import or capture an image; select it or draw a region and submit a prompt.

  2. In your current AI conversation, ask it to read and process that canvas task.

  3. The client checks that a real image editor is available, reads the actual input and claims the request before invoking that tool.

  4. It completes the request with the real saved image path and SHA-256.

  5. The canvas adds a result card without replacing the original.

Example: “Preserve the camera and building massing. Change only the selected entrance canopy to champagne metal and transparent glass. Return an image proposal; do not modify the native model.”

A text-only API is not an image editor. If an actual image tool is unavailable, keep the request pending; do not substitute a copied original or test fixture. No paid request is automatically replayed after an uncertain response.

Tests and scope

python -m unittest discover -s tests -p "test_*.py" -v
python -m unittest discover -s tests -p "ui_*.py" -v

UI logic checks use Node.js when available. GitHub CI tests installation and the HTTP/raster/MCP behavior on Windows and Linux with Python 3.11 and 3.13; it does not launch SketchUp or Rhino. Technical fixtures are not AI generation or native-host acceptance evidence. See the actual Actions result for the tested revision, rather than treating a workflow file as a passing run.

The initial release is experimental. Camera/geometry consistency, constructability and engineering dimensions require separate native-model verification. Large image requests have explicit limits; this is a local single-user service, not an Internet-hosted collaboration server.

License and sources

Apache-2.0, with source attribution in NOTICE, modifications and provenance. This project extracts the screenshot-design canvas introduced in ArchJIA 0.8.0-preview. It does not redistribute the full original workflow or rename third-party authorship. Pillow and development tools retain their own terms; see third-party notes.

Contributing · Security · Changelog

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Local vector and raster editing engine for agents: layered documents, saved sessions and exports, as a Rust library, JSON CLI and MCP stdio server.
      22
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP-capable agents to read, create, modify, align, distribute, organize and export local-first infinite whiteboard content, including sticky notes, text, shapes, arrows, ink, mind maps, images, files and links across multiple pages. Provides 16 tools over stdio or Streamable HTTP, plus resources and prompts, with version-conflict protection and audit trails so canvas edits never silently overwrite newer content.
      16
      27
      MIT