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

@nevescloud/mcp-rtc-bridge

v0.5.0

Published

Stdio MCP server that lets Claude Code (or any local MCP client) reach MCP servers hosted on the mcp-rtc mesh. Built on @nevescloud/mcp-rtc. Discovers the remote peer's tools and dynamically forwards them.

Readme

@nevescloud/mcp-rtc-bridge

Stdio MCP server that lets a local MCP client (e.g. Claude Code) reach MCP servers hosted on the mcp-rtc mesh. Built on @nevescloud/mcp-rtc.

Install

Add to ~/.claude/settings.json (Claude Code) or any MCP client config:

{
  "mcpServers": {
    "mcp-rtc-bridge": {
      "command": "npx",
      "args": ["-y", "@nevescloud/mcp-rtc-bridge"]
    }
  }
}

Pre-bound install (--auto-connect)

When the target peer's id is known up-front (e.g. a stable device-paired id), pass it at install time so the peer's tools are present without the user calling connect each session. Pick the install's MCP name to reflect what the bound peer does — the example below uses peer, but a real install might be studio, workshop, etc.:

{
  "mcpServers": {
    "peer": {
      "command": "npx",
      "args": ["-y", "@nevescloud/mcp-rtc-bridge", "--auto-connect", "b79c"]
    }
  }
}

Ids may be passed with or without a leading # — copy-pasting from a fragment-style URL (example.com/page#b79c → #b79c) works as-is.

Optional --lobby <namespace> overrides the default mcp lobby — same semantics as connect's lobbyNamespace.

Auto-connect retries indefinitely with exponential backoff (1.5s → 3s → … → cap 30s, full jitter) so the bridge can be installed before the peer is online; it logs progress to stderr and binds the moment the peer surfaces. The runtime connect tool stays available for switching peers.

Quick test

Verify the bridge works against an echo server hosted by @nevescloud/mcp-rtc:

# In one terminal — the mcp-rtc-hosted MCP server
npx -p @nevescloud/mcp-rtc node -e "
import('@nevescloud/mcp-rtc').then(async ({ WebRTCServerTransport }) => {
  const { McpServer } = await import('@modelcontextprotocol/sdk/server/mcp.js');
  const { z } = await import('zod');
  const server = new McpServer({ name: 'echo', version: '0.0.1' });
  server.tool('echo', { text: z.string() }, async ({ text }) => ({ content: [{ type: 'text', text: [...text].reverse().join('') }] }));
  await server.connect(new WebRTCServerTransport({ siteId: 'bridge-quick-test' }));
});"

Then in your Claude Code session (with the bridge registered): "Connect to bridge-quick-test and call peer_echo with text 'hello'." Expected reply: olleh.

If that works end-to-end, the bridge + transport + signaling lobby are all wired correctly.

What it does

Two built-in tools:

  • connect({ id, lobbyNamespace? }) — establishes a WebRTC + MCP client connection to a remote peer. Discovers the peer's tools and registers each as peer_<toolname> on this bridge. Sends tools/list_changed so your client picks them up.
  • disconnect() — closes the connection and removes the peer_ tools.

After connect, your MCP client sees the peer's tools natively. Calling peer_render({...}) forwards to the peer's render({...}) over the WebRTC data channel and returns the peer's response.

Example

You:    Connect to mcp-rtc canvas at "cv-abc123" using lobbyNamespace "pip-relay"
Claude: [calls connect] → "connected to cv-abc123 (2 tools): peer_render, peer_clear"
You:    Render a hello svg with a green circle
Claude: [calls peer_render({ html: '<svg>...</svg>' })] → "rendered (180 bytes)"

The remote peer's render tool runs in its environment (here, in a browser tab); the bridge just forwards the JSON-RPC.

Lobby namespace

mcp-rtc defaults to lobbyNamespace: 'mcp' for native peers. Confer / pip-relay browser hosts use 'pip-relay'. Pass it explicitly when connecting to a confer canvas:

connect({ id: 'cv-abc123', lobbyNamespace: 'pip-relay' })

Limitations

  • One peer at a time per bridge instance. Calling connect again disconnects the previous peer first.
  • Peer tools are exposed with a peer_ prefix to avoid collision with connect / disconnect.
  • Argument schemas are forwarded permissively (bridge accepts any args matching the peer-advertised property names); the peer validates per its own schema.
  • Requires Node ≥ 22.

Related