hangfire-mcp

NikiforovAll/hangfire-mcp

3.3

If you are the rightful owner of hangfire-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Hangfire MCP is a server that allows enqueuing background jobs using the Hangfire MCP protocol, enabling interaction from any client supporting MCP.

Hangfire MCP is a versatile server designed to facilitate the enqueuing of background jobs through the Hangfire MCP protocol. This server is particularly beneficial for developers who wish to interact with Hangfire from various clients that support the MCP protocol, such as Visual Studio Code in Agent Mode. By leveraging Hangfire MCP, users can enqueue jobs without the need to write additional code, thus streamlining the process of executing various types of code. The server can be configured to work in standalone mode as a .NET global tool or integrated into custom projects, providing flexibility in deployment and usage. The configuration options allow for dynamic loading of jobs from specified assemblies, with customizable rules for matching job names using JMESPath expressions. This makes Hangfire MCP a powerful tool for developers looking to automate and manage background tasks efficiently.

Features

  • Enqueue jobs from any MCP protocol-supporting client.
  • Standalone mode as a .NET global tool.
  • Customizable job name matching using JMESPath expressions.
  • Integration with Visual Studio Code in Agent Mode.
  • Dynamic job loading from specified assemblies.

Usages

usage with VS Code

{
  "servers": {
    "hangfire-mcp": {
      "url": "http://localhost:3001"
    }
  }
}

usage with Standalone Mode

{
  "servers": {
    "hangfire-mcp-standalone": {
      "type": "stdio",
      "command": "HangfireMCP",
      "args": [
        "--stdio"
      ],
      "env": {
        "HANGFIRE_JOBS_ASSEMBLY": "path/to/Jobs.dll",
        "HANGFIRE_JOBS_MATCH_EXPRESSION": "[?IsInterface && contains(Name, 'Job')]",
        "HANGFIRE_CONNECTION_STRING": "Host=localhost;Port=5432;Username=postgres;Password=postgres;Database=hangfire"
      }
    }
  }
}

Tools

  1. HangfireTool

    A tool for running jobs by specifying job name, method name, and parameters.