scopeguard-mcp-server
Reads Confluence page storage XML, extracts heading sections and hashes them, compares live page versions against stored baselines, and surfaces linked Jira issues and readiness scores via a Confluence content byline item.
Reads and writes Jira issues, acceptance criteria, sub-tasks, comments, and labels; scans project issues for sprint readiness; and provides Jira issue panel and project dashboard views for drift, evidence, blockers, and readiness.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ScopeGuard MCP
Spec-to-sprint drift detection and release readiness verification built on Atlassian Forge.
Engineering teams draft specifications and Architecture Decision Records (ADRs) in Confluence, track sprint work in Jira, and write code inside AI-assisted IDEs. When a product manager edits a Confluence specification mid-sprint, both the Jira acceptance criteria and the developer's coding context go stale. ScopeGuard MCP closes that loop inside Atlassian Forge without external servers, databases, or third-party LLM keys.
Architecture Overview
ScopeGuard runs on the Forge nodejs22.x runtime using user-scoped OAuth permissions (api.asUser()).
+-----------------------------------+ +--------------------------------------+
| External AI IDE (Claude/Cursor) | | Jira & Confluence UI Kit 2 Surfaces |
| OAuth 2.1 via | | - jira:issuePanel (Drift & Diffs) |
| mcp.atlassian.com/forge/<app-id> | | - jira:projectPage (Sprint Matrix) |
+-----------------+-----------------+ | - confluence:contentBylineItem |
| | - rovo:agent (ScopeGuard Steward) |
v +------------------+-------------------+
+--------------------------------------------------------------+-------------------+
| Atlassian Forge Runtime (nodejs22.x) |
| |
| [src/actions.ts] <----- [src/engine/service.ts] -----> [src/resolvers.ts] |
| | | | |
| v v v |
| @forge/api (Jira v3 + Confluence v2 REST) @forge/kvs (storage:app) |
| - Issue & remote link resolution - baseline:{issueKey}:{pageId} |
| - Confluence storage XML fetch - evidence:{issueKey} |
| - Sub-task creation & audit comments - blockers:{issueKey} |
| - Deterministic SHA-256 section diffing - audit:{projectKey}:{isoDate} |
| - Isolated preview state - demo:* keys |
+----------------------------------------------------------------------------------+Deterministic Drift Engine and Before/After Diffs
Core drift detection lives in src/engine/driftEngine.ts and relies on Node's built-in node:crypto module.
The Confluence parser reads storage XHTML, extracts
<h1>through<h3>sections, decodes HTML entities, normalizes whitespace, and hashes each section with SHA-256.Locking a baseline stores
{ pageId, specVersion, sectionHashes, sections, capturedAt }in@forge/kvs.Subsequent checks compare the live Confluence page version and section hashes against the stored baseline, classifying each heading as
UNCHANGED,MODIFIED,ADDED, orREMOVED.For every changed section, the diff payload includes both
baselineExcerptandliveExcerptso engineers see a direct Before vs After comparison inside Jira and in IDE MCP responses.Readiness scores run from
0to100:100when aligned with zero blockers,95when drift is acknowledged via implementation evidence for the live spec version, and lower when unacknowledged edits (-10version drift,-15modified,-20removed,-10added) or active release blockers (-25each) exist.
Quick Demo Mode (Isolated Preview State)
On any Jira issue with NO_LINKED_SPEC, jira:issuePanel renders Run Quick Demo Preview alongside a Clear Demo Preview reset control. Clicking Run Quick Demo Preview populates a realistic drifted contract example (including Before vs After excerpts and sample IDE verification proof) isolated under demo: KVS keys. Real project baselines, Jira comments, and production audit logs stay untouched.
Exposed Modules
Module Type | Key | Purpose |
|
| In-product Rovo agent ( |
|
| Hosted MCP server exposing all 6 typed |
|
| Compares live Confluence section hashes against the stored Jira baseline |
|
| Returns acceptance criteria, Before/After ADR excerpts, score, and gate status |
|
| Scans non-subtask project issues, computes aggregate readiness, and lists active blockers |
|
| Creates a follow-up Jira sub-task and posts an audit comment summarizing the delta |
|
| Stores structured IDE/CI verification ( |
|
| Records an active release blocker in KVS, adds |
|
| UI Kit 2 panel with drift badge, Before/After diffs, evidence log, and Quick Demo Mode |
|
| UI Kit 2 sprint matrix with KPI strip ( |
|
| Confluence page byline showing all linked Jira issues and live readiness scores |
Structured IDE Evidence Fields
When an external MCP client or CI runner calls log-impl-evidence, it can attach structured verification fields alongside issueKey and evidenceNote:
Input Field | Type | Required | Description |
|
| Yes | Target Jira issue key such as |
|
| Yes | Concise summary of the verification run |
|
| No | Confluence page version verified during implementation |
|
| No | Git commit hash tied to the verified change |
|
| No | Count of passing automated tests |
|
| No | Count of failing automated tests |
ScopeGuard records these fields in @forge/kvs and formats them into the Jira audit comment so reviewers trace each commit directly to the exact Confluence spec version.
Least-Privilege Permissions
ScopeGuard requests five Forge scopes in manifest.yml: storage:app, read:jira-work, write:jira-work, read:page:confluence, and read:confluence-content.all. Confluence write scopes are omitted because ScopeGuard only reads Confluence specifications and writes audit artifacts to Jira and KVS.
Related MCP server: MCP Atlassian Server
Setup and Deployment
Prerequisites
Node.js matching
@forge/cli@16.0.0engine requirements:^22.23.4 || ^24.22.1 || >=26.12.1(note: local environments running older Node 24 releases such asv24.13.1should switch to22.23.4vianvmbefore runningnpx @forge/cli@latest)An Atlassian Cloud Developer site with both Jira and Confluence enabled
An Atlassian API token created at
id.atlassian.com/manage/api-tokens
If your machine currently runs an older Node 24 build (for example v24.13.1), install and select Node 22.23.4 first:
nvm install 22.23.4
nvm use 22.23.4
node -vLocal Verification
Install local dependencies, run TypeScript type checking, and execute the unit test suite:
npm install
npx tsc --noEmit
npm testRegister, Lint, and Deploy to Forge
Invoke the Forge CLI via npx so no global package installation is required:
npx @forge/cli@latest login
npx @forge/cli@latest register
npx @forge/cli@latest lint --fix
npx @forge/cli@latest deploy
npx @forge/cli@latest installDuring forge install, select both your Jira and Confluence sites for the target developer instance.
Note on app.rovo metadata: app.rovo (tag, description, keywords) is currently omitted (commented) in manifest.yml because @forge/cli@16.0.0 (@forge/manifest@13.9.1) rejects it during lint and deploy. Re-enable app.rovo once Forge CLI updates ahead of the January 5, 2027 enforcement date.
Enable External MCP Tools in Atlassian Administration
Forge keeps external rovo:mcp tool access disabled by default until a site administrator enables it.
Open Atlassian Administration (
admin.atlassian.com) and select your target organization.Navigate to Apps, select Sites, choose your developer site, and open Connected apps.
Open ScopeGuard MCP and select the Tools tab.
Toggle external access on for all 6 actions (
check-spec-drift,verify-contract-gate,scan-sprint-readiness,sync-adr-to-subtasks,log-impl-evidence,flag-release-blocker).
Connecting an AI IDE via Atlassian MCP
Once external tools are enabled, point your MCP-compatible coding client to the hosted Forge MCP endpoint using the app UUID recorded in manifest.yml:
https://mcp.atlassian.com/forge/<app-id>Replace <app-id> with the UUID portion of app.id in manifest.yml (after the ari:cloud:ecosystem::app/ prefix).
Claude Code Configuration
claude mcp add --transport http scopeguard https://mcp.atlassian.com/forge/<app-id>Authenticate via the OAuth 2.1 browser prompt when Claude Code connects for the first time. All Jira and Confluence requests execute under your signed-in Atlassian user permissions.
Cursor Configuration
Add the hosted server entry to .cursor/mcp.json:
{
"mcpServers": {
"scopeguard": {
"url": "https://mcp.atlassian.com/forge/<app-id>"
}
}
}Reload MCP servers in Cursor settings and complete the OAuth 2.1 sign-in prompt.
Judge Walkthrough (60-Second Verification)
Judges can verify every surface on a test Jira project and Confluence space in two ways: instant preview via Quick Demo Mode or live end-to-end roundtrip.
Instant Quick Demo Preview: Open
ScopeGuard Contract & Drifton any Jira issue without a linked Confluence page and click Run Quick Demo Preview. Inspect the simulated Before/After section diff, readiness score, and sample IDE evidence, then click Clear Demo Preview when ready to test live data.Baseline Capture: Create a Confluence page with two or three
<h2>sections, link its URL to a Jira issue (via Web Link or issue description), open ScopeGuard Contract & Drift, and click Lock Spec Baseline. The badge turns green (ALIGNED,100/100).Mid-Sprint Spec Drift & Before/After Diffs: Edit one
<h2>section in Confluence and publish a new page version. Refresh the Jira issue panel to inspectSPEC DRIFT DETECTED, theMODIFIEDrow withbaselineExcerptvsliveExcerpt, and the updated readiness score.IDE MCP Roundtrip: From Claude Code or Cursor, run
verify-contract-gatefor the issue key, review the Before/After ADR excerpt, update code/tests, and calllog-impl-evidencewithcommitSha,testsPassed,testsFailed, and the livespecVersion. Refreshing the Jira panel flips the status toDRIFT VERIFIED(95/100) and displays the audit comment.Rovo Agent and Cross-Surface Views: Open Rovo Chat inside Jira, select ScopeGuard Steward, and run the sprint drift starter prompt to trigger
scan-sprint-readiness, drill down withcheck-spec-drift, and testsync-adr-to-subtasksorflag-release-blocker. Open ScopeGuard Readiness from the Jira project sidebar to inspect the KPI strip (Total Scanned,Aligned,Drifted,Active Blockers,Avg Readiness) and interactive status filters (All,Drifted,Blocked,Aligned,Unbaselined), then click the ScopeGuard Linked Jira Status byline item on Confluence to confirm reverse-linked reporting.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
30+ deterministic dev and delivery tools: linting, metrics, diagrams, model advice, AI-text checks.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and retrieve data from Jira and Confluence directly within MCP-compatible IDEs. It provides tools for managing Jira tickets and Confluence pages using OAuth 2.0 authentication and Hexagonal Architecture.MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with Atlassian Cloud APIs for Confluence and Jira, supporting document management, search, issue tracking, and sprint operations through natural language.402MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create, search, update, and manage Jira issues and Confluence pages via natural language through the Atlassian Cloud REST APIs.MIT
- AlicenseAqualityBmaintenanceEnables coding agents to turn Jira Cloud tickets into ready-to-build briefs, verify local branches against acceptance criteria, and prepare QA handoffs, with optional previewed and audited write-back.1063 npmMIT