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

discord-notify-mcp

v0.0.5

Published

`discord-notify-mcp` is an MCP (Model Context Protocol) server that exposes a Discord notification tool over standard I/O. Run it with `bunx`, point your MCP-compatible client at the process, and trigger webhook messages straight from your automations or

Readme

discord-notify-mcp

discord-notify-mcp is an MCP (Model Context Protocol) server that exposes a Discord notification tool over standard I/O. Run it with bunx, point your MCP-compatible client at the process, and trigger webhook messages straight from your automations or workflows.

Features

  • Discord notification tool – Publishes a notify MCP tool that sends messages to the Discord webhook configured via DISCORD_WEBHOOK_URL.
  • User mention support – When DISCORD_USER_ID is set, the tool prefixes the message with a mention so the specified user receives a notification.
  • Automatic chunking – Splits payloads longer than 2000 characters into sequential messages to respect Discord’s content limit.

Requirements

  • Bun v1.2 or newer
  • DISCORD_WEBHOOK_URL environment variable containing a valid Discord webhook URL
  • (Optional) DISCORD_USER_ID for automatic user mentions
  • (Optional) DISCORD_NOTIFY_USER_NAME to override the username displayed in Discord

Installation

bun install

Configure the required environment variables via your shell, .env, or a process manager:

export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/<id>/<token>"
# Optional
export DISCORD_USER_ID="<discord-user-id>"
# Optional
export DISCORD_NOTIFY_USER_NAME="notify-bot"

Running the server

During development:

bun run dev

Claude Code configuration

claude mcp add \
  --env DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/<id>/<token>" \
  --env DISCORD_USER_ID="<discord-user-id>" \
  --env DISCORD_NOTIFY_USER_NAME="notify-bot" \
  notify -- bunx discord-notify-mcp@latest

Codex CLI configuration

[mcp_servers.notify]
command = "bunx"
args = ["discord-notify-mcp@latest"]

[mcp_servers.notify.env]
DISCORD_WEBHOOK_URL = "https://discord.com/api/webhooks/<id>/<token>"
DISCORD_USER_ID = "discord-user-id"
DISCORD_NOTIFY_USER_NAME = "notify-bot"

The process stays attached to STDIN/STDOUT, waiting for MCP traffic. Once your client sends initialize, the notify tool becomes available.

Invoking the tool

Send a tool call from your MCP client similar to the payload below:

{
  "type": "tool",
  "toolName": "notify",
  "arguments": {
    "title": "Deployment complete ✅",
    "body": "Release Bot confirmed that all services are healthy.",
    "username": "Release Bot"
  }
}

If DISCORD_USER_ID is configured, the first line automatically becomes <@userId> **title**, and the tool sets allowed_mentions.users so Discord performs the mention while preventing accidental mass pings.

Project scripts

# Format files in-place with Biome
bun run format

# Verify formatting only
bun run format:check

# Type-check with TypeScript
bun run typecheck

# Lint with Biome rules
bun run lint

# Run all Vitest suites
bun run test

# CI aggregate: format:check → typecheck → lint → test
bun run ci

Directory layout

src/
  config.ts              Environment validation and caching helpers
  discord.ts             Lightweight Discord webhook client
  notification-action.ts MCP notification tool implementation
  server.ts              MCP server bootstrap and tool registration
  main.ts                bunx entry point
tests/
  *.test.ts              Vitest suites covering config, client, action, server, and style rules

Troubleshooting

  • Process fails at startup
    Double-check that DISCORD_WEBHOOK_URL begins with https://discord.com/api/webhooks/ and is free from stray whitespace.

  • Messages are not delivered
    The MCP tool propagates Discord HTTP errors back to the client. Inspect the error for rate limits or permission issues.

  • Style test fails
    tests/conventions.test.ts ensures class and function declarations are absent. Stick with arrow functions when adding new code.

License

MIT License. See LICENSE for details.