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

@dittowords/mcp-server

v0.1.7

Published

Ditto MCP server

Readme

Ditto MCP Server

A Model Context Protocol server that gives AI coding agents access to your team's Ditto styleguide rules so they can write on-brand text.

Quick start

Configure the MCP server

Add the following to your project's .mcp.json (or global ~/.claude.json):

{
  "mcpServers": {
    "ditto": {
      "command": "npx",
      "args": ["@dittowords/mcp-server"],
      "env": {
        "DITTO_API_TOKEN": "<your-token-here>"
      }
    }
  }
}

Or via the Claude Code CLI:

claude mcp add ditto -e DITTO_API_TOKEN=your-api-token -- npx @dittowords/mcp-server

Start using it

Once configured, AI coding agents (like Claude Code) can call the get_styleguide_rules tool to fetch your workspace's styleguide rules. These rules are then applied whenever the agent writes or edits user-facing text.

How it works

  1. The agent checks for a ditto/config.yaml file in the project root to pick up any project IDs configured for the workspace.
  2. It calls get_styleguide_rules (passing project IDs if present) to retrieve the active styleguide rules.
  3. The returned rules — such as preferred terminology and writing conventions — are applied to all text the agent produces.

Project configuration

To enable project-specific styleguide rules, create a ditto/config.yaml file in your project root:

projects:
  - id: "your-project-id"

Replace the placeholder ID with your actual Ditto project's developer ID.

Environment variables

| Variable | Required | Default | Description | | -------------------- | -------- | ---------------------------- | ------------------------------------------------------ | | DITTO_API_TOKEN | Yes | — | API token for authenticating with Ditto | | DITTO_API_BASE_URL | No | https://api.dittowords.com | Override the API base URL (e.g. for local development) |

Development

Setup

cd mcp
yarn install
yarn build

Dev mode

Use yarn dev to run the server directly from TypeScript (via tsx) without a build step:

DITTO_API_TOKEN=your-api-token yarn dev

Testing with MCP Inspector

DITTO_API_TOKEN=your-api-token npx @modelcontextprotocol/inspector node dist/index.js

This opens a browser UI where you can list tools and call them interactively.