Axpol POCRunning a whole company with humans and AI working together in Claude DesktopPolski

Architecture

Human ── goals, context, decisions ── Claude Desktop
                    │  skills: knowledge of the company and processes (axpol-company + a skill per area)
                    │  analyses, options, MCP Apps (e.g. planning board)
                    │  read  or  proposal → human approval → execution
                    ▼  MCP (stdio)
   ┌────────────┬────────────┬──────────────┬──────────────┬─────────────┐
   │ axpol-shop │ axpol-mrp  │ axpol-       │ axpol-       │ axpol-      │   one server per system,
   │            │            │ inventree    │ dolibarr     │ zammad      │   tools in business language
   └─────┬──────┴─────┬──────┴──────┬───────┴──────┬───────┴──────┬──────┘
         │ SQL adapter — the only place that knows the system's tables
         ▼            ▼             ▼              ▼              ▼
   Postgres shop  Postgres     Postgres       MariaDB        Postgres
                  planning     inventree      dolibarr       zammad
         ▲            ▲             ▲              ▲              ▲
     shop (UI)    Odoo (UI)   InvenTree (UI)  Dolibarr (UI)  Zammad (UI)   ← people keep working here

MCP server layers

Every server has the same structure:

Rules

  1. Reads straight from the database. The servers read the systems' databases with SQL; writes are meant to go through the system's API (today Zammad), see decision portal. From the systems' (open source) code we extract the meaning of fields and the rules, and we design tools from the business goal, without copying screens.
  2. Reads with a read-only role with an allowlist of tables and columns (no passwords, personal data, email headers).
  3. SQL escape hatch — every server has <system>_schema and <system>_sql for questions nobody anticipated: SELECT only, a READ ONLY transaction, an SQL parser, row, time and size limits.
  4. Writes only through an applier after human approval. The model creates a proposal; the human approves it in an interface (e.g. on the planning board); the applier writes in a single transaction, with a data freshness check and a log for undo. Writes only in the system that owns the given thing.
  5. Every write has documented invariants and a test, and the system must work correctly in its UI after the write.
  6. Every tool call is logged (input, result, time, approximate tokens) — this is data for evaluation.
  7. Enriching the databases is allowed — our own mcp schema, views, indexes, working tables — through reversible migrations and without changing how the system works.

Repositories

Each MCP server is a separate repository with its own code, skill, migrations, tests and evaluation scenarios. Shared code is a separate Python package (axpol-mcp-core). This repository — axpol-company — ties it all together.

Repository Role
axpol-poc Umbrella: runs everything (make), Docker infrastructure, project documentation (PROJECT.md)
axpol-company This repository: top-level skill axpol-company, this site, Claude Desktop setup, cross-system tests and eval
axpol-mcp-core Shared Python library of the MCP servers: errors, tool annotations, call log, read-only SQL gateway
axpol-mcp-mrp Server axpol-mrp (Odoo, production) + skill axpol-mrp + planning board (MCP App)
axpol-mcp-inventree Server axpol-inventree (warehouse and purchasing) + skill axpol-inventree
axpol-mcp-dolibarr Server axpol-dolibarr (finance) + skill axpol-dolibarr
axpol-mcp-zammad Server axpol-zammad (complaints and failures) + skill axpol-zammad
axpol-mcp-shop Server axpol-shop (shop administration) + skill axpol-shop-onboarding
axpol-sim Company simulator: world, event history and loading data into all systems
axpol-site Shop (copy of axpol.com), logo designer and order portal
axpol-onboarding Product onboarding for the shop: print-area geometry and AI descriptions

Directory layout in the local environment:

axpol-poc/                  umbrella: Makefile, infra (Docker), PROJECT.md
└── repos/
    ├── axpol-company/      top-level skill, this site, Claude Desktop installation, cross-cutting eval
    ├── mcp/
    │   ├── axpol-mcp-core/        shared library (Python package)
    │   ├── axpol-mcp-mrp/         server + skill + migrations + board UI
    │   ├── axpol-mcp-inventree/   server + skill + migrations
    │   ├── axpol-mcp-dolibarr/    server + skill + migrations
    │   ├── axpol-mcp-zammad/      server + skill + migrations
    │   └── axpol-mcp-shop/        server + skill
    ├── axpol-sim/          company simulator
    ├── axpol-site/         shop and order portal
    └── axpol-onboarding/   product onboarding

All server packages share the Python namespace axpol_mcp (axpol_mcp.core, axpol_mcp.mrp, …), and the dependency on axpol-mcp-core is declared as a path to the sibling directory (uv).

State in the system databases

Our tables live next to the system tables, in the mcp schema of the same database (in Dolibarr's MariaDB — in separate databases mcp and mcp_log): helper views, proposals, change log, call log. Roles:

Role Used by Can
mcp_ro server (read) SELECT on the allowlist of tables/columns and on mcp.* views
mcp_sql axpol-mrp SQL escape hatch SELECT on Odoo business tables (no users or configuration)
mcp_writer server (log, state, applier) appending to the log; in Odoo a narrow write to selected columns
mcp_owner migrations (deployment) owner of the mcp schema; zero access to system tables