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

@eenlars/alive-mcp

v1.0.0

Published

MCP server for workflow management and execution. Execute Lucky workflows programmatically with status tracking, cancellation, and async/sync execution modes.

Downloads

8

Readme

Workflow MCP Server

A Model Context Protocol (MCP) server for executing workflows programmatically. Invoke workflows with status tracking, async/sync execution modes, and graceful cancellation.

Features

  • Workflow Management - List, execute, and manage workflow invocations
  • Async/Sync Execution - Choose between immediate results or long-running async jobs
  • Status Tracking - Poll execution status and retrieve results
  • Graceful Cancellation - Cancel running workflows with proper cleanup
  • Error Handling - Comprehensive error codes and detailed error messages
  • Flexible Transport - Support for stdio, SSE, and HTTP streaming modes
  • Configuration - Environment variables for custom API endpoints

Installation

With npx

npx @eenlars/mcp

Global Installation

npm install -g @eenlars/mcp
mcp-workflow

As a Dependency

npm install @eenlars/mcp

Configuration

Environment Variables

Required

  • LUCKY_API_KEY - Your Lucky API key for authentication

Optional

  • LUCKY_API_URL - Custom API endpoint (default: http://localhost:3000)
  • PORT - Server port for HTTP modes (default: 3000)
  • HOST - Server host (default: localhost)

Running Modes

Stdio Mode (Default)

export LUCKY_API_KEY=your-api-key
npx @eenlars/mcp

HTTP Streaming

export LUCKY_API_KEY=your-api-key
export HTTP_STREAMABLE_SERVER=true
npx @eenlars/mcp
# Server runs on http://localhost:3000/mcp

SSE Local

export LUCKY_API_KEY=your-api-key
export SSE_LOCAL=true
npx @eenlars/mcp

Usage

Available Tools

1. List Workflows

{
  "name": "lucky_list_workflows",
  "arguments": {}
}

Returns all workflows available to the authenticated user with metadata:

  • workflow_id - Unique identifier
  • name - Human-readable name
  • description - What the workflow does
  • inputSchema - JSONSchema7 for expected input
  • outputSchema - JSONSchema7 for output structure
  • created_at - Creation timestamp

2. Run Workflow

{
  "name": "lucky_run_workflow",
  "arguments": {
    "workflow_id": "wf_research_paper",
    "input": { "topic": "AI Safety" },
    "options": {
      "timeoutMs": 30000,
      "trace": false
    }
  }
}

Execute a workflow with the given input.

Execution Modes:

  • Sync (timeoutMs ≤ 30s) - Returns output immediately
  • Async (timeoutMs > 30s) - Returns invocation_id for polling

Parameters:

  • workflow_id (required) - From lucky_list_workflows
  • input (required) - Must match workflow's inputSchema
  • options (optional)
    • timeoutMs - Max execution time in milliseconds (default: 30000, max: 600000)
    • trace - Enable detailed execution tracing (default: false)

Response (Sync):

{
  "output": {
    "paper": "Comprehensive analysis of AI Safety...",
    "citations": [...]
  }
}

Response (Async):

{
  "invocation_id": "inv_abc123",
  "state": "running"
}

3. Check Execution Status

{
  "name": "lucky_check_status",
  "arguments": {
    "invocation_id": "inv_abc123"
  }
}

Check the status of a running or completed workflow.

States:

  • running - Execution in progress
  • completed - Finished successfully
  • failed - Encountered an error
  • cancelled - User cancelled the execution
  • cancelling - Cancellation in progress
  • not_found - Invalid invocation ID

Response:

{
  "state": "completed",
  "invocationId": "inv_abc123",
  "createdAt": "2025-01-15T10:30:00Z",
  "output": {
    "paper": "Comprehensive analysis...",
    "citations": [...]
  }
}

4. Cancel Workflow

{
  "name": "lucky_cancel_workflow",
  "arguments": {
    "invocation_id": "inv_abc123"
  }
}

Request cancellation of a running workflow. Cancellation is graceful and may take time to complete.

Error Codes

| Code | Meaning | |------|---------| | -32001 | Workflow not found or access denied | | -32002 | Input validation failed | | -32003 | Workflow execution failed | | -32004 | Execution timeout | | 401 | Invalid or missing API key | | 404 | Workflow or invocation not found |

Integration Examples

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "workflows": {
      "command": "npx",
      "args": ["@eenlars/mcp"],
      "env": {
        "LUCKY_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor

  1. Open Cursor Settings
  2. Go to Features > MCP Servers
  3. Add new MCP server:
{
  "mcpServers": {
    "workflows": {
      "command": "npx",
      "args": ["-y", "@eenlars/mcp"],
      "env": {
        "LUCKY_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

VS Code

Add to User Settings (JSON):

{
  "mcp": {
    "servers": {
      "workflows": {
        "command": "npx",
        "args": ["-y", "@eenlars/mcp"],
        "env": {
          "LUCKY_API_KEY": "${input:apiKey}"
        }
      }
    }
  }
}

Workflow Execution Flow

1. Call lucky_list_workflows to discover available workflows
   ↓
2. Review the workflow's inputSchema to understand required input
   ↓
3. Call lucky_run_workflow with workflow_id and properly formatted input
   ↓
4. If async mode (timeoutMs > 30s):
   - Receive invocation_id
   - Poll with lucky_check_status to monitor progress
   - Retrieve results when state = "completed"
   ↓
5. Optionally call lucky_cancel_workflow to stop execution

Development

Build

bun run build
# or
npm run build

Test

bun run test
# or
npm test

Start Server

npm start                              # Stdio mode
CLOUD_SERVICE=true npm start          # Cloud mode
HTTP_STREAMABLE_SERVER=true npm start # HTTP mode

Publishing

npm run publish              # Publish latest version
npm run publish-beta         # Publish beta tag

License

MIT License - see LICENSE file for details


Need help? Check the error code table above or consult the integration examples for your editor.