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

lelu-mcp

v0.0.32

Published

Model Context Protocol (MCP) server for Lelu — gives AI agents secure, policy-gated access to your infrastructure

Readme

lelu-mcp

MCP (Model Context Protocol) server for Lelu — policy-gated authorization for AI agents.

Give your agent a lelu_agent_authorize tool: before it acts, Lelu decides allow / deny / human-review / redirect-to-sandbox based on your policy.

Quickstart — no account, no Docker, no config

npx -y lelu-mcp start

On first run this downloads the Lelu engine binary (cached in ~/.lelu/bin), writes a starter policy to ~/.lelu/policy.yaml, starts the engine locally, and serves MCP over stdio. Everything runs on your machine.

Claude Code:

claude mcp add lelu -- npx -y lelu-mcp start --transport stdio

Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json):

{
  "mcpServers": {
    "lelu": {
      "command": "npx",
      "args": ["-y", "lelu-mcp", "start", "--transport", "stdio"]
    }
  }
}

Or generate the snippet: npx lelu-mcp add --cursor (add --write to save it).

Change the rules

Edit ~/.lelu/policy.yaml and restart. The starter policy denies destructive actions (*delete*, *drop*, *exec*…), routes payments and outbound email to human review, redirects production writes to a sandbox path, allows reads, and default-denies everything else. Rules are evaluated top to bottom; first action match wins:

rules:
  - id: allow-jira
    match: "jira_*"
    decision: allow

Tools exposed to the agent

| Tool | What it does | |---|---| | lelu_agent_authorize | Authorize an agent action (confidence-aware) | | lelu_authorize | Authorize a human user action | | lelu_mint_token | Mint a short-lived scoped JWT | | lelu_revoke_token | Revoke a JIT token immediately | | lelu_health | Check engine health |

Confidence in local dev mode

Production engines require a verified confidence signal (provider logprobs/entropy) and never trust agent self-reports. MCP hosts can't produce those signals, so the local engine starts with CONFIDENCE_ALLOW_UNVERIFIED=true (the tool's optional confidence param is honored) and CONFIDENCE_MISSING_MODE=review (omitting confidence routes the action to human review). Set either env var yourself to override.

Connect to an existing engine instead

If you already run the engine (Docker, Kubernetes, or a remote host), point at it — no local engine is spawned:

npx lelu-mcp start --engine-url http://lelu.internal:8082 --api-key <key>

Configuration

| Env var | Meaning | Default | |---|---|---| | LELU_ENGINE_URL | Use this engine instead of spawning one | (local mode) | | LELU_API_KEY | Bearer key sent to the engine | (none) | | LELU_HOME | Local data dir (binary cache, policy, SQLite) | ~/.lelu | | LELU_POLICY_PATH | Policy file for the local engine | ~/.lelu/policy.yaml | | LELU_ENGINE_BINARY | Use a locally built engine binary (skips download) | (download) | | LELU_ENGINE_VERSION | Pin an engine release, e.g. 0.1.0 | latest |

Flags: --engine-url, --api-key, --timeout <ms>, --transport stdio|http, --port, --no-local. Run npx lelu-mcp --help for everything.

License

MIT