springdocs-mcp CLAUDE.md

springdocs-mcp CLAUDE.md is an instructions file for coding agents from tky0065/springdocs-mcp. It costs 1,064 tokens per session, scanned A, original, MIT.

Repository instructions for springdocs-mcp, a TypeScript server that lets AI assistants search and retrieve Spring Boot and Spring Framework documentation. It includes project commands, tests, and release guidance.

In plain words
What is it for?
Use it when developing springdocs-mcp to run builds and tests, start it locally, check the package, and prepare versioned releases.
Why use it?
It tells a coding agent how this documentation server is organized, built, tested, and published.

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/tky0065/springdocs-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/tky0065/springdocs-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 springdocs-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tky0065/springdocs-mcp/claude-md.svg)](https://agentmods.dev/instructions/tky0065/springdocs-mcp/claude-md)
Your own site
<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>
Per session 1,064 This file is loaded in full into every session.
When invoked 1,064 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.01064 $0.01064
Opus 5 $0.00532 $0.00532
Sonnet 5 $0.00213 $0.00213
Haiku 4.5 $0.00106 $0.00106

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

Security

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.

CLAUDE.md · 98 lines

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):

  • SpringBootMCPServerAdvanced class orchestrates the entire MCP server
  • Uses MCP SDK's Server class with stdio transport for communication
  • Handles 12 tools split between core documentation and advanced features
  • All tool handlers route to either docsService or advancedService

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)

Read the full file on GitHub · 98 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. 4d ago First seen · 98 lines · 1,064 tokens per session scan A 77996a74d82d

Subscribe to this mod's changes

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.