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

@logi-auth/mcp-approval

v0.1.2

Published

MCP server for logi Agent Approval Gate — request human approval before high-risk actions

Readme

@logi-auth/mcp-approval

MCP server for the logi Agent Approval Gate. Lets AI agents (Claude Code, Codex, Cursor, custom) request human approval on a user's phone before performing high-risk actions — budget changes, production deploys, payments, mass communications, etc.

The user sees: "Codex wants to change Meta budget from 500K → 50M KRW. Confirm with Face ID and the 6-digit code." They tap [거절] or [승인], the assertion is signed with the device passkey, and the agent receives the verdict.

Setup

  1. Register an agent in the logi developer console (start.1pass.dev). You'll get a Bearer token and (for signed mode) an Ed25519 private key — both shown once. Save them in a secret manager.

  2. Configure the MCP host (Claude Code shown):

    {
      "mcpServers": {
        "logi-approval": {
          "command": "npx",
          "args": ["-y", "@logi-auth/mcp-approval"],
          "env": {
            "LOGI_AGENT_TOKEN": "logi_agt_...",
            "LOGI_AGENT_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\n...",
            "LOGI_AGENT_PUBLIC_ID": "agt_xxxxxx",
            "LOGI_API_URL": "https://api.1pass.dev"
          }
        }
      }
    }
  3. Tell the agent the rules (in AGENTS.md, CLAUDE.md, or your system prompt):

    You have the logi__request_approval tool. ALWAYS call it BEFORE:
    - Changing any ads budget by >20% or absolute >1,000,000 KRW
    - Running migrations on production databases
    - Sending more than 100 emails or SMS messages in one batch
    - Spending >100,000 KRW on any external API
    - Deploying to production
    
    If the tool returns status != "approved", ABORT and tell the user.
    NEVER proceed without explicit approval for these categories.

Tools

  • logi__request_approval — send a prompt; blocks until the user decides or times out. Returns { status, decided_at, ... }.
  • logi__check_approval — poll a previously created prompt by id.

Auth modes

  • signed (recommended): Bearer + Ed25519 signature on every request. Token theft alone cannot mint approvals — the private key is also required.
  • bearer_only: Bearer only. Convenient (one-liner curl) but a leaked token is a full compromise. Disabled in production by default.

How replay / fatigue is prevented

  • Every request carries a nonce + timestamp + body digest in the signature; the server rejects nonce reuse within a 5-minute window.
  • An in-flight prompt for the same (user, agent, action_type) is reused instead of stacking up — defeats MFA bombing.
  • A rejected action_type triggers a 10-minute cool-down before the same prompt can be re-issued.
  • The user's phone shows a 6-digit number_match the agent also displays; mismatch → reject.

License

MIT