atlassian-dc-mcp: Instructions file for Claude Code

CLAUDE.md

atlassian-dc-mcp CLAUDE.md is an instructions file for Claude Code from MrRefactoring/atlassian-dc-mcp. It costs 2,256 tokens per session, scanned A, original, from a forked repository, MIT.

Repository instructions for a coding project that connects Atlassian Data Center products such as Jira, Confluence, and Bitbucket to an MCP server. It documents commands for a pnpm workspace monorepo, which is one repository containing several related packages.

In plain words
What is it for?
Working on the project, building one or all packages, running Vitest tests, checking TypeScript types, linting code, and optionally running a live Jira smoke test.
Why use it?
It gives coding agents the project-specific commands and build order they need, reducing mistakes when installing dependencies, building packages, testing, type-checking, or linting.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is MrRefactoring/atlassian-dc-mcp's own configuration. It tells Claude Code how to work on atlassian-dc-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything atlassian-dc-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MrRefactoring/atlassian-dc-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MrRefactoring/atlassian-dc-mcp/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/MrRefactoring/atlassian-dc-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for atlassian-dc-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mrrefactoring/atlassian-dc-mcp/claude-md.svg)](https://agentmods.dev/instructions/mrrefactoring/atlassian-dc-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mrrefactoring/atlassian-dc-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/mrrefactoring/atlassian-dc-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,256 This file is loaded in full into every session.
When invoked 2,256 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02256 $0.02256
Opus 5 $0.01128 $0.01128
Sonnet 5 $0.00451 $0.00451
Haiku 4.5 $0.00226 $0.00226

Measured 7d ago against content hash 81bf0fa9717e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

atlassian-dc-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

# Install dependencies (pnpm workspace monorepo)
pnpm install

# Build all packages (core must build first — other packages depend on its types)
pnpm build

# Build a single package
pnpm --filter jira-datacenter-mcp build
pnpm --filter confluence-datacenter-mcp build
pnpm --filter bitbucket-datacenter-mcp build
pnpm --filter datacenter-mcp-core build

# Run all tests (Vitest, per package)
pnpm test

# Run tests for one package
pnpm --filter jira-datacenter-mcp test

# Run a single test by name
pnpm --filter jira-datacenter-mcp exec vitest run -t 'test name'

# Typecheck (tsc --noEmit over src + tests; vitest itself doesn't type-check)
pnpm typecheck

# Lint (ESLint flat config, root-level — covers all packages; the generated jiraClient/ and confluenceClient/ dirs are excluded, but the hand-written bitbucketClient/ is linted)
pnpm lint
pnpm lint:fix

# Opt-in E2E smoke test against a real Jira DC instance (skips itself with no config; see packages/jira/.env.live.example)
pnpm --filter jira-datacenter-mcp test -- jira-service.live

# Dev mode (tsc --watch) per product
pnpm dev:jira
pnpm dev:confluence
pnpm dev:bitbucket

# Changeset for a release-worthy PR
pnpm changeset

Architecture

This is a pnpm workspace monorepo publishing four npm packages from packages/:

  • core (datacenter-mcp-core) — shared runtime: MCP server bootstrap, layered config resolution, error handling, and the interactive setup CLI. Every product package depends on it via workspace:^.
  • jira (jira-datacenter-mcp), confluence (confluence-datacenter-mcp), bitbucket (bitbucket-datacenter-mcp) — one MCP server per Atlassian product, structurally identical to each other.

Per-product package structure

Each product package follows the same shape:

  • src/server.ts — entry point / orchestrator. Initializes runtime config, validates required env vars, constructs the service and the MCP server (createMcpServer), calls the register*(server, service) functions from src/tools/, src/resources.ts, and src/prompts.ts, then connectServer to start listening on stdio. It contains no server.registerTool calls itself — just wiring.
  • src/tools/<group>.ts — the actual tool registrations, grouped by resource/domain. bitbucket mirrors the client's api/ namespaces (projects, repositories, pullRequests, builds, permissions, authentication, security); jira uses issues, projects, users, workflows, agile, admin; confluence uses content, spaces, attachments, users, webhooks, admin. Each file exports register<Group>Tools(server, service) — a flat, repetitive list of server.registerTool(name, { description, inputSchema }, handler) calls. When adding a tool, follow the neighbouring pattern rather than introducing abstraction.
  • src/resources.ts / src/prompts.tsregisterResources(server, service) and registerPrompts(server[, service]), one per file, for the product's MCP resources and prompts.
  • src/constants.ts (jira/confluence) — the shared <product>InstanceType description string imported by the tool modules.
  • src/run.ts — the compiled bin entry (package.json bindist/run.js). A tiny dispatcher: run setup dynamically imports ./setup.js, otherwise it imports ./server.js to boot the MCP server.
  • src/index.ts — barrel only (re-exports the service, config, and mappers as the package's library surface). It is not the executable and has no side effects; the runnable entry is server.ts.
  • src/<product>Service.ts — a <Product>Service class wrapping the product's API client. Exposes one method per tool, each delegating to handleApiOperation (from core) for consistent success/error response shaping. Also exports the zod schemas (jiraToolSchemas, etc.) consumed by the src/tools/*.ts modules.
  • src/<product>Client/ — the API client. jira/confluence: a generated OpenAPI client (services + models + core/ request plumbing) committed to the repo, not regenerated at build time — treat those files as generated output and prefer changing how <product>Service.ts calls into them over hand-editing. bitbucket: a hand-written trello.js-style client — core/ (a createBitbucketClient factory over a small httpClient, plus helpers.ts with the route tagged-template URL builder and pickBody), api/ (one free function per endpoint, grouped by resource into namespaces), parameters/ (one flat Zod schema per endpoint's named parameters, request body fields flattened in), models/ (one Zod schema + inferred type per model), and interface/ (client types: HttpClient, SendRequestOptions, RestPage, …). It is normal hand-written code: linted, and edited directly. The service constructs it once (this.bb = createBitbucketClient({...})) and calls this.bb.<group>.<fn>({named}).
  • src/config.ts — declares a ProductDefinition (env var names, default API base path, strippable suffixes) and exposes get<Product>RuntimeConfig() / getMissingConfig() built on core's config layer.
  • src/setup.ts — wires the product's ProductDefinition into core's shared runSetupCli, producing the product's setup subcommand (dispatched by src/run.ts).

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 96 lines · 2,256 tokens per session scan A 81bf0fa9717e

Subscribe to this mod's changes

atlassian-dc-mcp CLAUDE.md is an instructions file published in the GitHub repository MrRefactoring/atlassian-dc-mcp (3 stars, last pushed 17d ago), licensed MIT. It adds 2,256 tokens to every session, about $0.0113 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens