Skip to content

Releases: NikiforovAll/hangfire-mcp-dotnet

v0.2.1

03 May 08:33
e705fca

Choose a tag to compare

What's Changed

  • No user-facing changes.

Full Changelog: v0.2.0...v0.2.1

v0.2.0

02 May 15:34
19259d5

Choose a tag to compare

What's Changed

Features

Maintenance

Documentation

Full Changelog: v0.1.0...v0.2.0

v0.1.0

01 May 18:47

Choose a tag to compare

🎉 Initial Release

Nall.Hangfire.Mcp exposes Hangfire background jobs as MCP tools via a streamable HTTP endpoint, running in-process with the ASP.NET host.

Features

Zero-ceremony MCP server for Hangfire

  • Mounts a Streamable HTTP MCP endpoint (/mcp) on top of any existing Hangfire app with three lines of setup
  • No attributes, no shim interfaces — discovery reads what you already register with Hangfire
  • Compatible with any MCP client: VS Code, Claude Desktop, custom agents

Flexible job discovery

Source What it sees
RecurringStorage (default) Recurring jobs from Hangfire storage
StaticManifest Compile-time scan via the optional Roslyn source generator
All Union of both, deduped

JSON Schema from MethodInfo

  • Schema generated per method signature — no manual tool definitions
  • Required vs. optional respects C# defaults and nullable annotations (int?, string?, NRT)
  • Complex types, enums, collections, and overloads all supported

Source generator (Nall.Hangfire.Mcp.Generator)

  • Roslyn incremental generator (netstandard2.0) scans AddOrUpdate / Enqueue / Schedule call sites at compile time
  • Emits a static JobManifestRegistry — enables MCP tools for one-shot jobs not registered as recurring

Dynamic scheduling

  • HangfireDynamicScheduler enqueues any discovered job via IBackgroundJobClient with a dynamically-built Job — no generated shims needed
  • Supports optional queue override per call

Getting Started

dotnet add package Nall.Hangfire.Mcp
builder.Services.AddHangfireMcp();
app.MapHangfireMcp("/mcp");

Full Changelog: https://github.com/NikiforovAll/hangfire-mcp-dotnet/commits/main