Borrowing it
Nothing to install: this file belongs to MarimerLLC/mcp-aggregator. 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/MarimerLLC/mcp-aggregator/main/CLAUDE.mdgit clone --depth 1 https://github.com/MarimerLLC/mcp-aggregatorWrote 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/marimerllc/mcp-aggregator/claude-md)<a href="https://agentmods.dev/instructions/marimerllc/mcp-aggregator/claude-md"><img src="https://agentmods.dev/badge/instructions/marimerllc/mcp-aggregator/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/marimerllc/mcp-aggregator/claude-md"><img src="https://agentmods.dev/badge/instructions/marimerllc/mcp-aggregator/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.02651 | $0.02651 |
| Opus 5.5 | $0.01060 | $0.01060 |
| Sonnet 5.5 | $0.00530 | $0.00530 |
| Haiku 4.5 | $0.00265 | $0.00265 |
Grade A, and why
mcp-aggregator 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 1mo 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 — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Aggregator — Developer Guide
Project Structure
src/McpAggregator.Core/— Shared library: models, services, MCP tools, storagesrc/McpAggregator.StdioServer/— Stdio MCP host (console app)src/McpAggregator.HttpServer/— HTTP/SSE MCP + REST API host (web app)data/— Runtime data directory (registry.json, skills/)
Build & Run
dotnet build # Build all
dotnet run --project src/McpAggregator.HttpServer # Run HTTP server
dotnet run --project src/McpAggregator.StdioServer # Run stdio server
Critical Rules
- StdioServer must NEVER write to stdout/stderr — those streams are the MCP transport. All logging goes to file/OTLP sinks only.
- MCP tools are defined in Core — both hosts discover them via
WithToolsFromAssembly(typeof(ConsumerTools).Assembly). - Registry persistence uses atomic writes — temp file + rename to prevent corruption.
- Connections are lazy — downstream MCP servers are connected on first use, not at registration.
- Only
WrapperToolCatalogmutatesMcpServerOptions.ToolCollection,PromptCollectionandResourceCollectionat runtime, and it only ever adds or removesDownstreamToolWrapper/DownstreamPromptWrapper/DownstreamResourceWrapperinstances. The aggregator's own attributed tools are never touched. ServerInstructionsis the hand-written orientation inAggregatorInstructions(ceiling 6 KB, pinned byServerInstructionsTests); the skill document is never embedded in the handshake, it stays behindget_service_skill(serverName: "mcp-aggregator")(issue #44).
Typed wrapper tools (issue #39), proxied prompts (issue #40) and bridged resources (issue #45)
Every downstream tool is exposed as a DownstreamToolWrapper named {server}__{tool} carrying the
downstream inputSchema unchanged, every downstream prompt as a DownstreamPromptWrapper
(McpServerPrompt) named {server}__{prompt} carrying the downstream arguments unchanged, and
every downstream resource or resource template as a DownstreamResourceWrapper (McpServerResource)
at mcp-aggregator://{server}/{uri} (ResourceUriNaming: fixed scheme, server name as authority,
downstream URI verbatim as path, templates keep their {…}) carrying the downstream metadata
unchanged. WrapperToolCatalog (singleton, registered in AddAggregatorMcpServer) builds all three
from ToolIndex (ToolDetail.Protocol / PromptDetail.Protocol / ResourceDetail.Protocol +
ProtocolTemplate keep the wire objects). Everything below applies to prompts and resources as it
does to tools, with PromptCollection / ResourceCollection, ToolIndex.PromptsChanged /
ResourcesChanged, prompts/list_changed / resources/list_changed, a ListPromptsHandler /
ListResourcesHandler + ListResourceTemplatesHandler, and a GetPromptHandler /
ReadResourceHandler fallback standing in for the tool equivalents; prompts and resources have no
isError result, so wrapper-side failures are McpProtocolExceptions with readable messages.
Resource specifics: the SDK's McpServerResourceCollection keys plain URIs as System.Uri
(fragment ignored, host case-insensitive; the catalog keeps the first of two colliding entries),
resources/read tries an exact key then IsMatch on every entry then the fallback handler, the
wrapper's template matcher is its own RFC 6570 approximation (the SDK's is internal), the unknown-URI
error code is ResourceNotFound before protocol 2026-07-28 and InvalidParams from it on, and
subscriptions are not bridged: resources.subscribe is kept unadvertised (the PostConfigure guard
clears what WithSubscribeToResourcesHandler sets) and the subscribe/unsubscribe handlers reject with
InvalidRequest. Design note: docs/typed-wrapper-tools.md Q12. AggregatorOptions.WrapperMode:
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.
- 1mo ago Changed · +3 lines · +70 tokens per session 491005475e1e
- 1mo ago Changed · +29 lines · +623 tokens per session 0b83b4ad452e
- 1mo ago Changed · +53 lines · +1,065 tokens per session 3fd17a5ee9ad
- 2mo ago Changed · +7 lines · +138 tokens per session ed8b56f32586
- 2mo ago First seen · 58 lines · 755 tokens per session scan A 72a58123c297
mcp-aggregator CLAUDE.md is an instructions file published in the GitHub repository MarimerLLC/mcp-aggregator (27 stars, last pushed 1mo ago), licensed MIT. It adds 2,651 tokens to every session, about $0.0106 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.
mcp-aggregator CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-aggregator CLAUDE.mdMarimerLLC/mcp-aggregator | Instructions file | 27 | 1mo ago | MIT | A | 2,651 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |