da-mcp: Instructions file for Claude Code

CLAUDE.md

da-mcp CLAUDE.md is an instructions file for Claude Code from adobe-rnd/da-mcp. It costs 1,256 tokens per session, scanned A, original, Apache-2.0.

Instructions for developing DA MCP, a remote connector that lets AI assistants manage Document Authoring through Cloudflare Workers. It documents the project architecture, commands, endpoints, and testing approach.

In plain words
What is it for?
Use it when developing or operating the DA MCP server, running its local endpoints, checking types and tests, or deploying it to Cloudflare.
Why use it?
It gives contributors the details needed to run, check, and deploy this connector consistently.

Instructions file for Claude Code

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

This is adobe-rnd/da-mcp's own configuration. It tells Claude Code how to work on da-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 da-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adobe-rnd/da-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/adobe-rnd/da-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/adobe-rnd/da-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 da-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/adobe-rnd/da-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/adobe-rnd/da-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/adobe-rnd/da-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/adobe-rnd/da-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for da-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/adobe-rnd/da-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/adobe-rnd/da-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,256 This file is loaded in full into every session.
When invoked 1,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 original No closer match found in the catalogue.
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.01256 $0.01256
Opus 5.5 $0.00502 $0.00502
Sonnet 5.5 $0.00251 $0.00251
Haiku 4.5 $0.00126 $0.00126

Measured 1mo ago against content hash a5dd31219bbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

da-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 1mo 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 · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 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.

Project Overview

DA MCP is a remote Model Context Protocol (MCP) server for Document Authoring (DA). It provides LLM assistants with direct access to DA management operations via Cloudflare Workers with streamable HTTP transport.

Architecture flow: MCP Client → Cloudflare Worker (17 tools) → DA Admin API (admin.da.live) or AEM (HLX6) Admin API (api.aem.live); legacy preview/publish calls go to the Helix admin API (admin.hlx.page) instead

Development Commands

npm run dev              # Local development with hot reload (http://localhost:8787)
npm run lint             # ESLint check
npm run test             # Run Vitest tests
npm run test:watch       # Run tests in watch mode
npm run type-check       # TypeScript type checking without emit
npm run deploy           # Deploy to production Cloudflare Workers
npm run deploy:ci        # Deploy to CI environment with versioned config
npm run deploy:production # Deploy to production with versioned config

Local endpoints:

  • Health: http://localhost:8787/health
  • MCP: http://localhost:8787/mcp

Test with MCP Inspector: Connect to http://localhost:8787/mcp with Authorization: Bearer YOUR_DA_TOKEN header.

Code Structure

src/
├── index.ts           # Cloudflare Worker entry point, token extraction, health check
├── mcp/
│   ├── server.ts      # McpServer factory with registerTool() + Zod schemas (one per tool)
│   └── handlers.ts    # Tool implementation handlers (one per tool)
├── da-admin/
│   ├── client.ts      # DA Admin API HTTP client with token pass-through
│   └── types.ts       # TypeScript interfaces for API responses
└── utils/
    └── path.ts        # Path normalization utilities

Key Patterns

  • Token pass-through: Authorization header extracted in index.ts, passed to DAAdminClient, forwarded to DA Admin API
  • SDK transport: WebStandardStreamableHTTPServerTransport (stateless, per-request) handles MCP protocol — fresh McpServer + transport created per request
  • Tool registration: Each tool registered via server.registerTool() with a Zod inputSchema in server.ts; business logic lives in handlers.ts
  • FormData for content: Create/update/copy/move operations use FormData with Blob for file content
  • Copy/move API: Endpoint is /copy|move/{org}/{repo}/{sourcePath}; body is FormData with destination = /{org}/{repo}/{destinationPath}
  • Empty responses: client.ts reads body as text first; returns {} for empty/no-content responses (204 etc.)
  • 30-second timeout: All API requests have AbortController timeout
  • Path normalization: All handlers normalize paths via src/utils/path.ts before passing to client; .html extension auto-added where needed for source file operations, but stripped for preview/publish (see below) since those are page/URL paths, not source file paths
  • Preview/live on legacy DA: admin.da.live has no preview/live routes of its own — DAAdminClient.previewContent/unpreviewContent/publishContent/unpublishContent call the Helix admin API (admin.hlx.page) directly via global fetch() instead of the daadminService binding, always targeting the main ref. Preview POST calls additionally send x-content-source-authorization alongside Authorization.
  • Preview/live paths have no file extension: on both legacy and HLX6, da_preview_content/da_unpreview_content/da_publish_content/da_unpublish_content strip any extension from the given path via stripFileExtension() (src/utils/path.ts) before calling the client — AEM Edge Delivery preview/live URLs are always extensionless page routes.

Read the full file on GitHub · 92 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. 1mo ago Changed · +11 tokens per session a5dd31219bbc
  2. 2mo ago Changed · +6 lines · +299 tokens per session 42bf1e7e7f1b
  3. 2mo ago First seen · 86 lines · 946 tokens per session scan A fa9633408aac

Subscribe to this mod's changes

da-mcp CLAUDE.md is an instructions file published in the GitHub repository adobe-rnd/da-mcp (5 stars, last pushed 28d ago), licensed Apache-2.0. It adds 1,256 tokens to every session, about $0.0050 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

da-mcp CLAUDE.md compared with instructions from other repositories

da-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
da-mcp CLAUDE.mdadobe-rnd/da-mcpInstructions file528d agoApache-2.0A1,256Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode