ShipGuard Context MCP
README.md
# ShipGuard Context
> **Build with context. Ship with confidence.** — An Atlassian Forge release-readiness gate, Rovo Reviewer Agent, and Forge MCP Server for Jira & Confluence Cloud.
Built for **Atlassian Codegeist 2026** (`Apps for Software Teams` + `Best Agents — Rovo/Assignable Agents` + `Best App with Atlassian MCP`).
- **Demo Video (1:52 HD):** https://youtu.be/XyPnaJ4seNA
- **Forge Production App:** `ShipGuard Context v2.2.0` (`Runs on Atlassian` eligible — zero external egress)
---
## Screenshots
### Jira Release Readiness Console (`jira:projectPage`)

### Jira Issue Panel (`jira:issuePanel`) — `SHIP` vs `BLOCK`
| Ready to Ship (`100/100`) | Hard Blocked (`13/100`) |
|---|---|
|  |  |
---
## Why ShipGuard Context?
Modern engineering teams lose hours before every release hunting across disconnected Jira tickets, blocking dependency chains, unlinked Confluence runbooks, security sign-offs, and historical incident postmortems.
**ShipGuard Context** runs **100% serverless on Atlassian Forge** (`Runs on Atlassian` eligible — zero external egress, zero external API keys) and turns live cross-product context across Jira + Confluence into deterministic, auditable go/no-go release decisions:
- **Jira Issue Panel (`jira:issuePanel`):** Instant `0–100` readiness gauge and `SHIP` / `HOLD` / `BLOCK` verdict directly inside every Jira issue, breaking down 6 weighted engineering gates, unresolved blocking chains, auto-discovered Confluence runbooks/ADRs/postmortems, 1-click security sign-off, 1-click Jira Gate Brief comments, and 1-click Confluence Release Gate Brief page generation.
- **Jira Release Readiness Console (`jira:projectPage`):** Full-project triage queue with aggregate readiness KPIs, risk-first filtering/search, split-screen sticky Issue Inspector, and persistent Forge Key-Value Storage (`@forge/kvs`) audit trail.
- **Rovo Reviewer Agent (`rovo:agent`):** `"ShipGuard Reviewer"` embedded directly in Atlassian Rovo with 4 live actions (`evaluate-issue-readiness`, `audit-project-release`, `find-related-runbooks`, `publish-release-gate-brief`) so engineers can ask *"Is SHIP-2 ready to deploy?"* or *"Audit release readiness across project SHIP"* in natural language.
- **Atlassian Forge MCP Server (`rovo:mcp`):** `"ShipGuard Context MCP"` exposing all 4 release-readiness actions as Model Context Protocol (MCP) tools for Rovo Studio and external MCP-compatible AI developer workflows.
---
## Architecture
```mermaid
flowchart LR
subgraph Jira["Jira Cloud"]
Panel["Issue Panel (Custom UI)"]
Console["Release Readiness Console (Custom UI)"]
JiraAPI["Jira REST API v3 (Issues, Links, Comments, Remote Links)"]
end
subgraph Confluence["Confluence Cloud"]
ConfAPI["Confluence API v2 + CQL Search (Runbooks, ADRs, Postmortems, Gate Briefs)"]
end
subgraph Forge["Atlassian Forge Serverless Runtime (nodejs24.x / arm64)"]
Resolver["Forge Resolver & Action Handlers (src/index.js)"]
Engine["Deterministic 6-Gate Scoring Engine (src/engine.js)"]
KVS["Forge Key-Value Storage (@forge/kvs Audit Trail)"]
Rovo["Rovo Agent: ShipGuard Reviewer"]
MCP["Forge MCP Server: ShipGuard Context MCP"]
end
Panel --> Resolver
Console --> Resolver
Rovo --> Resolver
MCP --> Resolver
Resolver --> Engine
Resolver --> JiraAPI
Resolver --> ConfAPI
Resolver --> KVS
```
---
## 6 Weighted Engineering Release Gates (`0–100`)
| Gate | Weight | Hard Block? | Signal Evaluated |
|---|---:|:---:|---|
| **Dependency Blockers** | 25 | Yes | Unresolved `is blocked by` links or active high-priority blocker bug |
| **Rollback & Runbook** | 20 | No | Explicit rollback/feature-flag/canary plan + linked/discovered Confluence runbook |
| **Acceptance & Verification** | 20 | No | Structured acceptance criteria, test/SLO/load-test evidence in issue spec |
| **PR & Code Review** | 15 | No | Approved PR reference (`PR #...`) or `pr-approved` label |
| **Security & Blast Radius** | 10 | Yes | Security/auth/OAuth/JWKS/PII surface check + persisted security sign-off in Forge KVS |
| **Incident & Postmortem Context** | 10 | No | Cross-referenced historical Confluence postmortems (`INC-*`, `RCA`) for the service domain |
**Verdict Rules:**
- **`BLOCK`**: Any hard-block gate fails OR total score `< 55`
- **`HOLD`**: No hard blocks AND score `55–79`
- **`SHIP`**: No hard blocks AND score `>= 80`
---
## Local Verification & Build
```bash
# 1. Install dependencies
npm install
# 2. Run deterministic scoring engine unit tests
npm test
# 3. Bundle both Forge Custom UI surfaces (strict Forge CSP, zero external CDNs)
npm run build:ui
# 4. Validate Forge manifest
forge lint
# 5. Deploy & install to your Atlassian Cloud site
forge deploy --environment production
forge install -p Jira -s <your-site>.atlassian.net -e production
forge install -p Confluence -s <your-site>.atlassian.net -e production
```
---
## Judge Testing Guide
1. Install **ShipGuard Context** on any Jira + Confluence Cloud site via the official Atlassian Shareable Installation Link:
- **[Install ShipGuard Context on Jira & Confluence Cloud](https://developer.atlassian.com/console/install/202c203f-4b18-4ab7-adc9-32b0c8e819b1?signature=AYABeBbAtE%2F3yoNYu1J6tBPJ83sAAAADAAdhd3Mta21zAEthcm46YXdzOmttczp1cy13ZXN0LTI6NzA5NTg3ODM1MjQzOmtleS83MDVlZDY3MC1mNTdjLTQxYjUtOWY5Yi1lM2YyZGNjMTQ2ZTcAuAECAQB4CxqLTo9l4lqXuFjNim1xJM%2Bp%2F3TVP9xHS2BrU5DRRucBJfIw30KPugoyfkKiGZaUNgAAAH4wfAYJKoZIhvcNAQcGoG8wbQIBADBoBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDOBQHVuec64NPQc29gIBEIA7pJ7EMZp3smV9BzNdo%2BFrN5FyPRJ3c9Eaa7g%2FbHIOqXaM3nzerciD4QMS4l3ituIG4HRrz58ikNtHk3MAB2F3cy1rbXMAS2Fybjphd3M6a21zOmV1LXdlc3QtMTo3MDk1ODc4MzUyNDM6a2V5LzQ2MzBjZTZiLTAwYzMtNGRlMi04NzdiLTYyN2UyMDYwZTVjYwC4AQICAHi9bVMAkme4qVQX1fQHo6ePw3H40A7cGfz7yrmSfBWMXgFepErontmB5X9j3jVsJI%2FwAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMNbpdt%2B9tCA6%2B181GAgEQgDtLkWle5cB288TaJvGySvC6kqhJObmr6vRfJwYu5RZRobfd8uZpu4Ni5z16j1URZhPN8DKxQmsF7OBLmAAHYXdzLWttcwBLYXJuOmF3czprbXM6dXMtZWFzdC0xOjcwOTU4NzgzNTI0MzprZXkvNmMxMjBiYTAtNGNkNS00OTg1LWI4MmUtNDBhMDQ5NTJjYzU3ALgBAgIAeDYASx0XCjkny4iLV6vz%2BKtEGSGT6kdt0QRpkn6D%2FlVEAbiwUbcnaa0Yco3%2Br6W1KbAAAAB%2BMHwGCSqGSIb3DQEHBqBvMG0CAQAwaAYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAzGQnDQh9t2XYbbFc4CARCAOwbrpjrloxbqNH0o%2F05w5x89FH06IzkK8R00QxppcEEDG0J%2Ba%2BN7Pdkfsr3Em4ZfcbmoLstnKngvm%2FtbAgAAAAAMAAAQAAAAAAAAAAAAAAAAAKEbMhSOq%2B%2Fw06iYrNDsEGr%2F%2F%2F%2F%2FAAAAAQAAAAAAAAAAAAAAAQAAADL2go4AbYlHXt4w3B7urg0fH7VM%2FoZbhRlwpqI4ei7ra4%2B%2BcC2on%2BiR2w5Ql16hewQXOGvpRiESY42BTAsH7lqZmuo%3D&product=jira&product=confluence)**
2. Open any Jira issue and expand **ShipGuard Context** in the issue panel to inspect its live `0–100` score, `SHIP`/`HOLD`/`BLOCK` verdict, blocking dependencies, and discovered Confluence runbooks/postmortems.
3. Click **Approve Security Sign-off** (on security-sensitive issues), **Post Gate Comment** (posts a structured ADF release gate brief to Jira), or **Create Confluence Brief** (creates a formatted Release Gate Brief page in Confluence and attaches it as a Jira remote link).
4. Open **ShipGuard Readiness** from the Jira project sidebar to triage all project issues in the split-screen Release Queue & Inspector and verify persistent audit records stored in `@forge/kvs`.
5. Invoke **ShipGuard Reviewer** in Rovo or connect to **ShipGuard Context MCP** (`rovo:mcp`) to call all 4 actions (`evaluate-issue-readiness`, `audit-project-release`, `find-related-runbooks`, `publish-release-gate-brief`).
---
## Security & Privacy
- **Zero External Egress:** No external HTTP calls, no third-party LLMs, no external databases. Eligible for Atlassian's **Runs on Atlassian** badge.
- **Strict Custom UI CSP:** Zero inline scripts, zero external CDN dependencies, strict HTML/XML escaping for both Custom UI DOM and Confluence Storage XHTML.
- See [PRIVACY.md](./PRIVACY.md) and [LICENSE](./LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues