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

@askthew/mcp-plugin

v0.2.8

Published

Ask The W MCP connector for capturing compact coding-agent session signals.

Readme

Ask The W MCP Plugin

Connect a local coding agent to Ask The W.

This package runs a small MCP server that lets Codex, Claude Code, Cursor, and other MCP-capable tools send compact work-session signals to an Ask The W workspace.

What It Does

  • Installs an Ask The W MCP server entry into a supported local client.
  • Preserves existing MCP servers and settings.
  • Adds marked project instructions so future coding-agent sessions know when to send Ask The W updates.
  • Sends a startup heartbeat so Ask The W can show the plugin as installed.
  • Exposes one primary MCP tool: capture_session_signal.
  • Redacts obvious secrets from summaries, evidence excerpts, commands, and metadata before sending.
  • Adds lightweight workspace metadata such as host type, repo name, app path, and server name.

What It Does Not Do

  • It does not send full transcripts by default.
  • It does not infer decisions locally.
  • It does not link outcomes, score confidence, dedupe signals, or update the graph locally.
  • It does not include the Ask The W app, private server code, Supabase code, or internal analytics code.

Ask The W performs inference, linking, approval state, dedupe, and outcome updates in the app.

Install

Create a workspace token in Ask The W, then run the installer from your coding agent or terminal.

Codex:

npx -y --prefer-online @askthew/mcp-plugin@latest install \
  --host codex \
  --token "<ASKTHEW_INSTALL_TOKEN>" \
  --api-url "https://app.askthew.com/" \
  --server-name "askthew"

Claude Code:

npx -y --prefer-online @askthew/mcp-plugin@latest install \
  --host claude_code \
  --token "<ASKTHEW_INSTALL_TOKEN>" \
  --api-url "https://app.askthew.com/" \
  --server-name "askthew"

Cursor:

npx -y --prefer-online @askthew/mcp-plugin@latest install \
  --host cursor \
  --token "<ASKTHEW_INSTALL_TOKEN>" \
  --api-url "https://app.askthew.com/" \
  --server-name "askthew"

After install, restart or reload your coding agent if needed.

The installer also adds safe, marked project instructions:

  • Codex: AGENTS.md
  • Claude Code: CLAUDE.md
  • Cursor: .cursor/rules/askthew.mdc

These instructions tell the coding agent to send compact Ask The W updates after meaningful direction changes, implementation work, verification, long-session checkpoints, and final summaries. Existing instruction files are preserved.

To skip this behavior, pass:

--no-agent-instructions

Configuration

The installer writes the MCP server into the host's native MCP configuration so it appears in that host's MCP server list:

  • Codex: ~/.codex/config.toml
  • Claude Code: ~/.claude.json, scoped to the current project
  • Cursor: ~/.cursor/mcp.json

Codex example:

[mcp_servers.askthew]
command = "npx"
args = ["-y", "--prefer-online", "@askthew/mcp-plugin@latest"]
env = { ASKTHEW_INSTALL_TOKEN = "<ASKTHEW_INSTALL_TOKEN>", ASKTHEW_HOST_TYPE = "codex", ASKTHEW_API_URL = "https://app.askthew.com/", ASKTHEW_SERVER_NAME = "askthew" }

Claude Code and Cursor use an MCP JSON entry like this:

{
  "mcpServers": {
    "askthew": {
      "command": "npx",
      "args": ["-y", "--prefer-online", "@askthew/mcp-plugin@latest"],
      "env": {
        "ASKTHEW_INSTALL_TOKEN": "<ASKTHEW_INSTALL_TOKEN>",
        "ASKTHEW_HOST_TYPE": "codex",
        "ASKTHEW_API_URL": "https://app.askthew.com/",
        "ASKTHEW_SERVER_NAME": "askthew"
      }
    }
  }
}

Optional environment variables:

  • ASKTHEW_CLIENT_ID
  • ASKTHEW_CLIENT_LABEL

Tool Contract

The public tool surface is intentionally small.

{
  "name": "capture_session_signal",
  "input": {
    "sessionId": "string",
    "sequence": "number",
    "kind": "setup_complete | session_checkpoint | direction_change | implementation_update | verification_result | final_summary",
    "summary": "string",
    "evidence": [{ "role": "user | assistant | system", "excerpt": "string" }],
    "filesTouched": ["string"],
    "commandsRun": ["string"],
    "metadata": {}
  }
}

Use compact summaries and short evidence excerpts. Do not send full transcripts.

Troubleshooting

  • Empty list_mcp_resources or list_mcp_resource_templates results are normal. This connector is tool-driven.
  • If Ask The W shows "Waiting for install", restart or reload your coding agent.
  • If Ask The W shows "Installed", restart or reload your coding agent if it was already open. On the next Ask The W setup check, choose "Always allow" if your coding agent asks for tool permission.
  • If a token fails, rotate it in Ask The W and rerun the installer.

Development

npm run build --workspace @askthew/mcp-plugin
npm test --workspace @askthew/mcp-plugin
npm pack --workspace @askthew/mcp-plugin --dry-run