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

@ntcore-ts/mcp

v1.0.0

Published

Model Context Protocol server for NetworkTables, built on @ntcore-ts/client

Readme

@ntcore-ts/mcp

Model Context Protocol (MCP) server for live NetworkTables, built on @ntcore-ts/client.

Exposes connect/discover/get/decode/subscribe tools to MCP hosts (Cursor, Claude Desktop, etc.), with gated writes and structured JSON evidence for agents.

Install

npm install -g @ntcore-ts/mcp
# or use npx
npx ntcore-ts-mcp

Cursor / Claude Desktop

{
  "mcpServers": {
    "ntcore-ts": {
      "command": "npx",
      "args": ["-y", "ntcore-ts-mcp"],
      "env": {
        "NT_ALLOW_WRITES": "0"
      }
    }
  }
}

Local workspace (monorepo):

{
  "mcpServers": {
    "ntcore-ts": {
      "command": "npx",
      "args": ["tsx", "packages/mcp/src/cli.ts"],
      "cwd": "/path/to/ntcore-ts"
    }
  }
}

Inspector:

npx @modelcontextprotocol/inspector npx tsx packages/mcp/src/cli.ts

Tools

Call nt_guide first. Highlights:

| Tool | Role | | ----------------------------------------------------- | ------------------------------------------------- | | nt_connect / nt_disconnect / nt_connection_info | Session | | nt_list_topics | Inventory (prefix filter) | | nt_get / nt_get_multiple | Scalars / arrays / JSON | | nt_get_decoded | Struct / protobuf → JSON | | nt_subscribe | Timed sample window (summary or samples) | | nt_list_struct_types | Built-in + discovered struct names | | nt_set_write_mode | Enable/disable writes (confirm: true to enable) | | nt_set / nt_set_multiple | Gated publish |

Writes (safety)

Writes are off by default.

  • Enable for the session: nt_set_write_mode({ enabled: true, confirm: true })
  • Or start with NT_ALLOW_WRITES=1
  • Path allowlist (default): /SmartDashboard/**,/Tuning/**,/MyTable/** via NT_WRITE_ALLOWLIST
  • Optional: NT_REQUIRE_LOCALHOST=1 refuses writes to non-local hosts

This is not a Driver Station. Do not use NT writes to enable/disable a robot on the field.

Programmatic use

import { createNtMcpServer, NtMcpService } from '@ntcore-ts/mcp';

const service = new NtMcpService();
await service.connect({ host: 'localhost', port: 5810 });
const list = service.listTopics('/MyTable/');

// Or hand the factory to an MCP host transport:
const server = createNtMcpServer({ service });

Docs

Full guide (install, tools, write gate, workflow): MCP server in the VitePress site (apps/docs/guide/mcp.md in this repo).

Notes

Topic discovery uses short-lived prefix snapshots. Leaving a long-lived prefix=/ subscription open on the same @ntcore-ts/client instance prevents later typed topic subscriptions from receiving values; the MCP layer avoids that by snapshot-then-unsubscribe and by decoding struct bytes from inventory for nt_get_decoded.

The MCP process sets the client log level to silent so tslog never writes to stdout (which would corrupt the MCP JSON-RPC channel). Operational messages from this package go to stderr only, as single lines.

Out of scope (for now)

  • Offline WPILOG analysis
  • Embedded roboRIO status MCP
  • HTTP transport / MCP Resources / persistent poll subscriptions

License

MIT