Every surface commits to one repo
CLI
$ corp form ...
MCP Server
36 tools · JSON-RPC
AI Agents
autonomous commits
git push
your workflow
CONTROL PLANE every action → git commit
1
Action
CLI / agent / API
2
Policy Gate
governance rules
3
Git Commit
atomic · signed
4
Push
local or cloud
Entities
form · convert · dissolve
Equity
shares · SAFEs · cap table
Governance
board · votes · resolutions
Documents
sign · generate · file
Treasury
accounts · payments · ledger
Agents
deploy · scope · budget
git log
a0b1c2d form_entity "Newco"
a0b1c2d auto-approved
4a1b2c3 issue_equity Alice 4M
4a1b2c3 pending — board
7d8e9f0 Dir A signed
7d8e9f0 Dir B signed
b3c4d5e quorum → committed
b3c4d5e issue_equity Bob 1M
e6f7a8b create_agent "ops-bot"
HEAD ★ git push origin main
§ 01 — Architecture

How It Works

Every action — whether initiated by a human at the terminal, an agent on a cron schedule, or an MCP tool call from an AI client — passes through the same pipeline. The policy gate enforces governance rules. The commit captures the state change. The repo stores the complete, immutable history. One path, one audit trail, one source of truth.

§ 02 — The CLI

The CLI

The corp CLI is the primary human interface. Terminal-first, scriptable, composable. Every command validates the input, passes it through the policy gate, and commits the result to your local repo.

$ corp cap-table issue-equity \
    --entity-id ENT_ID \
    --grant-type common \
    --shares 4_000_000 \
    --recipient "Alice Chen"
  ✔ [7d8e9f0] corp: issue equity to "Alice Chen"
§ 03 — Git Commits

The Git Commit

Every mutation produces an atomic git commit. Not a log entry about the mutation — the commit is the mutation. The entity data, equity records, generated documents, and governance changes all land in a single atomic operation.

Commit messages follow a consistent format: corp: <action> <details>. Your entire corporate history is readable with standard git tools.

$ git log --oneline
  e6f7a8b corp: adopt bylaws v1.0
  b3c4d5e corp: issue SAFE ($500K)
  7d8e9f0 corp: issue equity "Alice"
  4a1b2c3 corp: form "Acme Inc" (DE)
  a0b1c2d corp: init repository
§ 04 — Policy Gate

The Policy Gate

Before any action commits, it passes through the policy gate — the programmatic expression of your corporation's governance rules. The gate enforces what the bylaws describe and what board resolutions authorize.

• Does this action require board approval? Has a quorum voted?
• Are there conflicting obligations or pending prerequisites?
• Does the requesting agent have the required scopes?
• Does the action comply with the governing documents?

The gate either approves and commits, blocks the commit, or routes to human approval.

§ 05 — Agents

Agents

Agents are first-class participants that commit directly to your corp repo. They run autonomously — on schedules, on events, on demand — and pass through the same policy gates as human actions.

  Agent: compliance-bot
  Trigger: cron (1st of month)

  [f1a2b3c] check compliance deadlines
  [a2b3c4d] prepare DE annual report
  [b3c4d5e] file franchise tax ($400)
  [c4d5e6f] update BOI report

Each agent runs in a sandboxed container with budget controls, scope boundaries, and approval workflows.

§ 06 — Human Pages

Human Pages

Some actions require a human in the loop — signing a stock purchase agreement, acknowledging a disclosure, providing personal information. The system generates obligation pages: simple web forms with a unique URL. When completed, the result commits to the repo.

  Human page: /human/abc123
  Obligation: Sign stock purchase
  Assigned to: Alice Chen
  Status: pending

  On completion:
  [c4d5e6f] obligation completed
             "sign_rspa" (Alice Chen)
§ 07 — Cloud Sync

Cloud Sync

Your corp repo is a git repo. Keep it local, push to your own remote, or sync to TheCorporation's cloud for managed hosting.

$ git remote add cloud \
    https://thecorporation.ai/acme.git
$ git push cloud main
  ✔ Synced to thecorporation.ai

Self-hosted — your repo, your server, full sovereignty.
Cloud — managed agents, hosted pages, filing automation.
Hybridgit clone to keep a local copy. Always portable.

§ 08 — The API

The API

CLI, MCP tools, agent ticks, human pages — every surface is a thin client over a single REST API. Every mutation creates a git commit. Reads query the repo state. One API, one policy gate, one audit trail.

Form a company
POST /v1/formations
{
  "name": "Newco Inc",
  "entity_type": "corporation",
  "jurisdiction": "DE"
}
intent_id: a0b1c2d
Issue equity
POST /v1/execution/intents
{
  "entity_id": "ENT_ID",
  "intent_type":
    "equity.issue",
  "metadata": {
    "shares": 4000000
  }
}
intent_id: 7d8e9f0
Query cap table
GET /v1/entities/{id}/cap-table
{
  "holders": [
    { "name": "Alice",
      "shares": 4000000 }
  ],
  "total": 5000000
}

Whether a human types corp cap-table issue-equity, an MCP tool calls issue_equity(), or an agent runs autonomously — the same pipeline executes.

Give your agent a corporation

$ npx -y @thecorporation/mcp-server
CORP-ARCH-001