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

@crscreditapi/cascades-mcp-server

v0.4.0-af94aba

Published

MCP server for CRS Cascades — list, trigger, and inspect decision workflows (cascades) over the public /api/v1.

Downloads

37

Readme

@crscreditapi/cascades-mcp-server

MCP server for CRS Cascades — lets an AI assistant (Claude Code, Claude Desktop, Cursor, …) list your decision workflows ("cascades"), run them for an applicant, and read the results, over the public /api/v1. A thin wrapper: every tool is one authenticated REST call, reusing your CRS API key (no MCP-specific auth).

Tools

| Tool | What it does | API call | |------|--------------|----------| | cascades_list_workflows | List your saved cascades (id, name, use_case, active…) | GET /api/v1/workflows | | cascades_create_workflow | Create a cascade from a JSON definition (active by default) | POST /api/v1/workflows | | cascades_get_workflow | Fetch one cascade incl. its full node graph (definition) | GET /api/v1/workflows/:id | | cascades_update_workflow | Update a cascade (partial: name / definition / active / …) | PATCH /api/v1/workflows/:id | | cascades_delete_workflow | Delete a cascade (soft-delete) | DELETE /api/v1/workflows/:id | | cascades_generate_workflow | AI-build a cascade from a plain-English policy description, then create it | POST /api/v1/workflows/generate | | cascades_trigger_workflow | Run a cascade for an applicant → returns a pending execution | POST /api/v1/workflows/:id/trigger | | cascades_get_execution | Poll an execution; read status + step_outputs | GET /api/v1/executions/:id |

All tools accept an optional environment: "prod" | "dev".

Configuration

| Env var | Required | Description | |---------|----------|-------------| | CASCADES_API_KEY | ✅ | Your CRS Cascades API key (bearer token). Mint one at /admin/api_demo_token. | | CASCADES_PROD_BASE_URL | ✅ | Cascades host, e.g. https://api.crscreditapi.com (no trailing /api/v1). | | CASCADES_DEV_BASE_URL | – | Optional dev/sandbox host; falls back to prod. | | CASCADES_TIMEOUT_MS | – | Request timeout, default 30000. | | MCP_TRANSPORT | – | stdio (default) or http. | | MCP_PORT | – | HTTP port (default 3004), only for MCP_TRANSPORT=http. |

Token scopes. The key must carry workflows:read, workflows:write, executions:write, and executions:read. A key minted without a required scope returns 403 insufficient_scope on the affected tool (the others still work). Read-only integrations can drop the :write scopes.

Install (local / stdio — Claude Code & Claude Desktop)

npm install -g @crscreditapi/cascades-mcp-server

Add to your MCP config (.mcp.json for Claude Code, claude_desktop_config.json for Claude Desktop):

{
  "mcpServers": {
    "cascades": {
      "command": "cascades-mcp-server",
      "env": {
        "MCP_TRANSPORT": "stdio",
        "CASCADES_PROD_BASE_URL": "https://api.crscreditapi.com",
        "CASCADES_API_KEY": "<your-api-key>"
      }
    }
  }
}

Or let your assistant do it:

claude mcp add cascades -- cascades-mcp-server

Then just ask: "List my cascades", "Trigger workflow 157 for Maria Santos and explain the decision."

Run (HTTP — hosted / n8n / EC2)

MCP_TRANSPORT=http MCP_PORT=3004 \
CASCADES_PROD_BASE_URL=https://api.crscreditapi.com \
CASCADES_API_KEY=<key> \
cascades-mcp-server

Point the client at http://<host>:3004/mcp (stateless Streamable HTTP). GET /health{ "status": "ok" }.

Security — HTTP mode. HTTP serves every caller with the server's single CASCADES_API_KEY and has no per-request auth, so run it only on a trusted/internal network (e.g. behind n8n on the EC2 host), never exposed publicly. For per-customer use, ship the stdio binary so each customer supplies their own key in mcp.json. Per-request auth (an OAuth handshake) is the v2 path.

Develop

npm install
npm run build
MCP_TRANSPORT=http CASCADES_PROD_BASE_URL=http://localhost:3000 CASCADES_API_KEY=<key> npm start

Test tools interactively with the MCP Inspector (npx @modelcontextprotocol/inspector).

Roadmap

  • next: a PDF create path (build a cascade from an uploaded policy document), and an implementation-guide resource (expose the API docs as MCP context). Text-based create already ships — cascades_create_workflow (from a JSON definition) and cascades_generate_workflow (from a plain-English description).
  • v2: OAuth handshake (replace the shared API key), webhook-completion polling, Slack/Autopsy integration.