abp-mcp: Instructions file for Claude Code

CLAUDE.md

abp-mcp CLAUDE.md is an instructions file for Claude Code from tekthar/abp-mcp. It costs 1,691 tokens per session, scanned A, original, MIT.

Project-specific instructions for abp-mcp, a .NET package that exposes selected ABP Framework application services as tools for AI assistants.

In plain words
What is it for?
Use them when changing the package, its API-definition reader, tool registry, MCP endpoint, error mapping, or tests.
Why use it?
They explain the project’s architecture and non-negotiable design rules, helping prevent changes that bypass ABP metadata or break permission handling.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is tekthar/abp-mcp's own configuration. It tells Claude Code how to work on abp-mcp 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 abp-mcp configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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

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

agentmods 80×15 button for abp-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tekthar/abp-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/tekthar/abp-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,691 This file is loaded in full into every session.
When invoked 1,691 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.01691 $0.01691
Opus 5.5 $0.00676 $0.00676
Sonnet 5.5 $0.00338 $0.00338
Haiku 4.5 $0.00169 $0.00169

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

Security

Grade A, and why

abp-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 6d 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 · 99 lines

How it starts

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

CLAUDE.md

Project-specific guidance for Claude Code (and any agent) working on abp-mcp.

Project summary

abp-mcp is an open-source NuGet package that turns any ABP Framework application into a Model Context Protocol server. It reads ABP's /api/abp/api-definition metadata, filters by [McpTool]-tagged services, and exposes them as MCP tools with permission-aware visibility and ABP-native error mapping. Targets net10.0 with ABP 10.1.* as the floor — versions live in Directory.Build.props as $(AbpVersion)/$(EfCoreVersion)/$(MsExtVersion). Current MCP SDK: ModelContextProtocol.AspNetCore 2.3, with the transport pinned to stateful sessions in AddAbpMcp (2.x defaults to stateless, which cannot deliver tools/list_changed).

Architecture at a glance

Program.cs ──▶ AddAbpMcp + AbpMcpModule
                        │
                        ▼
        IApiDefinitionReader ──▶ IToolDescriptorBuilder
                        │                 │
                        ▼                 ▼
                 IDynamicMcpToolRegistry  (initialized at app start)
                        │
                        ▼
        /mcp endpoint (Microsoft SDK) ──▶ IAbpMcpDispatcher

Every piece has exactly one job; none of them owns more than ~200 LOC.

Non-negotiable design rules

  1. Source of truth is ABP's api-definition, not OpenAPI and not raw reflection. If a change would make us re-implement metadata extraction, stop and reconsider.
  2. Tool exposure is opt-in. A service without [McpTool] is invisible. Do not add "expose everything" modes without an explicit design change.
  3. Permission check before invoke. Permission filter before list. Both paths. Test both.
  4. No catch-all exception handlers in the dispatcher. Use the mapping table in AbpMcpExceptionMapper. Every ABP exception type has a specific translation. Unknown exceptions become INTERNAL with no stack trace leaked.
  5. In-process only for v0.1 and v1.0. No sidecar processes. No stdio transport. Streamable HTTP only.
  6. ABP-idiomatic public surface. Attribute names mirror [RemoteService] ergonomics ([McpTool]/[McpIgnore]). Options collection mirrors ConventionalControllers.Create(assembly, ...). Configure<AbpMcpOptions> works in PreConfigureServices. If a new option breaks this convention, find another way.
  7. /mcp/_discover and /mcp/_explain endpoints stay shipped. They are the diff between "auto-generator that frustrates devs" and "auto-generator that delights them." Do not move them behind a feature flag, do not lazy-load them, do not skimp on the explain reasons.

Read the full file on GitHub · 99 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. 6d ago Changed · -1 lines · +133 tokens per session 621d13000feb
  2. 28d ago Changed · +47 tokens per session 7eabc1da0826
  3. 2mo ago First seen · 100 lines · 1,511 tokens per session scan A 535d2e8c6741

Subscribe to this mod's changes

abp-mcp CLAUDE.md is an instructions file published in the GitHub repository tekthar/abp-mcp (6 stars, last pushed yesterday), licensed MIT. It adds 1,691 tokens to every session, about $0.0068 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-31.

Related

abp-mcp CLAUDE.md compared with instructions from other repositories

abp-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
abp-mcp CLAUDE.mdtekthar/abp-mcpInstructions file6yesterdayMITA1,691Claude Code
plan-forge database.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,890GitHub Copilot
plan-forge naming.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,453GitHub Copilot
plan-forge caching.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA733GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode