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/tky0065/springdocs-mcp/claude-mdgit clone --depth 1 https://github.com/tky0065/springdocs-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/tky0065/springdocs-mcp/claude-md)<a href="https://agentmods.dev/instructions/tky0065/springdocs-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/tky0065/springdocs-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 | $0.01064 | $0.01064 |
| Opus 5 | $0.00532 | $0.00532 |
| Sonnet 5 | $0.00213 | $0.00213 |
| Haiku 4.5 | $0.00106 | $0.00106 |
Grade A, and why
springdocs-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 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 — 98 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
This is a Model Context Protocol (MCP) server that provides access to Spring Boot and Spring Framework documentation. It's a TypeScript-based tool published as @enokdev/springdocs-mcp on npm, enabling AI assistants to search and retrieve Spring documentation in real-time.
Commands
Building and Running
npm run build # Compile TypeScript to JavaScript (outputs to build/)
npm start # Run the compiled server
npm run dev # Build and start in one command
npm run watch # Watch mode for development
Testing
npm test # Run basic test suite (test.sh)
npm run test-npx # Test the npx package execution
./test-enhanced.sh # Enhanced test suite with multiple tool tests
Publishing and Versioning
npm run version:patch # Bump patch version and push tags
npm run version:minor # Bump minor version and push tags
npm run version:major # Bump major version and push tags
npm run release:dry # Test publish without actually publishing
npm run release:manual # Build and publish to npm
npm run release:check # Check current published version
CI/CD
npm run cicd:setup # Setup GitHub Actions for auto-release
npm run cicd:check # Check CI/CD configuration status
Architecture
Core Components
Server Entry Point (src/index.ts):
SpringBootMCPServerAdvancedclass orchestrates the entire MCP server- Uses MCP SDK's
Serverclass with stdio transport for communication - Handles 12 tools split between core documentation and advanced features
- All tool handlers route to either
docsServiceoradvancedService
Services Architecture:
SpringBootDocsServiceOptimized(src/services/springboot-docs-optimized.ts): Handles the 7 core documentation tools (search docs, projects, guides, references, concepts)AdvancedFeaturesService(src/services/advanced-features.ts): Handles the 5 advanced tools (ecosystem search, tutorials, version comparison, best practices, diagnostics)CacheService(src/services/cache.ts): In-memory caching with TTL (30min default, 24h for stable content)
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 · 98 lines · 1,064 tokens per session scan A 77996a74d82d
springdocs-mcp CLAUDE.md is an instructions file published in the GitHub repository tky0065/springdocs-mcp (22 stars, last pushed 6mo ago), licensed MIT. It adds 1,064 tokens to every session, about $0.0053 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-30.
Other instructions, from other repositories
docs-mcp AGENTS.md
Instructions for mmgeorge/docs-mcp, covering agents.md — developer and agent guide, project overview, data sources, key types and rustdoc json (format version 57).
docs-mcp CLAUDE.md
Instructions for mmgeorge/docs-mcp: See AGENTS.md for project architecture, conventions, and development guidance.
mcp-server-docy CLAUDE.md
Instructions for oborchers/mcp-server-docy, covering claude.md, documentation guidelines, commands, local development and code style.
fastmcp-docs CLAUDE.md
Instructions for orco82/fastmcp-docs, covering claude.md, project overview, key commands, development setup and create and activate virtual environment.
mcp copilot-instructions.md
Copilot instructions for jpotter80/mcp, covering copilot instructions for this repo, architecture (what lives where), dev workflows (use these tasks/commands), runtime config (key env vars and defaults) and search behavior and conventions (important when editing).
localdocs-mcp CLAUDE.md
Claude Code instructions for dylan-gluck/localdocs-mcp: This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.