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

@orkestrel/mcp

v0.0.12

Published

A typed Model Context Protocol client/server with pluggable HTTP, WebSocket, and stdio transports. Part of the @orkestrel line.

Downloads

2,133

Readme

@orkestrel/mcp

A typed Model Context Protocol client/server for the @orkestrel line, bridging the @orkestrel/tool registry to MCP with pluggable HTTP, WebSocket, and stdio transports. createMCPServer exposes a live ToolManagerInterface; createMCPClient drives a remote MCP server and surfaces its tools as local ToolInterfaces. No agent runtime is required. The dispatch core is transport- and provider-agnostic (src/core — JSON-RPC 2.0, no HTTP, no as); every transport (Streamable HTTP over @orkestrel/router / @orkestrel/server, WebSocket over @orkestrel/websocket, and stdio over node:child_process) lives one layer out (src/server), each mechanism, not policy. Part of the @orkestrel line.

Install

npm install @orkestrel/mcp

Requirements

  • Node.js >= 24
  • ESM and CommonJS builds ship for both the core and server entry points
  • @orkestrel/server and @orkestrel/router are peer dependencies (the HTTP spine the ./server transports mount onto)

Usage

Expose a tool registry over MCP, mounted on the HTTP spine:

import { createMCPServer } from '@orkestrel/mcp'
import { createMCPRoutes } from '@orkestrel/mcp/server'
import { createTool, createToolManager } from '@orkestrel/tool'

const tools = createToolManager()
tools.add(createTool({ name: 'add', execute: (a) => Number(a.x) + Number(a.y) }))

const mcp = createMCPServer({ name: 'calculator', version: '1.0.0', tools })
const routes = createMCPRoutes(mcp) // POST /mcp dispatches JSON-RPC (JSON or SSE per Accept)
router.add(routes)

Drive a remote MCP server as a client, over the same transport-agnostic core:

import { createMCPClient } from '@orkestrel/mcp'
import { createHTTPClientTransport } from '@orkestrel/mcp/server'

const client = createMCPClient({
	transport: createHTTPClientTransport({ url: 'http://localhost:3000/mcp' }),
})
await client.connect()
const tools = await client.tools()
const value = await client.call('add', { x: 2, y: 5 })

The SAME MCPClient drives a createWebSocketClientTransport or createStdioClientTransport instead — only the injected transport changes.

Guide

For the full surface — the JSON-RPC dispatch core, the three server transports (HTTP, WebSocket, stdio), the native session middleware, and usage patterns — see guides/src/mcp.md.

Package

Published with two entry points per the exports field in package.json: the environment-agnostic core (.) and the Node-only server surface (./server).

License

MIT © Orkestrel — see LICENSE.