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

@mcptrail/webmcp-devtools

v0.1.1

Published

A zero-config dev panel for WebMCP: lists the tools a page registers, auto-builds a form from each inputSchema, invokes them, and shows the result — pairs with @mcptrail/webmcp-highlight to see what changed.

Readme

@mcptrail/webmcp-devtools

CI License: MIT

A zero-config dev panel for WebMCP. It lists the tools your page registers, auto-builds a form from each inputSchema, lets you invoke them, and shows the result — so you can exercise your agent tools without a flagged Chrome or a live model.

Pairs with @mcptrail/webmcp-highlight: invoke a tool from the panel and watch what it changed on the page.

Install

npm install @mcptrail/webmcp-devtools

react is an optional peer dependency (only for the /react entry).

Vanilla

import { createWebMcpDevtools } from "@mcptrail/webmcp-devtools";

// Create it BEFORE your tools register, so it intercepts navigator.modelContext.registerTool.
const devtools = createWebMcpDevtools();

That's it — a panel appears with every registered tool and a generated form.

React

import { WebMcpDevtoolsProvider } from "@mcptrail/webmcp-devtools/react";

<WebMcpDevtoolsProvider>
  <App />
</WebMcpDevtoolsProvider>;

How it works

  • Discovery — patches navigator.modelContext.registerTool and records each tool (name, description, inputSchema, annotations). Create it early; you can also pass tools: [...] or call register(tool).
  • Forms — a flat object schema of primitives/enums becomes real inputs (text / number / checkbox / select, with defaults and required markers). Anything nested falls back to a raw-JSON editor. Values are coerced to the schema types on invoke.
  • Highlight integration — if @mcptrail/webmcp-highlight is mounted (window.WebMcpHighlight), invocations route through it so the changed DOM is highlighted. Pass an instance explicitly with highlight, or highlight: false to opt out.
  • Theme — samples the host's accent + surface (same inference as webmcp-highlight), so the panel matches your design system.

Options

| Option | Default | Notes | |--------|---------|-------| | target | navigator.modelContext | the modelContext to intercept | | tools | — | seed tools explicitly | | highlight | auto | route invokes through webmcp-highlight (false to disable, or pass an instance) | | position | "bottom-left" | panel corner | | open | true | start expanded | | onInvoke | — | (name, args, { result, status, ms }) after each call |

API

const dt = createWebMcpDevtools(options);
dt.register(tool);   // add a tool manually
dt.tools();          // the current registry
dt.refresh();        // re-render
dt.destroy();        // remove the panel + restore registerTool

Also exported: fieldsFor(schema) and coerceArgs(fields, values) — the pure schema→form and form→args helpers, reusable on their own.

Development

npm install
npm run typecheck
npm test          # Vitest + jsdom
npm run build     # tsup → dist (ESM + CJS + d.ts)

License

MIT © Zied Guetari