Roadmap
agility-bridge — an unofficial, open-source MCP server that gives AI agents safe access to Digital.ai Agility (every asset type, read and opt-in write) with each member’s own access token. Runs locally (stdio), self-hosted (Node / Docker) or as a Cloudflare Worker reachable from every device.
Status: v0.6.0 published (2026-10-29), Phase 6 done (Phase 6 review); Phase 7 (opt-in writes) in progress. Architecture: ARCHITECTURE.md · Decisions: adr/ · Facts & limits: RESEARCH.md · Security: THREAT_MODEL.md · Lessons: LESSONS-LEARNED.md · Task rules: tasks/README.md · Open questions and owner steps: pending-decisions/phase-6.md
Guiding principles
Section titled “Guiding principles”- Local-first, cloud-optional. Every feature works without a Cloudflare account; the Worker is one deployment target among three.
- Runtime-agnostic core. Web-standard APIs only in core packages; runtime code lives in adapters (ADR-0004).
- Read-only and least privilege by default. Access is the intersection of workspace and grant; writes are a separate, opt-in product with human approval (ADR-0008, ADR-0013).
- Every asset type from day one, safely. A validated generic query tool with bound parameters covers what typed tools do not; no raw API passthrough (ADR-0012).
- Security is a feature. Threat model updated in the same PR as risky changes; tokens never leave the server unencrypted; Agility content is always untrusted.
- Built for agents. One tool contract, compact outputs, actionable errors, honest partial results, a small catalogue (ADR-0015, L-005, L-155).
- Evidence before building, verification every phase. Platform behaviour is measured in Phase 0 spikes against a real Agility sandbox and real clients; every phase ends with a review and a live pass (L-001, L-003, L-004).
Phases at a glance
Section titled “Phases at a glance”| Phase | Theme | What you can do afterwards | Release |
|---|---|---|---|
| 0 | Foundations, risk spikes, tool contract, sandbox | Repo public-ready; Agility API, SDK, clients, OAuth and Workers behaviour measured; tool contract frozen | — |
| 1 | Core engine + stdio | npx agility-bridge in every primary client; read any asset type (stories, defects, tasks, tests, epics, issues, requests, custom types) plus typed work-item, team and sprint tools |
v0.1 |
| 2 | Access model + self-hosted HTTP | A team server (Node/Docker, SQLite) with per-workspace URLs, per-device tokens, encrypted bring-your-own tokens, audit log, admin API and CLI | v0.2 |
| 3 | Cloudflare Worker | The same server on Workers + D1, reachable from every device | v0.3 |
| 4 | Identity + admin panel | Google / GitHub / Cloudflare Access / OIDC sign-in; manage everything in the browser; members bring their own Agility tokens | v0.4 |
| 5 | OAuth 2.1 | claude.ai web, Claude mobile and IDEs connect with OAuth; per-device sessions | v0.5 |
| 6 | Tool breadth | Portfolio, sprints, conversations, history, reports, prompts, resources, evals | v0.6 |
| 7 | Opt-in writes | Comments, status, effort, owners, sprint moves, creating work items, field updates, close/reopen — approved by a person | v0.7 |
| 8 | Power features | Cache, deep links, MCP Apps charts, doctor, import/export, client plugins, telemetry, keychain, quotas, MCP Tasks |
v0.8–0.9 |
| 9 | Hardening + launch | Final threat-model review, external review, performance, docs site, support policy | v1.0 |
flowchart LR P0[0 Foundations & spikes] --> P1[1 Core + stdio] P1 --> P2[2 Access + HTTP] P2 --> P3[3 Cloudflare] P3 --> P4[4 Identity + admin] P4 --> P5[5 OAuth] P2 --> P6[6 Tool breadth] P2 --> P7[7 Opt-in writes] P4 --> P7 P5 --> P7 P6 --> P8[8 Power features] P7 --> P8 P8 --> P9[9 Hardening + 1.0]Parallelism. P0-10 (prior art) can run anytime. Phase 6 depends only on Phase 2, so tool breadth can run in parallel
with the remote platform (Phases 3–5) and its tasks are largely independent of each other. The write framework (P7-01)
needs Phase 2; the approval page (P7-02) needs the panel sessions (P4-02); the Phase 7 review needs OAuth (P5-10) to
verify the mcp:write scope end to end.
How the lessons shaped this plan
Section titled “How the lessons shaped this plan”The plan front-loads the work that is cheapest early and most expensive late (LESSONS-LEARNED.md):
- An owner-decision gate before any Phase 0 work (P0-14) settles the few choices that shape the repository, the sandbox and the tool contract (L-009).
- A real Agility sandbox and a live-test harness in Phase 0 (P0-12), and a live pass at the end of every phase, not only before launch (L-003, L-004).
- The tool contract and the default catalogue are frozen in Phase 0 (P0-11), with lints from Phase 1 (P1-13), so forty tools do not grow forty conventions (L-005, L-030, L-155).
- The query compiler is a Phase 1 security component with property tests (P1-04), because Agility’s
withbinding is substitution, not a prepared statement (L-139) and quotas can count errors (L-138). - Both MCP protocol eras from the first spike (P0-07): the two most common IDE clients do not speak the newest revision yet (L-011).
- Release isolation, provenance and staged publishing in the first release (P1-15), not as later fixes (L-127).
- Security inventories from the first storage task (P2-15), not a pre-launch retrofit (L-120).
- Writes are designed with two approval channels (elicitation and an out-of-band page, P7-01/P7-02) because the main IDE clients cannot be elicited over stateless HTTP (L-156).
- Every phase reserves room for follow-ups: review findings become new tasks in the same phase folder before its release.
Releases
Section titled “Releases”Each phase ends with a release (v0.1 … v0.9, then v1.0) if the owner chooses per-phase releases (pending decision D-03); the alternative is to publish only from a later phase. Every release is published from GitHub Actions with npm provenance, a GitHub Release with SBOM and checksums, and (from Phase 2) a signed container image.
Decision log
Section titled “Decision log”| Date | Decision | Where |
|---|---|---|
| 2026-10-16 | Name agility-bridge (AB_ variables, ab_ tokens); Apache-2.0 with DCO; Markdown tasks and ADRs |
ADR-0001 – 0003 |
| 2026-10-16 | Same architecture for every runtime: TypeScript monorepo, runtime-agnostic core, Hono; stdio, Node/Docker and Cloudflare Worker all in scope for 1.0 | ADR-0004, ADR-0005 |
| 2026-10-16 | Read-only by default; typed write tools opt-in per workspace/grant with human approval by default | ADR-0013 |
| 2026-10-16 | Typed tools and a validated, read-only generic query tool with bound parameters; no raw API passthrough | ADR-0012 |
| 2026-10-16 | Bring-your-own Agility token by default; shared tokens only for read-only grants; writes always with the caller’s own token | ADR-0008 |
| 2026-10-16 | Hosted and on-premises Agility instances; HTTPS only (loopback for tests); custom CA bundles; access tokens only | ADR-0014 |
| 2026-10-16 | Primary clients documented equally: GitHub Copilot (VS Code, JetBrains, CLI), Claude (Code, Desktop, web, mobile), Cursor, Windsurf, MCP Inspector | ADR-0016 |
| 2026-10-16 | “Workspace” names agility-bridge’s unit of access; “Agility project” always means Agility’s Scope |
ARCHITECTURE §4 |
| 2026-10-19 | Owner answered D-01 – D-24. Live tests use a read-only third-party tenant (writable sandbox needed before Phase 7); npm agility-bridge, Node ≥ 24, releases every phase; opt-in attachment download in 1.0 (deviates from the recommendation); all others as recommended |
pending-decisions/phase-0.md |
| 2026-10-21 | MCP SDK v2, stateless HTTP, both protocol eras accepted on real-client evidence (P0-07) | ADR-0005 |
| 2026-10-21 | Agility API surface accepted with P0-06 amendments: JSON reads, no totals, comma-free scalar with values, ID sorts |
ADR-0011 |
| 2026-10-21 | Tool contract final: conventions signed off, output contract accepted | ADR-0015, tool conventions |
| 2026-10-21 | Authentication accepted: device tokens first, OAuth 2.1 with workers-oauth-provider on both runtimes, refresh reuse window built in P5-05 | ADR-0009 |
| 2026-10-21 | Storage, encryption, access-model details and platform limits accepted; Phase 0 complete, go for Phase 1 | ADR-0006, 0007, 0008, 0010, Phase 0 results |
| 2026-10-21 | v0.1.0 published; live suite stays on demand (D-20); go for Phase 2 (D-21) | pending-decisions/phase-1.md |
Task index
Section titled “Task index”Generated from task front matter by pnpm tasks index; pnpm tasks lint (in CI) fails when it is stale.
Status lives in each task file.
Phase 0
Section titled “Phase 0”| ID | Task | Priority | Depends on | Status |
|---|---|---|---|---|
| P0-01 | Bootstrap the monorepo | high | P0-14 | done |
| P0-02 | License, community and security policy files | high | P0-01 | done |
| P0-03 | CI pipeline | high | P0-01 | done |
| P0-04 | Security tooling baseline | high | P0-03 | done |
| P0-05 | Agent workflow and task tooling | high | P0-01 | done |
| P0-06 | Spike: Agility API behaviour, limits and fixtures | high | P0-01, P0-12 | done |
| P0-07 | Spike: MCP SDK v2 dual-era handler with real clients | high | P0-01 | done |
| P0-08 | Spike: OAuth 2.1 portability on Node and Workers | high | P0-07 | done |
| P0-09 | Spike: Cloudflare Workers limits with Agility-shaped payloads | high | P0-01 | done |
| P0-10 | Prior-art review | medium | — | done |
| P0-11 | Tool contract and conventions | high | P0-06, P0-07, P0-14 | done |
| P0-12 | Agility sandbox and live-verification harness | high | P0-03, P0-14 | done |
| P0-13 | Spike results and go/no-go for Phase 1 | high | P0-02, P0-04, P0-05, P0-06, P0-07, P0-08, P0-09, P0-10, P0-11, P0-12 | done |
| P0-14 | Owner decision gate for Phase 0 | high | — | done |
Phase 1
Section titled “Phase 1”Phase 2
Section titled “Phase 2”Phase 3
Section titled “Phase 3”Phase 4
Section titled “Phase 4”Phase 5
Section titled “Phase 5”Phase 6
Section titled “Phase 6”Phase 7
Section titled “Phase 7”Phase 8
Section titled “Phase 8”Phase 9
Section titled “Phase 9”agility-bridge is an unofficial, community project. It is not affiliated with, endorsed by, or supported by Digital.ai. Digital.ai, Agility and VersionOne are trademarks of their respective owners.