hangfire-mcp-dotnet: Instructions file for Claude Code

CLAUDE.md

hangfire-mcp-dotnet CLAUDE.md is an instructions file for Claude Code from NikiforovAll/hangfire-mcp-dotnet. It costs 969 tokens per session, scanned A, original, MIT.

Project-specific instructions for Hangfire MCP, a .NET server that exposes background jobs through an MCP endpoint. Hangfire is a system for running jobs in the background, and MCP is a way for AI tools to call software services.

In plain words
What is it for?
Use it when building, testing, running, or changing the Hangfire MCP server and its Roslyn source generator.
Why use it?
It gives the agent the project structure, build commands, test commands, and rules needed to work safely in this codebase.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nikiforovall/hangfire-mcp-dotnet/claude-md"><img src="https://agentmods.dev/badge/instructions/nikiforovall/hangfire-mcp-dotnet/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 969 This file is loaded in full into every session.
When invoked 969 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.00969 $0.00969
Opus 5 $0.00485 $0.00485
Sonnet 5 $0.00194 $0.00194
Haiku 4.5 $0.00097 $0.00097

Measured 9d ago against content hash 14b805b7af46, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

hangfire-mcp-dotnet 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.

CLAUDE.md · 56 lines

How it starts

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

CLAUDE.md

Project

Nall.Hangfire.Mcp — a remote MCP server that exposes Hangfire background jobs as MCP tools, in-process with the ASP.NET host that runs Hangfire. Streamable HTTP endpoint at /mcp. Targets net10.0. The companion Nall.Hangfire.Mcp.Generator (netstandard2.0 Roslyn source generator) scans AddOrUpdate / Enqueue / Schedule call sites at compile time to build a static job manifest.

Commands

Solution file: hangfire-mcp-dotnet.slnx.

dotnet restore hangfire-mcp-dotnet.slnx
dotnet build   hangfire-mcp-dotnet.slnx -p:WarningLevel=0 /clp:ErrorsOnly
dotnet test    hangfire-mcp-dotnet.slnx --no-build

Run a single test:

dotnet test tests/Nall.Hangfire.Mcp.Tests --filter "FullyQualifiedName~JobCatalogTests.MethodName"

Run the sample (Aspire AppHost orchestrates Hangfire + Web + dependencies):

aspire run            # uses aspire.config.json -> samples/AppHost
# or directly:
dotnet run --project samples/Web

Build rule (from global instructions): always pass -p:WarningLevel=0 /clp:ErrorsOnly.

If Aspire is running, the Web resource locks DLLs and full-solution builds fail. For a full build: aspire stopdotnet build ...aspire start. (For changes to a single .NET resource, prefer aspire resource <name> rebuild instead of stopping the AppHost.)

Architecture

Pipeline from a Hangfire job to an MCP tool:

  1. Discovery (JobDiscoverySources + JobScanner): two sources, configurable via HangfireMcpOptions.Sources:
    • RecurringStorage (default) — reads RecurringJobDto.Job from JobStorage.
    • StaticManifest — reads entries the Roslyn generator emitted into JobManifestRegistry (in Manifest/).
    • All — union, deduped by (DeclaringType, MethodInfo). HangfireMcpOptions.Filter filters recurring entries before scanning.
  2. Catalog (JobCatalog): resolves each entry to a JobDescriptor (method, parameters, generated tool name like Run_<jobId>). Built once as a singleton.
  3. Schema (JobInputSchema + ParameterNullability): generates JSON Schema per MethodInfo. Required vs optional respects C# defaults and nullable annotations (NRT for reference types, T? for value types).
  4. MCP wiring (HangfireMcpServiceCollectionExtensions.AddHangfireMcpHangfireMcpEndpointRouteBuilderExtensions.MapHangfireMcp): registers JobCatalog + HangfireDynamicScheduler as singletons, then registers MCP ListTools / CallTool handlers on AddMcpServer().WithHttpTransport(stateless: true).
  5. Invocation (HangfireMcpHandlers + JobArgumentBinder): on CallTool, the binder converts the JSON arg dict into a typed object array via MethodInfo.GetParameters(), applying defaults and nullability rules. HangfireDynamicScheduler then enqueues via IBackgroundJobClient with a dynamically-built Job instance (no shim interfaces, no attributes).

Read the full file on GitHub · 56 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. 9d ago First seen · 56 lines · 969 tokens per session scan A 14b805b7af46

Subscribe to this mod's changes

hangfire-mcp-dotnet CLAUDE.md is an instructions file published in the GitHub repository NikiforovAll/hangfire-mcp-dotnet (1 stars, last pushed 4mo ago), licensed MIT. It adds 969 tokens to every session, about $0.0048 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.