Skip to main content
Glama
szpak-dev

modwire

Official
by szpak-dev

Enclosure

Enclosure gives coding agents the context and guardrails they need to work confidently across projects. It combines reusable project guidance, architecture checks, diagrams, and scaffolding behind REST, Siren, and MCP.

Highlights

  • Agent-ready workspace guidance and project-health checks

  • Architecture contracts backed by Modwire and Mermaiden

  • Reusable records and project scaffolding

  • A Siren browser for exploring resources and actions

  • One machine-wide MCP server for every local project

Related MCP server: MCP Inspector as MCP Server

Quick start

uv sync
uv run python manage.py migrate
make mcp

The local stack runs on 127.0.0.1:8000:

Interface

URL

Siren browser

http://127.0.0.1:8000/

REST API

http://127.0.0.1:8000/api/

Siren API

http://127.0.0.1:8000/siren/

MCP

http://127.0.0.1:8000/mcp

Use make dev when only the standard Django development server is needed.

Development

Run the complete verification suite before handoff:

make ci

After changing the TypeScript browser, rebuild its checked-in static assets:

make browser-build

Hard-refresh the browser after rebuilding to discard a cached bundle.

Machine-wide MCP server

The Compose runtime exposes MCP at http://127.0.0.1:8666/mcp and keeps the server running as enclosure-mcp. Configure .env as needed:

  • ENCLOSURE_IMAGE requires an exact immutable SemVer release tag. Do not use the moving latest tag for the machine-wide runtime.

  • ENCLOSURE_PROJECTS_DIR selects the host projects directory mounted into the container at the same absolute path.

  • MODWIRE_CACHE_MAX_BYTES caps the persistent Modwire scan and analysis cache stored in the dedicated modwire-cache volume.

  • PROJECT_HEALTH_MAX_CONCURRENCY bounds architecture-health processes across all web workers. Excess requests fail immediately instead of queueing.

  • PROJECT_HEALTH_TIMEOUT_SECONDS bounds each architecture-health process; the default is 60 seconds. Client disconnects cancel it sooner.

  • PROJECT_HEALTH_WORKER_READY_TIMEOUT_SECONDS bounds worker bootstrap before a request is accepted; the default is 15 seconds.

  • PROJECT_HEALTH_CACHE_MAX_BYTES caps validated project-health stage results in the dedicated health-cache volume. Failed, canceled, and timed-out runs are never stored.

Start or update the runtime:

make runtime-config
make runtime-up
curl --fail http://127.0.0.1:8666/health/

/health/ remains the container liveness probe. Project-health capacity is reported by the existing project-health operation, which returns 503 rather than queueing when every execution slot is occupied.

runtime-up migrates with the selected image before starting MCP and retains the previous image locally as :previous. Back up PostgreSQL before deploying potentially irreversible migrations. Use make runtime-rollback to restore the retained image, and make runtime-down to remove only the MCP container.

Releases

GitHub Release tags are canonical. Stable releases publish SemVer, minor, latest, and commit-traceability image tags; prereleases never move latest. Docker Hub publication requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN in the repository configuration.

API attribution

The API is auth-free. Mutating record requests use X-Actor-Id and X-Actor-Type; supported actor types are user and agent.

License

Copyright (c) 2026 Tomasz Szpak. All rights reserved. Enclosure is proprietary software; see the LICENSE file for the complete terms.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables interaction with ACOMO API through MCP tools and resources. Provides comprehensive API exploration, operation calling, and schema inspection capabilities for ACOMO backend services.
    8
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables LLMs to inspect and test other MCP servers by listing and calling their tools, reading resources, and getting prompts. Supports stdio, SSE, and HTTP transports for both local and remote MCP server inspection.
    7
    4 npm
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Discovers, inspects, and executes requests against OpenAPI or Swagger APIs directly from documentation URLs or specification files. It enables users to trace parameter usage across an API and perform authenticated HTTP requests through a structured toolset.
    8
    16 npm
    5
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables users to expose arbitrary HTTP APIs as configurable MCP tools by defining tool specifications in a JSON configuration file.
    2,572 npm
    3
    -