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.
curl -O https://raw.githubusercontent.com/MrRefactoring/atlassian-dc-mcp/master/CLAUDE.mdgit clone --depth 1 https://github.com/MrRefactoring/atlassian-dc-mcpWrote 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.
[](https://agentmods.dev/instructions/mrrefactoring/atlassian-dc-mcp/claude-md)<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>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.
| Model | Per session | Once 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 |
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.
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 interactivesetupCLI. Every product package depends on it viaworkspace:^.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 theregister*(server, service)functions fromsrc/tools/,src/resources.ts, andsrc/prompts.ts, thenconnectServerto start listening on stdio. It contains noserver.registerToolcalls itself — just wiring.src/tools/<group>.ts— the actual tool registrations, grouped by resource/domain. bitbucket mirrors the client'sapi/namespaces (projects,repositories,pullRequests,builds,permissions,authentication,security); jira usesissues,projects,users,workflows,agile,admin; confluence usescontent,spaces,attachments,users,webhooks,admin. Each file exportsregister<Group>Tools(server, service)— a flat, repetitive list ofserver.registerTool(name, { description, inputSchema }, handler)calls. When adding a tool, follow the neighbouring pattern rather than introducing abstraction.src/resources.ts/src/prompts.ts—registerResources(server, service)andregisterPrompts(server[, service]), one per file, for the product's MCP resources and prompts.src/constants.ts(jira/confluence) — the shared<product>InstanceTypedescription string imported by the tool modules.src/run.ts— the compiled bin entry (package.jsonbin→dist/run.js). A tiny dispatcher:run setupdynamically imports./setup.js, otherwise it imports./server.jsto 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 isserver.ts.src/<product>Service.ts— a<Product>Serviceclass wrapping the product's API client. Exposes one method per tool, each delegating tohandleApiOperation(fromcore) for consistent success/error response shaping. Also exports thezodschemas (jiraToolSchemas, etc.) consumed by thesrc/tools/*.tsmodules.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.tscalls into them over hand-editing. bitbucket: a hand-written trello.js-style client —core/(acreateBitbucketClientfactory over a smallhttpClient, plushelpers.tswith theroutetagged-template URL builder andpickBody),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), andinterface/(client types:HttpClient,SendRequestOptions,RestPage, …). It is normal hand-written code: linted, and edited directly. The service constructs it once (this.bb = createBitbucketClient({...})) and callsthis.bb.<group>.<fn>({named}).src/config.ts— declares aProductDefinition(env var names, default API base path, strippable suffixes) and exposesget<Product>RuntimeConfig()/getMissingConfig()built oncore's config layer.src/setup.ts— wires the product'sProductDefinitionintocore's sharedrunSetupCli, producing the product'ssetupsubcommand (dispatched bysrc/run.ts).
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.
- 7d ago First seen · 96 lines · 2,256 tokens per session scan A 81bf0fa9717e
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.
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.
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).
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.
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.
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).
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.