Skip to content

Commit 2bcd7cc

Browse files
Kurt Overmierclaude
andcommitted
docs: sync mcp + ecosystem + platform with MCP gateway charted
Pulls fresh content from stackbilt-web canonical sources via docs-sync.sh --source stackbilt-web --sync-only. - mcp.md (new sourcing) — fresh page describing the live MCP gateway at mcp.stackbilt.dev/mcp: service-binding architecture (TAROTSCRIPT, IMG_FORGE, ENGINE, DEPLOYER, AUTH_SERVICE), OAuth auth, transports, and a pointer to the gateway repo for the live tool catalog. - ecosystem.md (+4 mentions of MCP gateway) — Service Map row added, How-They-Fit-Together diagram redrawn with the three sibling consumers (web UI, MCP gateway, Charter CLI), Available-via list updated. - platform.md (+1 mention) — Access section now lists the gateway as the third sibling consumer with explicit framing that it shares backends with the web UI and REST API. Note: docs-sync.sh has a frontmatter-extraction bug (greedy '/^---$/,/^---$/p' captures markdown HR separators in the body) that doubled api-reference.md. Repaired by hand from the upstream canonical body + the existing local frontmatter; net diff for that file is zero. Will file a sync-script bug as a follow-up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8952ffb commit 2bcd7cc

3 files changed

Lines changed: 120 additions & 249 deletions

File tree

src/content/docs/ecosystem.md

Lines changed: 59 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,61 @@ Stackbilder is built on multiple complementary tools that enforce governance acr
1717
|------|---------|------|
1818
| **Charter** (`@stackbilt/cli`) | Apache-2.0 (open source) | Local + CI governance runtime with ADF context compiler |
1919
| **AEGIS** (`@stackbilt/aegis-core`) | Open source | Inter-agent orchestration framework and MCP-based task management |
20-
| **Stackbilder** | Commercial | Architecture generation, scaffold engine, structured artifacts |
21-
| **Compass** | Commercial | Governance policy brain, institutional memory, ADR ledger |
20+
| **Stackbilder** | Commercial | Unified platform on `stackbilder.com` — architecture generation, scaffold engine, Evidence Engine, Worker Observability, Consultations, img-forge |
2221

23-
Charter and AEGIS are the open-source foundations. Stackbilder and Compass are commercial services.
22+
Charter and AEGIS are the open-source foundations. Stackbilder is the commercial platform that wraps them.
2423

2524
## Service Map
2625

2726
| Service | URL | Purpose |
2827
|---------|-----|---------|
29-
| **StackBilt** | `stackbilt.dev` | Architecture generation, MCP server, scaffold engine |
30-
| **Compass** | via Stackbilder service binding | Governance enforcement, blessed patterns, ADR ledger |
31-
| **Auth Worker** | `auth-tenant-v2` | Authentication service (Better Auth + D1, OAuth, SSO) |
32-
| **img-forge** | `imgforge.stackbilt.dev` | AI image generation for documentation |
33-
| **Worker Observability** | `stackbilder.com/api/observe/*` | Hosted telemetry ingest + dashboard (Pro) — powered by `@stackbilt/worker-observability` |
28+
| **Stackbilder** | `stackbilder.com` | Unified platform Worker — UI, REST API, scaffold engine, governance, Evidence Engine, Observability |
29+
| **Auth** | `auth.stackbilt.dev` | Authentication service (Better Auth + D1, OAuth, SSO) — service binding from Stackbilder |
30+
| **img-forge** | `imgforge.stackbilt.dev` | Multi-provider image generation gateway — service binding from Stackbilder |
31+
| **MCP gateway** | `mcp.stackbilt.dev/mcp` | OAuth-authenticated MCP Worker that proxies to TarotScript / img-forge / Engine / Deployer. Sibling consumer of the platform's product workers (see [MCP Gateway](/mcp)) |
32+
| **Trust verifier** | `trust.stackbilder.com/evidence/:hash` | Public Evidence Engine receipt verifier (anti-probe semantics) |
3433

3534
## How They Fit Together
3635

36+
```
37+
┌──────────────────────┐
38+
│ AI agent / LM │
39+
│ (Claude Code, etc.) │
40+
└──────────┬───────────┘
41+
│ OAuth + MCP
42+
43+
┌──────────────────────┐
44+
│ mcp.stackbilt.dev │
45+
┌─ human ─►─ stackbilder.com ──┐ │ (MCP gateway) │
46+
│ (web UI + API) │ └──────────┬───────────┘
47+
│ │ │
48+
│ ▼ ▼
49+
│ ┌─────────────────────────────────────┐
50+
│ │ Backend product Workers │
51+
│ │ ─ tarotscript-worker (scaffold) │
52+
│ │ ─ img-forge-mcp │
53+
│ │ ─ stackbilt-engine (architecture) │
54+
│ │ ─ stackbilt-deployer (CF deploy) │
55+
│ │ ─ edge-auth (entitlements + quota) │
56+
│ └─────────────────────────────────────┘
57+
58+
└─ CLI ─►─ Charter (charter blast / surface) ──► same backends via API
59+
```
60+
61+
A single user prompt — "build me an X" — flows through whichever consumer is closest:
62+
3763
```
3864
IDEA
3965
4066
41-
Compass: governance("Can we build X?")
42-
43-
├── REJECTED ──► Stop
44-
45-
▼ APPROVED
46-
Stackbilder: runFullFlowAsync(idea)
67+
runFullFlowAsync(idea) ← invoked from web UI, MCP tool, or REST
4768
→ PRODUCT → UX → RISK → ARCHITECT → TDD → SPRINT
69+
70+
└── inline governance: blessed-pattern enforcement,
71+
red-team review, ADR persistence (Pro/Team tiers)
4872
4973
50-
Compass: red_team(architecture) → security review
51-
52-
53-
Stackbilder: getFlowScaffold(flowId) → deployable project
74+
getFlowScaffold(flowId) → deployable project
5475
5576
5677
Charter: validate + drift → commit and stack compliance
@@ -78,14 +99,19 @@ npx charter adf init # scaffold .ai/ context directory
7899
For quantitative analysis of ADF's impact on autonomous system architecture, see the [Context-as-Code white paper](https://github.com/stackbilt-dev/charter-kit/blob/main/papers/context-as-code-v1.1.md).
79100
<!-- DOCSYNC:END:charter-oss-ecosystem -->
80101

81-
## Stackbilder: Architecture + Scaffold
102+
## Stackbilder: Architecture + Scaffold + Trust
103+
104+
The 6-mode pipeline (PRODUCT → UX → RISK → ARCHITECT → TDD → SPRINT) produces structured artifacts with cross-referenced IDs. After completion, the scaffold engine generates a deployable Cloudflare Workers project. On Pro/Team, additional capabilities run alongside the scaffold pipeline:
82105

83-
The 6-mode pipeline (PRODUCT → UX → RISK → ARCHITECT → TDD → SPRINT) produces structured artifacts with cross-referenced IDs. After completion, the scaffold engine generates a deployable Cloudflare Workers project.
106+
- **Evidence Engine** — content E-E-A-T validation and tamper-evident receipts (`stackbilder.com/api/v1/evidence/*`, see [API Reference](/api-reference#evidence-engine))
107+
- **Worker Observability** — hosted telemetry ingest + dashboard
108+
- **Consultations** — CISO and CTO advisory flows backed by structured prompts and receipt-bound deliverables
109+
- **Inline governance** — blessed-pattern enforcement, red-team review, ADR persistence (replaces the previously-standalone Compass service binding)
84110

85111
Available via:
86-
- **Browser UI** at [stackbilt.dev](https://stackbilt.dev) (interactive)
87-
- **MCP server** at `stackbilt.dev/mcp` (agent-driven, 22 tools)
88-
- **REST API** at `stackbilt.dev/api/flow/*` (direct HTTP)
112+
- **Browser UI** at [stackbilder.com](https://stackbilder.com) (interactive, human users)
113+
- **REST API** at `stackbilder.com/api/*` (direct HTTP — Charter CLI, server-to-server, CI; see [API Reference](/api-reference))
114+
- **MCP gateway** at `mcp.stackbilt.dev/mcp` (OAuth-authenticated agent access; routes scaffold/image/deploy tools to the same backend Workers — see [MCP Gateway](/mcp))
89115

90116
### Lightweight Agent Pattern
91117

@@ -95,43 +121,25 @@ The recommended agent workflow downloads ~40KB total (down from 300KB+):
95121
runFullFlowAsync → getFlowSummary polls → getArtifact per mode → getFlowScaffold
96122
```
97123

98-
## Compass: Policy Brain
99-
100-
For current Compass routes, auth endpoints, and MCP integration surfaces, see [Compass Governance API](/compass-governance-api).
101-
102-
Compass is an AI governance agent with institutional memory — a ledger of ADRs, blessed patterns, and constitutional rules. It validates architecture decisions, runs red-team reviews, and drafts formal policy documents.
103-
104124
### Governance Modes by Plan
105125

106126
| Plan | Max Mode | Behavior |
107127
|------|----------|----------|
108128
| Free | `PASSIVE` | Log only — never blocks |
109129
| Pro | `ADVISORY` | Warn on issues, flow continues |
110-
| Enterprise | `ENFORCED` | Block on FAIL, require remediation |
130+
| Team | `ENFORCED` | Block on FAIL, require remediation |
111131

112132
When governance mode is capped by plan tier, a soft upsell prompt appears in the `governanceState` response.
113133

114134
### Blessed Patterns
115135

116-
Compass maintains a ledger of approved technology patterns. These are injected into Stackbilder's ARCHITECT prompt automatically when governance is enabled. Example:
136+
The platform maintains a ledger of approved technology patterns. These are injected into the ARCHITECT prompt automatically when governance is enabled. Example:
117137

118138
- Compute: Cloudflare Workers (not AWS Lambda)
119139
- Database: Cloudflare D1 (not PostgreSQL)
120140
- Cache: Cloudflare KV (not Redis)
121141
- Queue: Cloudflare Queues (not SQS)
122142

123-
### CSA Transport Modes
124-
125-
Communication between Stackbilder and Compass supports multiple transports:
126-
127-
| Transport | Description |
128-
|-----------|-------------|
129-
| `external_http` | Public HTTPS MCP endpoint (default) |
130-
| `service_binding` | Internal Worker binding (when configured) |
131-
| `auto` | Canary split between HTTP and binding |
132-
133-
Canary rollout percentage is configurable per-flow or via environment default.
134-
135143
## Worker Observability: ODD-Driven Monitoring
136144

137145
`@stackbilt/worker-observability` is the OSS library ([Apache-2.0](https://github.com/Stackbilt-dev/worker-observability)). The hosted Pro product on stackbilder.com wraps it with D1 storage and a dashboard.
@@ -172,37 +180,20 @@ const obs = createMonitoring({
172180

173181
Every significant decision flows through governance before implementation:
174182

175-
1. **Pre-approval**Compass validates the idea against policy
176-
2. **Architecture** — Stackbilder generates a governed blueprint with blessed patterns
177-
3. **Review**Compass red-teams the architecture output
183+
1. **Pre-approval**Stackbilder validates the idea against policy during the PRODUCT/RISK modes
184+
2. **Architecture** — Stackbilder generates a governed blueprint with blessed patterns injected into ARCHITECT
185+
3. **Review**Inline red-team review runs against the architecture output
178186
4. **Record** — ADRs are persisted to the governance ledger (when `autoPersist: true`)
179187
5. **Scaffold** — Stackbilder generates deployable project files
180188
6. **Commit** — Charter enforces `Governed-By:` trailer compliance at the repo level
181189
7. **Evidence** — Charter validates ADF metric ceilings (`adf evidence --auto-measure --ci`)
182190
8. **CI** — Charter blocks merges on drift violations or metric ceiling breaches
183191

184-
## Authentication Across Services
192+
## Authentication
185193

186-
### Unified Auth (Recommended)
194+
Stackbilder issues two credential types, both accepted at every endpoint:
187195

188-
One access key works at both Stackbilder and Compass:
196+
- **Session cookie**`better-auth.session_token`, set during OAuth sign-in (GitHub, Google) at [auth.stackbilt.dev](https://auth.stackbilt.dev). Used by the browser UI.
197+
- **API key**`Authorization: Bearer ea_*`, issued from `/settings`. Used by Charter CLI, server-to-server pipelines, and MCP-style consumers.
189198

190-
```bash
191-
# Exchange ska_ key for a JWT
192-
curl -X POST https://stackbilt.dev/api/auth/token \
193-
-H "X-Access-Key: ska_..." \
194-
-d '{"expires_in": 3600}'
195-
# Use the returned JWT at either service
196-
```
197-
198-
### Service-to-Service
199-
200-
For automated pipelines, each service has its own token:
201-
202-
```json
203-
{
204-
"edgestack": { "url": "https://stackbilt.dev/mcp", "token": "EDGESTACK_MCP_TOKEN" },
205-
"compass": { "url": "https://stackbilt.dev/mcp", "transport": "service_binding", "token": "CSA_MCP_TOKEN" },
206-
"imgforge": { "url": "https://imgforge.stackbilt.dev/mcp", "token": "IMGFORGE_MCP_TOKEN" }
207-
}
208-
```
199+
API key resolution: `GET /api/account/me` returns the caller's identity (userId, orgId, plan) — useful for tier-aware routing in CI scripts.

0 commit comments

Comments
 (0)