Borrowing it
Nothing to install: this file belongs to fieldcure/fieldcure-mcp-rag. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fieldcure/fieldcure-mcp-rag/main/CLAUDE.mdgit clone --depth 1 https://github.com/fieldcure/fieldcure-mcp-ragWrote 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/fieldcure/fieldcure-mcp-rag/claude-md)<a href="https://agentmods.dev/instructions/fieldcure/fieldcure-mcp-rag/claude-md"><img src="https://agentmods.dev/badge/instructions/fieldcure/fieldcure-mcp-rag/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.
<a href="https://agentmods.dev/instructions/fieldcure/fieldcure-mcp-rag/claude-md"><img src="https://agentmods.dev/badge/instructions/fieldcure/fieldcure-mcp-rag/claude-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.02834 | $0.02834 |
| Opus 5 | $0.01417 | $0.01417 |
| Sonnet 5 | $0.00567 | $0.00567 |
| Haiku 4.5 | $0.00283 | $0.00283 |
Grade A, and why
fieldcure-mcp-rag 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 9d 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 — 151 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.
What this is
FieldCure.Mcp.Rag is a C# MCP server distributed as a dotnet tool (PackAsTool). It indexes a folder of documents into a per-KB SQLite store with FTS5 + vector embeddings, then serves hybrid keyword + semantic search to MCP-compatible hosts (Claude Desktop, AssistStudio, etc.) over stdio.
Two execution modes:
fieldcure-mcp-rag exec --path <kb-path> [--force]— headless indexing processfieldcure-mcp-rag serve --path <kb-path>— search-only MCP server
Indexing and serving are deliberately separate processes: indexing is heavy (AI contextualization, embedding generation, optional audio transcription) and an MCP host is not a sensible place to run it. The two modes share the same on-disk store.
Build & test commands
# Build
dotnet build
# Run all tests (185 tests, MSTest)
dotnet test
# Run a single test project
dotnet test tests/FieldCure.Mcp.Rag.Tests
# Run a single test by name
dotnet test --filter "FullyQualifiedName~HybridSearcherTests.SearchAsync_ReturnsRrfRanked"
# Pack the tool nupkg (artifacts/)
dotnet pack -c Release -o artifacts
net8.0 only (downstream FieldCure.DocumentParsers multi-targets net8.0/net10.0; the tool is pinned to net8.0 to match the broadest dotnet-tool installation footprint).
Repository layout
fieldcure-mcp-rag/
├── src/FieldCure.Mcp.Rag/
│ ├── Program.cs ← exec / serve dispatch
│ ├── ExecQueueRunner.cs ← headless indexing loop
│ ├── OrphanCleanupRunner.cs ← removes chunks for files no longer present
│ ├── MultiKbContext.cs ← per-KB path + config resolution
│ ├── McpJson.cs ← MCP envelope helpers
│ ├── LazyAudioTranscriber.cs ← deferred Whisper init (Windows-only)
│ ├── LazyOcrEngine.cs ← deferred Tesseract init (Windows-only)
│ ├── Configuration/ ← config.json schema, CredentialService (Windows PasswordVault)
│ ├── Chunking/ ← Korean-aware sentence splitter
│ ├── Contextualization/ ← IChunkContextualizer + OpenAI / Anthropic / Null impls
│ ├── Embedding/ ← OpenAI-compatible embedding client
│ ├── Storage/ ← Sqlite schema, migrations, chunk store
│ ├── Search/ ← BM25 (FTS5), vector cosine, RRF, HybridSearcher
│ ├── Indexing/ ← IndexingEngine, file discovery, SHA-256 incremental
│ └── Tools/ ← MCP tool handlers (search_documents, get_document_chunk, get_index_info)
├── tests/FieldCure.Mcp.Rag.Tests/ ← MSTest, 185 tests
├── scripts/publish-nuget.ps1 ← pack → sign → push
├── RELEASENOTES.md ← per-release changelog
└── design/ ← internal design docs (gitignored)
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.
- 9d ago First seen · 151 lines · 2,834 tokens per session scan A 5e53e2d903fc
fieldcure-mcp-rag CLAUDE.md is an instructions file published in the GitHub repository fieldcure/fieldcure-mcp-rag (0 stars, last pushed 3mo ago), licensed MIT. It adds 2,834 tokens to every session, about $0.0142 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.
Other instructions, from other repositories
plan-forge api-patterns.instructions.md
API patterns for .NET — REST conventions, ProblemDetails, pagination, versioning, error responses.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.