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

@mintmcp/claude-agent-hook

v0.0.1

Published

MintMCP hook integration for Claude Agent SDK

Readme

@mintmcp/claude-agent-hook

MintMCP hook integration for the Claude Agent SDK. Forwards agent hook events to MintMCP for logging, rule enforcement, and alerting.

Installation

npm install @mintmcp/claude-agent-hook

Usage

Get your organization key from the MintMCP dashboard at https://app.mintmcp.com/monitor/setup

Complete hooks config

Use createMintMCPHooks when MintMCP is the only hook provider:

import { query } from "@anthropic-ai/claude-agent-sdk";
import { createMintMCPHooks } from "@mintmcp/claude-agent-hook";

const result = await query({
  prompt: "...",
  options: {
    hooks: createMintMCPHooks({
      orgKey: "your-org-key",
    }),
  },
});

Composing with other hooks

Use createMintMCPHook to get a single hook callback that can be composed with other hooks:

import { query } from "@anthropic-ai/claude-agent-sdk";
import { createMintMCPHook } from "@mintmcp/claude-agent-hook";

const mintMCPHook = createMintMCPHook({
  orgKey: "your-org-key",
});

const result = await query({
  prompt: "...",
  options: {
    hooks: {
      PreToolUse: [{ hooks: [mintMCPHook, someOtherHook] }],
      PostToolUse: [{ hooks: [mintMCPHook] }],
      UserPromptSubmit: [{ hooks: [mintMCPHook] }],
    },
  },
});

API

createMintMCPHooks(options)

Returns a complete hooks configuration object for use with the Claude Agent SDK.

createMintMCPHook(options)

Returns a single HookCallback function for composing with other hooks.

Options

| Option | Type | Required | Description | |--------|------|----------|-------------| | orgKey | string | Yes | Your MintMCP organization key | | user | string | No | Username shown in logs (defaults to $USER) |

Supported Hook Events

  • PreToolUse - Called before tool execution
  • PostToolUse - Called after tool execution
  • UserPromptSubmit - Called when a user prompt is submitted

Links