npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rundeck/mcp

v0.0.1

Published

MCP server for Rundeck documentation

Readme

Rundeck MCP Server

Using with MCP Clients

Once published, the server is available as the @rundeck/mcp npm package, exposing the rundeck-mcp binary over stdio.

Cursor Integration

You can configure this MCP server directly within Cursor's settings.json file, by following these steps:

  1. Open Cursor settings (Cursor Settings > Tools > Add MCP, or Cmd+, on Mac, or Ctrl+, on Windows/Linux).

  2. Add the following configuration:

    {
      "mcpServers": {
        "rundeck-mcp": {
          "command": "npx",
          "args": ["-y", "@rundeck/mcp"],
          "env": {
            "RUNDECK_URL": "https://your-rundeck-instance.example.com",
            "RUNDECK_TOKEN": "your-rundeck-api-token-here"
          }
        }
      }
    }

VS Code Integration

You can configure this MCP server directly within Visual Studio Code's settings.json file, allowing VS Code to manage the server lifecycle.

  1. Open VS Code settings (File > Preferences > Settings, or Cmd+, on Mac, or Ctrl+, on Windows/Linux).

  2. Search for "mcp" and ensure "Mcp: Enabled" is checked under Features > Chat.

  3. Click "Edit in settings.json" under "Mcp > Discovery: Servers".

  4. Add the following configuration:

    {
        "mcp": {
            "inputs": [
                {
                    "type": "promptString",
                    "id": "rundeck-url",
                    "description": "Rundeck Instance URL"
                },
                {
                    "type": "promptString",
                    "id": "rundeck-token",
                    "description": "Rundeck API Token",
                    "password": true
                }
            ],
            "servers": {
                "rundeck-mcp": {
                    "type": "stdio",
                    "command": "npx",
                    "args": ["-y", "@rundeck/mcp"],
                    "env": {
                        "RUNDECK_URL": "${input:rundeck-url}",
                        "RUNDECK_TOKEN": "${input:rundeck-token}"
                    }
                }
            }
        }
    }

Claude Desktop Integration

You can configure this MCP server to work with Claude Desktop by adding it to Claude's configuration file.

  1. Locate your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Create or edit the configuration file and add the following configuration:

    {
      "mcpServers": {
        "rundeck-mcp": {
          "command": "npx",
          "args": ["-y", "@rundeck/mcp"],
          "env": {
            "RUNDECK_URL": "https://your-rundeck-instance.example.com",
            "RUNDECK_TOKEN": "your-rundeck-api-token-here"
          }
        }
      }
    }
  3. Restart Claude Desktop completely for the changes to take effect.

Claude Code Integration

Add the server via the CLI:

claude mcp add rundeck-mcp -e RUNDECK_URL=https://your-rundeck-instance.example.com -e RUNDECK_TOKEN=your-rundeck-api-token-here -- npx -y @rundeck/mcp

Docker Integration

No Node.js required — only Docker. The server is also published as the rundeck/mcp image, exposed the same way over stdio.

For Cursor, Claude Desktop, or any client using an mcpServers JSON block:

{
  "mcpServers": {
    "rundeck-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "RUNDECK_URL=https://your-rundeck-instance.example.com",
        "-e", "RUNDECK_TOKEN=your-rundeck-api-token-here",
        "rundeck/mcp:latest"
      ]
    }
  }
}

For Claude Code, add via the CLI:

claude mcp add rundeck-mcp -- docker run -i --rm -e RUNDECK_URL=https://your-rundeck-instance.example.com -e RUNDECK_TOKEN=your-rundeck-api-token-here rundeck/mcp:latest

Local Development

Note: npm install authenticates against PagerDuty's private Cloudsmith npm mirror via the committed .npmrc (PagerDuty employees need a CLOUDSMITH_NPM_TOKEN). External contributors without Cloudsmith access should delete .npmrc and package-lock.json first — see SETUP.md.

# Install dependencies
npm install

# Develop (runs server with auto-restart)
npm run dev

# Test with Inspector GUI
npm run inspect

# Run tests
npm test

# Full check (build + tests + MCP validation scripts)
npm run validate

See SCRIPTS.md and COMMANDS.md | See SETUP.md for detailed setup


Overview

The Rundeck Model Context Protocol (MCP) Server exposes Rundeck's documentation, APIs, and capabilities to AI assistants through the Model Context Protocol standard. This document covers technical capabilities, architecture, and features of the MCP server implementation.

Architecture

The MCP server is built using TypeScript and follows the MCP TypeScript SDK patterns. It communicates via stdio using the MCP protocol, enabling integration with any MCP-compatible client (Claude Desktop, custom clients, etc.).

Core Components

  1. Resource Handlers - Expose documentation as accessible resources
  2. Tools - Enable AI assistants to perform actions (API calls, job generation, validation)
  3. Prompts - Provide guided workflows for common Rundeck tasks (create-job, call-api, setup-authentication, and others)

Resources

Resources provide AI assistants with read-only access to Rundeck documentation. All resources use the rundeck:// URI scheme for easy discovery and access.

Documentation Categories

API Documentation (rundeck://api/*)

  • Complete API reference (rundeck://api)
  • Authentication methods (rundeck://api/auth)
  • API usage examples (rundeck://api/examples)
  • Endpoint-specific documentation

Job Definitions (rundeck://jobs/*)

  • YAML job schema (rundeck://jobs/schema?format=yaml)
  • JSON job schema (rundeck://jobs/schema?format=json)
  • XML job schema (rundeck://jobs/schema?format=xml) - legacy support
  • Workflow strategies (rundeck://jobs/workflows)
  • Job options documentation (rundeck://jobs/options)
  • Job examples

Configuration (rundeck://config/*)

  • System configuration (rundeck://config/system)
  • Project configuration (rundeck://config/project)
  • Plugin configuration (rundeck://config/plugins)
  • Configuration examples

Learning Resources (rundeck://learn/*)

  • Getting started guide (rundeck://learn)
  • How-to guides by topic
  • Tutorial lessons
  • Runners overview

Plugin Documentation (rundeck://plugins/*)

  • Plugin overview (rundeck://plugins)
  • Node step plugins (rundeck://plugins/node-steps)
  • Workflow step plugins (rundeck://plugins/workflow-steps)
  • Specific plugin documentation

Reference Materials (rundeck://ref/*)

  • Node filter syntax (rundeck://ref/filters)
  • Rundeck terminology (rundeck://ref/terms)

Comprehensive Documentation (rundeck://docs/*)

  • Manual sections (jobs, nodes, executions, calendars)
  • Administration guides (installation, security, configuration, clustering)
  • Developer documentation (plugin development, API usage)
  • RD-CLI documentation
  • Integration guides

Resource Features

  • Hierarchical Structure: Resources are organized in a logical, discoverable hierarchy
  • Summarization: Large documentation sets are automatically summarized to optimize context usage
  • Format Support: Job schemas available in YAML, JSON, and XML formats
  • Context Optimization: Content is structured to provide maximum value within token limits

Tools

Tools enable AI assistants to perform actions beyond reading documentation. Inputs are validated with Zod. For api_call, job_create, and job_validate, omitting required arguments (or leaving string fields blank) returns markdown onboarding in the normal tool response so the agent can steer the user; malformed types, enums, OpenAPI-shape checks, and other invalid input still return validation errors. Use MCP prompts for full guided workflows.

API Tools

api_call

Purpose: Execute Rundeck API calls to interact with a Rundeck instance.

Capabilities:

  • Support for all HTTP methods (GET, POST, PUT, DELETE, PATCH)
  • Query parameter support
  • Request body handling
  • Authentication via environment variables (RUNDECK_URL, RUNDECK_TOKEN)

When to use:

  • Making API requests to Rundeck
  • Querying projects, jobs, executions, nodes, or system information
  • Triggering job executions via API
  • Managing Rundeck resources programmatically

api_list

Purpose: List available Rundeck API endpoints with descriptions and categories.

Capabilities:

  • Category filtering (jobs, projects, executions, system, etc.)
  • Endpoint descriptions and methods
  • Parameter information

When to use:

  • Discovering available API endpoints
  • Finding endpoints for specific categories
  • Understanding API structure before making calls

Job Tools

job_create

Purpose: Generate Rundeck job definitions in YAML or JSON format.

Capabilities:

  • Generate valid job definitions from structured parameters
  • Support for complex workflows (multi-step, conditional, parallel)
  • Job options definition
  • Node filter configuration
  • Format selection (YAML or JSON)

When to use:

  • Creating new job definitions programmatically
  • Generating job YAML/JSON for import into Rundeck
  • Building jobs with AI assistance

job_validate

Purpose: Validate Rundeck job definitions against Rundeck schemas.

Capabilities:

  • Syntax validation
  • Schema compliance checking
  • Error and warning reporting
  • Support for YAML and JSON formats

When to use:

  • Validating job definitions before importing
  • Checking job syntax and structure
  • Debugging job definition errors

Documentation tools

docs_search

Purpose: Search local Rundeck markdown documentation (RUNDECK_DOCS_PATH) by keywords, with optional category filters.

Phase 1 note (internal release)

The plugin code generator and docs_example-style helpers are not exposed as MCP tools in this release. Use resources/read (rundeck://docs/developer/*) and docs_search for plugin documentation and examples. See the product requirements for Phase 2.

Prompts

Prompts provide pre-configured, guided workflows for common Rundeck tasks. They combine documentation references and step-by-step instructions.

Available Prompts

  1. create-job - Guide for creating Rundeck jobs

    • Supports job types: simple, multi-step, scheduled, with-options
    • Includes schema references and examples
  2. call-api - Guide for making Rundeck API calls

    • Authentication setup instructions
    • Endpoint discovery guidance
    • Category filtering (jobs, projects, executions, etc.)
  3. configure-project - Guide for project configuration

    • Covers settings, node execution, resource sources, SCM, plugins
    • Configuration methods (UI, API, CLI)
  4. setup-authentication - Guide for API authentication setup

    • Token generation instructions
    • Environment variable configuration
    • Security best practices
  5. write-node-filter - Guide for writing node filter expressions

    • Syntax reference
    • Common patterns and examples
    • Filter testing guidance
  6. integrate-plugin - Guide for plugin integration

    • Plugin types overview
    • Configuration instructions
    • Usage examples

Prompt Features

  • Argument Support: Prompts accept optional arguments to customize content
  • Resource Integration: Prompts reference relevant resources and tools
  • Examples: Each prompt includes usage examples
  • Validation: Prompt arguments are validated using Zod schemas

Technical Specifications

Dependencies

  • @modelcontextprotocol/sdk: MCP protocol implementation (see package.json for the pinned version)
  • marked: ^12.0.0 - Markdown parsing
  • yaml: ^2.4.2 - YAML parsing and generation
  • zod: ^3.23.8 - Schema validation
  • TypeScript: ^5.5.0 - Type safety and modern JavaScript features

Configuration

The server is configured via environment variables:

  • RUNDECK_DOCS_PATH: Path to documentation directory (default: ./docs)
  • RUNDECK_URL: Default Rundeck instance URL
  • RUNDECK_TOKEN: Default API token (optional, can be set via environment)
  • RUNDECK_API_VERSION: Default API version (default: "46")
  • MCP_DEBUG: Enable verbose logging ("1" or "true")

Security

  • Token Storage: API tokens stored in memory only (not persisted to disk)
  • Input Validation: All tool inputs validated using Zod schemas
  • Error Handling: Sensitive information not exposed in error messages
  • File System Access: Read-only access to documentation files

Testing

  • Jest: npm test — unit and integration tests (see src/__tests__/)
  • Full pipeline: npm run validate — build, Jest, then run-all-validations.js (browser / tools / inspector / subagent scripts under dist/__tests__/)

Deployment

The server can be deployed in multiple ways:

  • Local Development: Direct Node.js execution
  • Claude Desktop: Via MCP configuration file
  • Docker: Containerized deployment
  • Systemd/PM2: Production service deployment