ContextPulse MCP Server
by beaaan
README.md
# ContextPulse — Atlassian Forge Release-Readiness, Rovo Agent, MCP & Teamwork Graph Intelligence
**Built for Atlassian Codegeist 2026** (*Apps for Software Teams* + *Best Atlassian MCP* + *Best Rovo Agents* + *Best Teamwork Graph Integration*)
> *"Build with context. Ship with confidence."*
ContextPulse fuses **Jira issues**, **Confluence runbooks & ADRs**, **Pull Requests**, **Deployments**, **Active Incidents**, and **Team/DRI ownership** through the **Atlassian Teamwork Graph** into a single deterministic Release-Readiness & Incident Context Engine — exposed natively as a **Forge Custom UI (`jira:projectPage`)**, a **Rovo Agent (`rovo:agent`)**, and an **Atlassian MCP Server (`rovo:mcp` + JSON-RPC 2.0 + `SKILL.md`)**.

---
## Multi-Track Codegeist 2026 Capabilities
| Codegeist 2026 Track | Concrete Implementation in ContextPulse |
|---|---|
| **Apps for Software Teams (Main Track)** | Deterministic 5-dimension **Release-Readiness Score (0–100)** (`SHIP_CONFIDENTLY` / `SHIP_WITH_GUARDS` / `HOLD_RELEASE`), Confluence Runbook Drift Audit, Incident War-Room Dossier, and 1-click Confluence Markdown + Atlassian Document Format (ADF) Release Sign-Off Brief generator. |
| **Best App with Atlassian MCP (`rovo:mcp`)** | Canonical `rovo:mcp` Forge module in [`manifest.yml`](manifest.yml) (`app.rovo.description` + 5 typed `action` tools), live JSON-RPC 2.0 MCP server at `POST /api/mcp` & stdio runner (`bun run mcp:stdio`), plus open-source [`skills/contextpulse/SKILL.md`](skills/contextpulse/SKILL.md). |
| **Best Rovo Agents (`rovo:agent`)** | Canonical `rovo:agent` (`contextpulse-release-copilot`) in [`manifest.yml`](manifest.yml) with 4 domain-specific conversation starters, 5 Forge `action` handlers (`src/forge/index.ts`), real-time tool-call traces, and clickable Teamwork Graph node citations. |
| **Best Teamwork Graph Integration** | Fine-grained Teamwork Graph scopes (`read:graph:issue:jira`, `read:graph:page:confluence`, `read:graph:user:atlassian`, `read:graph:team:atlassian`, `read:graph:pull-request:external`, `read:graph:deployment:external`), GraphQL query for `api.asUser().requestTeamworkGraph()`, interactive SVG multi-hop BFS Blast-Radius Explorer, AND a **Live Public GitHub → Teamwork Graph Bridge**. |
---
## Exposed Forge Actions & MCP Tools (5 Tools)
1. **`analyze_release_readiness`** (`GET`) — Weighted `0–100` score across Jira Blocker Pressure (30%), PR Review & CI Hygiene (25%), Confluence Runbook Drift (20%), Deployment & Incident Blast Radius (15%), and DRI Coverage (10%).
2. **`trace_teamwork_graph_blast_radius`** (`GET`) — Breadth-first multi-hop traversal (`1–4` hops) across Teamwork Graph edges returning shortest causal paths, impacted teams, DRIs, and linked runbooks.
3. **`detect_runbook_drift`** (`GET`) — Flags Confluence runbooks & ADRs that lagged behind linked PR code changes (`CRITICAL` / `WARNING` / `FRESH`).
4. **`triage_incident_context`** (`GET`) — Builds an instant incident war-room brief linking suspect deployments, PRs, owning teams, on-call DRIs, and rollback playbooks.
5. **`publish_release_brief`** (`POST`) — Produces a ready-to-publish Confluence Release Sign-Off Brief in both Markdown and Atlassian Document Format (ADF).
---
## Quick Start (Local Console + MCP Server + Tests)
```bash
# 1. Install dependencies
bun install
# 2. Run TypeScript check & Vitest suite (validates manifest.yml, TWG BFS, scoring, Rovo, MCP JSON-RPC 2.0)
bun run typecheck
bun run test
# 3. Build & launch interactive console + live /api/mcp server on http://127.0.0.1:3042
bun run build
bun run start
# 4. Run Playwright E2E suite (includes live GitHub -> Teamwork Graph & JSON-RPC 2.0 MCP calls)
bun run test:e2e
# 5. Or run ContextPulse as a standalone stdio MCP server for Claude Desktop / Cursor
bun run mcp:stdio
```
### Deploying Directly to Atlassian Forge
```bash
npm install -g @forge/cli
forge login
forge register # binds manifest.yml app.id to your Atlassian Developer Console app
forge deploy
forge install # install onto your free Jira + Confluence + Rovo developer site
```
---
## Architecture & Repository Layout
- [`manifest.yml`](manifest.yml) — Canonical Atlassian Forge manifest (`jira:projectPage`, `rovo:agent`, `rovo:mcp`, 5 `action`s, 6 fine-grained Teamwork Graph scopes).
- [`src/core/teamwork-graph.ts`](src/core/teamwork-graph.ts) — Teamwork Graph GraphQL query, BFS blast-radius traversal, enterprise dataset, and live GitHub → Teamwork Graph bridge.
- [`src/core/scoring.ts`](src/core/scoring.ts) — Deterministic 5-dimension release scoring, Confluence runbook drift detector, incident triage dossier, and ADF brief builder.
- [`src/forge/index.ts`](src/forge/index.ts) — Forge Custom UI resolver & 5 Rovo/MCP action handlers.
- [`src/mcp/server.ts`](src/mcp/server.ts) — Spec-compliant JSON-RPC 2.0 MCP server (`initialize`, `tools/list`, `tools/call`, `resources/list`, `resources/read`).
- [`skills/contextpulse/SKILL.md`](skills/contextpulse/SKILL.md) — Open-source agent skill definition.
- [`PRIVACY.md`](PRIVACY.md) & [`LICENSE`](LICENSE) — Atlassian Marketplace-ready privacy policy and MIT license.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues