agentdocs-mcp CLAUDE.md

agentdocs-mcp CLAUDE.md is an instructions file for coding agents from hoornet/agentdocs-mcp. It costs 968 tokens per session, scanned A, original, MIT.

A set of contributor instructions for the AgentDocs MCP server, a program that lets compatible AI tools read, search, and edit AgentDocs Markdown files. It covers the repository layout, rules, tests, and release process.

In plain words
What is it for?
Use it when working on the TypeScript source, configuration, API client, tools, unit tests, smoke tests, or npm release documentation.
Why use it?
It gives developers the project context and constraints needed to modify the server without breaking known invariants or its publishing process.

Instructions file

Install

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.

agentmods
npx agentmods add instructions/hoornet/agentdocs-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/hoornet/agentdocs-mcp

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 agentdocs-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hoornet/agentdocs-mcp/claude-md.svg)](https://agentmods.dev/instructions/hoornet/agentdocs-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hoornet/agentdocs-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/hoornet/agentdocs-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 968 This file is loaded in full into every session.
When invoked 968 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00968 $0.00968
Opus 5 $0.00484 $0.00484
Sonnet 5 $0.00194 $0.00194
Haiku 4.5 $0.00097 $0.00097

Measured 5d ago against content hash 46b6286fba2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentdocs-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 5d 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 · 67 lines

How it starts

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

CLAUDE.md

Guidance for Claude Code (claude.ai/code) working in this repository.

What this is

agentdocs-mcp — the stdio MCP server for AgentDocs, published to npm and listed in the official MCP registry as io.github.hoornet/agentdocs-mcp. It gives MCP clients read/search/write access to AgentDocs Markdown docs.

ESM ("type": "module"), TypeScript, Node >=20, no runtime framework. Dependencies are just @modelcontextprotocol/sdk and zod.

Layout

Path Purpose
src/index.ts entry point — builds the McpServer, wires stdio transport, registers tools
src/config.ts env/config loading (AGENTDOCS_TOKEN, AGENTDOCS_URL)
src/client.ts HTTP client for the AgentDocs API (ApiError)
src/resolve.ts slug-or-UUID addressing
src/context.ts shared ToolContext / CredentialInfo types
src/tools/{read,write,share,comments}.ts the MCP tool registrations
test/*.test.mjs unit tests — no credentials, no network. npm run test:unit
test/smoke*.mjs smoke scripts, run by hand against a real instance (credentials required)
docs/PUBLISHING.md release procedure + directory/registry listings
server.json official MCP registry manifest — version must match the published npm version

Build with npm run build (tscdist/). npm run watch for incremental.

Two invariants that have each caused a shipped bug

1. The version lives in package.json and nowhere else. src/index.ts derives it at runtime via createRequire(import.meta.url)("../package.json").version. Do not "simplify" this into a hardcoded VERSION string. A hand-maintained literal is precisely what silently drifted two releases behind and made 0.6.0/0.6.1 report 0.5.2 to every client in the MCP initialize handshake. Fixed in 0.6.2 — keep it derived.

2. Never trust a lifecycle hook to produce the build. Publish with npm run release (= npm run build && npm publish), not bare npm publish.

Read the full file on GitHub · 67 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. 5d ago First seen · 67 lines · 968 tokens per session scan A 46b6286fba2e

Subscribe to this mod's changes

agentdocs-mcp CLAUDE.md is an instructions file published in the GitHub repository hoornet/agentdocs-mcp (1 stars, last pushed 2d ago), licensed MIT. It adds 968 tokens to every session, about $0.0048 per session on Opus 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.