Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/twinity1/better-confluence-mcp/agents-mdgit clone --depth 1 https://github.com/twinity1/better-confluence-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/twinity1/better-confluence-mcp/agents-md)<a href="https://agentmods.dev/instructions/twinity1/better-confluence-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/twinity1/better-confluence-mcp/agents-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 | $0.01194 | $0.01194 |
| Opus 5 | $0.00597 | $0.00597 |
| Sonnet 5 | $0.00239 | $0.00239 |
| Haiku 4.5 | $0.00119 | $0.00119 |
Grade A, and why
better-confluence-mcp AGENTS.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 4d 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 — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS
Audience: LLM-driven engineering agents
This file provides guidance for autonomous coding agents working inside the Better Confluence MCP repository.
What This MCP Does
This MCP is designed for coding agents. It syncs Confluence spaces to local HTML files, so agents can:
- Sync spaces to
.better-confluence-mcp/directory - Edit HTML files using native file tools
- Push changes back to Confluence
No complex API calls mid-conversation. Just simple file operations.
Repository map
| Path | Purpose |
|---|---|
src/mcp_atlassian/ |
Library source code (Python ≥ 3.10) |
├─ confluence/ |
Confluence client, mixins, and operations |
├─ models/ |
Pydantic data models for API responses |
├─ servers/ |
FastMCP server implementations |
├─ local_storage.py |
Local filesystem caching logic |
└─ utils/ |
Shared utilities (auth, logging, SSL) |
tests/ |
Pytest test suite with fixtures |
Available MCP Tools
| Tool | Description |
|---|---|
confluence_sync_space |
Sync a space to local filesystem (incremental by default) |
confluence_read_page |
Fetch a single page and save locally |
confluence_push_page_update |
Push local HTML changes back to Confluence |
Mandatory dev workflow
uv sync --frozen --all-extras --dev # install dependencies
pre-commit install # setup hooks
pre-commit run --all-files # Ruff + Prettier + Pyright
uv run pytest # run full test suite
Tests must pass and lint/typing must be clean before committing.
Testing the MCP Server
Using MCP Inspector (Recommended)
npx @modelcontextprotocol/inspector uv --directory . run better-confluence-mcp
Using JSON-RPC from Command Line
MCP servers communicate via JSON-RPC over stdio. Test directly:
# Initialize the server
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | uv run better-confluence-mcp
# Multiple requests with heredoc
uv run better-confluence-mcp << 'EOF'
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}
EOF
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.
- 4d ago First seen · 163 lines · 1,194 tokens per session scan A 54fe9f9f58f4
better-confluence-mcp AGENTS.md is an instructions file published in the GitHub repository twinity1/better-confluence-mcp (2 stars, last pushed 8d ago), licensed MIT. It adds 1,194 tokens to every session, about $0.0060 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
mcp-pandoc AGENTS.md
Instructions for vivekVells/mcp-pandoc, covering agents.md, what this is, where things are, deeper context and commands.
agentic-resume-builder CLAUDE.md
Claude Code instructions for WtotdeD/agentic-resume-builder, covering agentic-resume-builder development guidelines, what this repo is, active technologies, package manager and validation.
fcp-sheets CLAUDE.md
Instructions for os-tack/fcp-sheets, covering fcp-sheets, project overview, architecture, key patterns and commands.
paperless-ngx-mcp-server CLAUDE.md
Claude Code instructions for cbsmiley/paperless-ngx-mcp-server, covering claude.md, project overview, common commands, architecture and entry points.
hermes-procurement-pricing-mcp AGENTS.md
AGENTS.md instructions for felix-windsor/hermes-procurement-pricing-mcp, a project described as: Secure procurement quotation comparison MCP service with document parsing, mock market pricing, anomaly detection, and Telegram/Hermes integration.
mcp-svg-marp CLAUDE.md
Claude Code instructions for koppe-pan/mcp-svg-marp, covering mcp-svg-marp tool instructions, mcp tools available, 📊 convertsvgtomarp, 🔍 analyzesvg and automatic slide creation workflow.