Skip to main content
Glama
README.md
# ReleasePulse MCP (`CODEGEIST-01`)

**ReleasePulse MCP** is an Atlassian Forge (`rovo:mcp` + `rovo:agent`) app built for **Devpost Codegeist 2026** (targeting **Apps for Software Teams**, **Best App with Atlassian MCP**, and **Best Agents (Rovo)**).

## Judge quickstart

From the app directory, run `node demo/server.js` with Node.js 20 or later. Open the printed loopback address (default `http://127.0.0.1:4173`). The Workbench uses synthetic inputs and requires no installation or credentials.

1. Select **Schema Migration + Multi-Service PR** and observe `CAUTION` for `REL-412`.
2. Under **Sprint batch mode**, queue `REL-413`. Both issues are HIGH and the checklist computes `BLOCKED` for the batch.
3. Choose a **Rovo Agent Copilot** conversation starter. The Workbench calls the Forge actions locally and produces a copyable Jira / Confluence Markdown release brief.
4. Open **Runs on Atlassian · MCP Config** to see the manifest checks from `GET /api/health` and copy the connection template. **tools/call Trace** shows the arguments and responses behind the verdict.

[Recording script](DEMO_SCRIPT_2M30S.md) · [Scenario inputs](demo/scenarios.js)

## Architecture

- `manifest.yml` declares an MCP module, a Rovo agent, three read-only `GET` actions, their `index.run` handler, and the `read:jira-work` scope.
- `src/index.js` routes requests using Forge invocation context and decodes the JSON string arguments.
- `src/riskEngine.js` validates native JavaScript inputs and calculates issue risk, PR blast radius, and release readiness.

### Runs on Atlassian architecture

In Forge, Rovo and MCP invoke the same read-only actions on the Atlassian-hosted Node.js runtime. The manifest grants `read:jira-work`, declares no `permissions.external` or Forge remotes, and the handler scores the supplied inputs in-process without sending them to a third-party service. The local Workbench checks the manifest and serves its browser assets and API from the same loopback origin. Live Forge deployment and OAuth discovery are pending. [Forge manifest](manifest.yml) · [Workbench health endpoint](demo/server.js)

## Tool arguments

| Tool | JSON string arguments | Other arguments |
| --- | --- | --- |
| `analyze-issue-risk` | `labels`, `criticalModules` (arrays of strings) | Required Jira `issueKey` string. Optional `summary`, `description`, and `priority` strings and non-negative safe integer `linkedPrCount` and `dependencyCount`. |
| `map-pr-blast-radius` | Required `changedFiles` (array of paths). Optional `serviceBoundaries` (object mapping names to arrays of path prefixes). | Optional `testCoveragePct` number from 0 to 100. |
| `build-release-checklist` | `issueAnalyses`, `prBlastMaps` (arrays of successful tool `data` objects) | Optional `releaseTag` string. |

Each JSON string argument has a 256 KiB UTF-8 limit. Pass the successful responses' `data` objects in the encoded checklist arrays. The checklist rejects `{ok, data, meta}` response envelopes and derives levels from the integer scores. [End-to-end MCP example](SKILL.md#end-to-end-mcp-example)

Missing or blank optional Jira fields are never fatal: blank or missing `priority` scores as `Medium`, missing or null `summary` and `description` score as empty text, and a blank or missing `releaseTag` reports as `untagged`. An empty diff (`"changedFiles": "[]"`) deterministically scores `LOW` at 0 with a checklist note to confirm the diff is populated. Paths are canonicalized before scoring — backslashes become forward slashes, leading `./` and `/` segments are stripped, and duplicates are deduplicated — so repeated separator-variant paths cannot inflate `fileCount` or the blast score.

An issue accepts up to 50 labels and 50 critical modules. A PR accepts up to 500 paths and 50 custom service boundaries with up to 32 prefixes each. A checklist accepts up to 100 issues and 100 PRs. Paths and prefixes are limited to 512 characters.

## Local verification and packaging

Run with Node.js `>= 20.0.0`. The source tree has **62/62** passing tests, including hardened edge-case coverage for blank optional Jira fields, empty pull requests, and duplicate or separator-variant diff paths. The focused 36-test suite reports **100%** line, branch and function coverage for both source modules.

```bash
cd tracks/bounties/codegeist_2026
node --test
node --experimental-test-coverage --test test/riskEngine.test.js test/demoServer.test.js test/publishBundle.test.js
```

Build and verify the 14-file publish bundle with `node scripts/build_publish_bundle.mjs --out-dir <bundle-dir> --run-tests`, then `node scripts/build_publish_bundle.mjs --verify-dir <bundle-dir> --run-tests`. The bundle runs the shipped Workbench and Phase 1 suites. Render the local storyboard and gallery with `python scripts/render_demo_assets.py --out-dir <asset-dir> --smoke-gallery` (Playwright and a supported system browser required). Use `--dry-run` to emit the storyboard manifest or omit `--smoke-gallery` for the full video with TTS and FFmpeg. The packaging and asset scripts run from the source checkout.

## Phase 3 Forge deployment (pending)

1. Install the Atlassian Forge CLI (`npm install -g @forge/cli`) and log in (`forge login`).
2. Register the app with `forge register` to replace the all-zero `app.id` placeholder in `manifest.yml`.
3. From the app directory, set `RELEASEPULSE_REQUIRE_REGISTERED_APP=1` when running `node --test` to check the manifest's ID before deployment.
4. Run `forge deploy` and `forge install` for your Atlassian site.

### Connect an external MCP client

1. Have an Atlassian site admin enable exposure of the installed Forge app's MCP tools for the site.
2. Connect the client to `https://mcp.atlassian.com/forge/<appId-UUID>` using the registered UUID from `app.id`.
3. Complete Atlassian OAuth 2.1 authorization in the client.
4. Run tool discovery (`tools/list`) and verify that `analyze-issue-risk`, `map-pr-blast-radius`, and `build-release-checklist` appear.

## Judge Verification Checklist

- [x] One `rovo:mcp` module with exactly `key`, `name`, and `tools`, a name of at most 30 characters, and three tools within the 20-tool limit.
- [x] `rovo:agent` bound to all 3 read-only `GET` actions.
- [x] Zero external runtime dependencies and zero hardcoded secrets.
- [x] `node --test` exercises the manifest contract, Forge invocation shape, and release scoring offline.
- [ ] Registered app ID, site installation, and external OAuth tool discovery.