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

@rsconcept/rstool-mcp

v1.0.0

Published

Model Context Protocol (MCP) adapter that exposes the @rsconcept/rstool RSToolAgent contract over MCP stdio. Works with Cursor, Claude Desktop, and any MCP-capable host.

Readme

@rsconcept/rstool-mcp

Model Context Protocol adapter for @rsconcept/rstool. Exposes the full RSToolAgent contract — sessions, constituent upserts, RSLang analysis, diagnostics, modeling, evaluation — as MCP tools over stdio, so any MCP-capable host (Cursor, Claude Desktop, your own client) can drive rstool natively.

If you do not need MCP, use @rsconcept/rstool directly (library API or stdio JSON wrapper).

Install

npm install -g @rsconcept/rstool-mcp
# or per-project:
npm install @rsconcept/rstool-mcp

The package ships a rstool-mcp bin that launches the stdio server. It depends on @rsconcept/rstool and (transitively) @rsconcept/domain; no Portal checkout is required.

Run

npx rstool-mcp

The server announces readiness on stderr (rstool-mcp server ready on stdio) and then speaks the MCP protocol on stdin/stdout. There is no HTTP port.

Configure in Cursor

Add the server to your Cursor MCP configuration (~/.cursor/mcp.json):

{
  "mcpServers": {
    "rstool": {
      "command": "npx",
      "args": ["-y", "@rsconcept/rstool-mcp"]
    }
  }
}

Restart Cursor; the tools appear under the rstool server. Pin a version if you prefer reproducible installs:

{
  "mcpServers": {
    "rstool": {
      "command": "npx",
      "args": ["-y", "@rsconcept/[email protected]"],
      "env": {
        "RSTOOL_PERSISTENCE_DIR": "C:/path/to/rstool-sessions"
      }
    }
  }
}

Set RSTOOL_PERSISTENCE_DIR to keep sessions across MCP server restarts (optional).

Configure in Claude Desktop

Edit claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

{
  "mcpServers": {
    "rstool": {
      "command": "npx",
      "args": ["-y", "@rsconcept/rstool-mcp"]
    }
  }
}

Exposed tools

| MCP tool | Wraps | Notes | | --------------------- | ------------------- | --------------------------------------------- | | ping | — | Liveness + contractVersion. | | list_methods | — | Enumerate available tools. | | ensure_session | ensureSession | Return active session or create one. | | create_session | createSession | Optional initial seed. | | set_current_session | setCurrentSession | Switch active session. | | get_current_session | getCurrentSession | Current session handle, or null. | | apply_schema_patch | applySchemaPatch | Primary schema edit path. | | get_session_state | getSessionState | detail=summary (default) or full. | | analyze_expression | analyzeExpression | Scratch analysis. | | list_diagnostics | listDiagnostics | Optional constituentId, kind, severity. | | commit_step | commitStep | Records a revision. | | export_session | exportSession | JSON string. | | export_portal | exportPortal | kind=schema\|model, format=json\|object. | | import_data | importData | kind=auto by default. | | set_model_values | setModelValues | set[] and/or clear[]. | | get_model_state | getModelState | Values + statuses. | | evaluate | evaluate | Scratch or stored constituent. | | recalculate_model | recalculateModel | Full recompute. | | restore_order | restoreOrder | Restore declaration order (topo + semantic). | | synthesize | synthesize | Embed another session + identification table. |

Session tools accept optional sessionId (flat params, no input wrapper). Prefer apply_schema_patch for schema edits.

Programmatic use

If you want to build a custom transport (HTTP, in-process) instead of stdio:

import { StreamableHttpServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
import { buildRSToolMcpServer } from "@rsconcept/rstool-mcp";

const server = buildRSToolMcpServer();
const transport = new StreamableHttpServerTransport();
await server.connect(transport);

Or share a single RSToolAgent between multiple servers / requests:

import { RSToolAgent } from "@rsconcept/rstool";
import { buildRSToolMcpServer } from "@rsconcept/rstool-mcp";

const tool = new RSToolAgent();
const server = buildRSToolMcpServer({
  tool,
  name: "my-rstool-mcp",
  version: "0.3.0",
});

Companion docs

For RS language, the rstool contract, error codes, and common workflows, agents should read @rsconcept/rstool/docs and the bundled rstool skill (router to stage skills) that ships with @rsconcept/rstool (install: node_modules/@rsconcept/rstool/skills/INSTALL.md).

Publishing

Maintainers: see PUBLISHING.md for npm release steps.

License

MIT