docs-mcp-server: Instructions file for Codex

AGENTS.md

docs-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from arabold/docs-mcp-server. It costs 740 tokens per session, scanned A, original, MIT.

A repository-specific instruction guide for a documentation server built with Node.js and TypeScript. It explains the project context, development process, required tools, and common commands.

In plain words
What is it for?
It helps with setup, building, linting, formatting, type checking, testing, reading the project documentation, and following its architecture and Git workflow.
Why use it?
It gives a coding agent the background and working rules needed to make changes that fit the repository.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is arabold/docs-mcp-server's own configuration. It tells Codex and OpenCode how to work on docs-mcp-server 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 docs-mcp-server configures →

About the project

Grounded Docs is an MCP server that builds a local, version-aware index of documentation from websites, code repositories, package registries, local files, and archives for AI coding assistants. It helps assistants retrieve current project-specific documentation and supports MCP-compatible clients such as Claude, Cline, and similar tools. The catalogue add-ons provide skills, commands, and instructions for working with this documentation server.

arabold/docs-mcp-server · 1,930 stars · on GitHub · grounded.tools

Reuse

Borrowing it

Nothing to install: this file belongs to arabold/docs-mcp-server. 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/arabold/docs-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/arabold/docs-mcp-server

Made for: Codex, OpenCode.

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 docs-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/arabold/docs-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/arabold/docs-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/arabold/docs-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/arabold/docs-mcp-server/agents-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 docs-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/arabold/docs-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/arabold/docs-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 740 This file is loaded in full into every session.
When invoked 740 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.00740 $0.00740
Opus 5.5 $0.00296 $0.00296
Sonnet 5.5 $0.00148 $0.00148
Haiku 4.5 $0.00074 $0.00074

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

Security

Grade A, and why

docs-mcp-server 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 10d 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.

AGENTS.md · 45 lines

How it starts

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

Agent Instructions for docs-mcp-server

Read README.md for setup and configuration, and ARCHITECTURE.md before changing how services interact. For everything else, the code and the comments next to it are the reference.

Environment

  • Use Node.js 22 (nvm use 22), which CI runs, and do not raise the engine floor. Open databases only through openDatabase, which turns a better-sqlite3 binary that cannot load into one actionable error.
  • Use npm ci to get node_modules. Use npm install only to change dependencies on purpose.
  • Run occasional tools such as promptfoo through npx -y <pkg>@<version> in a package.json script instead of adding a dependency.

Checks

  • Run npm run lint, npm run typecheck and npm test before you push. The Husky hooks only run Biome on staged files and commitlint on the message; never bypass them.
  • tsconfig.json is incremental. Delete .tsbuildinfo before a typecheck you rely on, or a warm cache can hide errors that CI catches.
  • Run one test file with npx vitest run <path>.

Git

  • Branches: <type>/<issue>-<desc>, e.g. feat/123-add-cache.
  • Commits follow Conventional Commits, enforced by commitlint: <type>(<scope>): <subject>, with the subject in lower case, no trailing period, and the header under 100 characters.
  • Never commit secrets or .env files.

Code

  • No any unless absolutely necessary, and no non-null assertions (!). Biome does not flag either.
  • Every exported function and class has TSDoc: a summary first, then params and returns.
  • Catch errors at API and CLI boundaries. The API answers with standard HTTP status codes.
  • Logging: console.* for CLI results, logger.info for state changes, logger.debug for flow details. Prefix info, warning and error messages with an emoji (❌ for errors); debug messages have none. Keep binary content out of error logs.
  • The web UI follows src/web/client/CONVENTIONS.md.

Tests

  • Test observable behavior, not internal state. Prefer E2E, then integration tests; write unit tests for complex logic only. Use vi.mock() sparingly.
  • src/foo.ts is tested in src/foo.test.ts, unit and integration tests together. Do not add *.integration.test.ts or *.spec.ts files.
  • System-wide E2E suites live in test/*-e2e.test.ts. test/README.md describes the mock server, the crawl harness and the worker helpers.
  • Each test checks one behavior. Unit tests take under 100 ms.
  • npm test skips the live and Docker suites: run them with npm run test:live and npm run test:docker. After changing authentication or discovery, run the manual Clerk check (npm run test:auth:clerk -- --app <app_id>).
  • Reuse the fixtures in test/fixtures/.

Read the full file on GitHub · 45 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. 10d ago Changed · -16 tokens per session 3335f7f7cd1a
  2. 21d ago Changed · +21 tokens per session 595c6284a7e1
  3. 1mo ago Changed · -109 lines · -2,903 tokens per session 917a080ca74b
  4. 1mo ago Changed · +9 lines · +988 tokens per session 57d13d708fba
  5. 2mo ago Changed · +5 lines · +264 tokens per session 35350552b038
  6. 2mo ago Changed · +1 lines · +102 tokens per session 7efab7d484e4
  7. 3mo ago First seen · 139 lines · 2,284 tokens per session scan A 4195936bd49f

Subscribe to this mod's changes

docs-mcp-server AGENTS.md is an instructions file published in the GitHub repository arabold/docs-mcp-server (1,930 stars, last pushed 10d ago), licensed MIT. It adds 740 tokens to every session, about $0.0030 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-30.

Related

docs-mcp-server AGENTS.md compared with instructions from other repositories

docs-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-mcp-server AGENTS.mdarabold/docs-mcp-serverInstructions file1.9k10d agoMITA740Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot