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

@hivehub/umicp2mcp

v0.1.3

Published

MCP Bridge for UMICP - Execute UMICP calls through Model Context Protocol

Readme

@hivellm/umicp2mcp

MCP Bridge for UMICP - Execute UMICP calls through Model Context Protocol.

Overview

This package provides a bridge between the Model Context Protocol (MCP) and UMICP servers, allowing you to test and interact with UMICP implementations directly from Cursor or any MCP-compatible client.

Installation

npm install -g @hivehub/umicp2mcp

Or run directly with npx:

npx @hivehub/umicp2mcp

Usage

Running the MCP Server

Start the bridge server:

npx @hivehub/umicp2mcp

Configure in Cursor

Add to your MCP settings (.cursor/mcp.json or similar):

{
  "mcpServers": {
    "umicp": {
      "command": "npx",
      "args": ["@hivehub/umicp2mcp"]
    }
  }
}

Available Tools

umicp_call

Execute a UMICP call to a remote server.

Parameters:

  • server (object, required):
    • host (string): Server hostname or IP (default: "localhost")
    • port (number, required): Server port
    • timeout (number): Connection timeout in ms (default: 30000)
    • tls (boolean): Enable TLS/SSL (default: false)
  • method (string, required): Method to call on the UMICP server
  • payload (object): Request payload
  • metadata (object): Request metadata (key-value pairs)
  • timeout (number): Request timeout in ms (default: 30000)

Example:

{
  "server": {
    "host": "localhost",
    "port": 8080
  },
  "method": "echo",
  "payload": {
    "message": "Hello, UMICP!"
  },
  "metadata": {
    "client": "cursor"
  }
}

umicp_stats

Get bridge statistics including total calls, success/failure rates, and average execution time.

umicp_connections

List all active UMICP server connections.

umicp_close_connection

Close a specific server connection.

Parameters:

  • host (string, required): Server hostname
  • port (number, required): Server port

umicp_reset_stats

Reset all bridge statistics.

Development

Build

npm run build

Watch Mode

npm run dev

Clean

npm run clean

Architecture

The bridge consists of four main components:

  1. MCP Server (src/index.ts): Handles MCP protocol communication via stdio
  2. UMICP Bridge (src/bridge.ts): Manages UMICP client connections and calls
  3. HTTP Client (src/http-client.ts): HTTP transport for web-based UMICP servers
  4. TCP Client (src/client.ts): Raw TCP socket transport for native UMICP servers
  5. Type Definitions (src/types.ts): TypeScript interfaces and types

Transport Flow

Cursor/MCP Client
      ↓
   MCP Server (stdio)
      ↓
  UMICP Bridge
      ↓
   Port Detection
    ↙     ↘
HTTP Client  TCP Client
    ↓           ↓
  Synap      Native UMICP
 (15500)      (8080)

Features

  • Dual Transport Support: HTTP and TCP sockets
  • Auto-detection: Automatically chooses HTTP or TCP based on port
  • UMICP v2.0 Compatible: Proper envelope format with Rust compatibility
  • ✅ Execute UMICP calls through MCP
  • ✅ Connection pooling (reuses existing connections)
  • ✅ Configurable timeouts
  • ✅ TLS/SSL support (both HTTP and TCP)
  • ✅ Request/response metadata
  • ✅ Bridge statistics tracking
  • ✅ Graceful shutdown
  • ✅ Error handling

Transport Selection

The bridge automatically selects the appropriate transport:

  • HTTP Transport: Used for ports 80, 443, or 10000-19999 (typical HTTP ports)

    • Connects to /umicp endpoint
    • Stateless (no persistent connection)
    • Perfect for web-based UMICP servers like Synap
  • TCP Transport: Used for all other ports

    • Raw TCP socket connection
    • Persistent connection
    • Lower latency for high-frequency calls

Testing

Testing with Synap (HTTP Transport)

The bridge has been tested and verified with Synap, a high-performance messaging system with UMICP support.

  1. Start Synap server:
cd synap
cargo run --release --bin synap-server
  1. In Cursor, test all 8 Synap operations via UMICP:

KV Store:

// SET
{ "server": { "port": 15500 }, "method": "synap_kv_set", "payload": { "key": "test", "value": "works!", "ttl": 3600 } }

// GET
{ "server": { "port": 15500 }, "method": "synap_kv_get", "payload": { "key": "test", "type": "string" } }

// DELETE
{ "server": { "port": 15500 }, "method": "synap_kv_delete", "payload": { "key": "test" } }

// SCAN
{ "server": { "port": 15500 }, "method": "synap_kv_scan", "payload": { "prefix": "user:", "limit": 10 } }

Queue:

{ "server": { "port": 15500 }, "method": "synap_queue_publish", "payload": { "queue": "tasks", "message": "job data", "priority": 5 } }

{ "server": { "port": 15500 }, "method": "synap_queue_consume", "payload": { "queue": "tasks", "consumer_id": "worker-1" } }

Stream:

{ "server": { "port": 15500 }, "method": "synap_stream_publish", "payload": { "room": "chat", "event": "msg", "data": { "text": "hi" } } }

Pub/Sub:

{ "server": { "port": 15500 }, "method": "synap_pubsub_publish", "payload": { "topic": "notifications", "message": { "type": "alert" } } }

Test Results

All 8 Synap operations tested successfully:

  • synap_kv_set - Stores key-value pairs
  • synap_kv_get - Retrieves values
  • synap_kv_delete - Deletes keys
  • synap_kv_scan - Scans by prefix
  • synap_queue_publish - Publishes to queue
  • synap_queue_consume - Consumes from queue
  • synap_stream_publish - Publishes to stream
  • synap_pubsub_publish - Publishes to topic

Stats: 7 calls, 100% success rate, 9ms average latency

Examples

Synap KV Store (HTTP Transport)

{
  "server": { "host": "localhost", "port": 15500 },
  "method": "synap_kv_set",
  "payload": {
    "key": "my-key",
    "value": "Hello UMICP!",
    "ttl": 3600
  }
}
{
  "server": { "host": "localhost", "port": 15500 },
  "method": "synap_kv_get",
  "payload": {
    "key": "my-key",
    "type": "string"
  }
}

Synap Queue (HTTP Transport)

{
  "server": { "host": "localhost", "port": 15500 },
  "method": "synap_queue_publish",
  "payload": {
    "queue": "my-queue",
    "message": "Task data",
    "priority": 5
  }
}

Synap Stream (HTTP Transport)

{
  "server": { "host": "localhost", "port": 15500 },
  "method": "synap_stream_publish",
  "payload": {
    "room": "chat",
    "event": "message",
    "data": { "text": "Hello!" }
  }
}

TCP Socket Server

{
  "server": { "port": 8080 },
  "method": "echo",
  "payload": { "message": "test" }
}

Call with Metadata

{
  "server": { "host": "api.example.com", "port": 443, "tls": true },
  "method": "users.list",
  "metadata": { "authorization": "Bearer token123" }
}

Custom Timeout

{
  "server": { "port": 15500, "timeout": 5000 },
  "method": "synap_kv_scan",
  "payload": { "prefix": "user:", "limit": 100 },
  "timeout": 60000
}

License

MIT

Contributing

Contributions are welcome! Please read the contributing guidelines before submitting PRs.

Links