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

@glyphp/adapter-mcp-server

v1.0.8

Published

Expose a Glyph Protocol server's tools to any MCP client (Claude Desktop, Hermes Agent, Cursor, etc.)

Readme

@glyphp/adapter-mcp-server

Expose a Glyph Protocol server's tools to any Model Context Protocol client (Claude Desktop, Hermes Agent, Cursor, etc.).

This is the inverse direction of @glyphp/adapter-mcp (which adapts MCP tools into Glyph). Together they let the two ecosystems consume each other.

Install

pnpm add @glyphp/adapter-mcp-server @glyphp/client

Use

import { GlyphClient } from '@glyphp/client'
import { runStdioBridge } from '@glyphp/adapter-mcp-server'

const client = new GlyphClient({ baseUrl: 'http://localhost:3199' })
await runStdioBridge(client) // MCP stdio server now serving Glyph tools

Point any MCP client at the resulting process — claude_desktop_config.json, Hermes Agent's mcp_servers block, Cursor's MCP setting — and the Glyph server's tools appear as native MCP tools.

Two modes: eager vs lazy

The example above uses eager mode — every Glyph card is surfaced as its own MCP tool. Simple, works with any MCP client, but every tools/list carries every schema.

For large catalogs (dozens of tools), use lazy mode. It exposes only three meta-tools — glyph_index, glyph_describe, glyph_invoke — and lets the model navigate on demand. Cards the agent never touches never enter context.

import { runStdioBridgeLazy } from '@glyphp/adapter-mcp-server'
await runStdioBridgeLazy(client)

Measured trade-off (spec/tests/hermes-comparative-deepseek.md — same prompt, same 49 tools, deepseek-v4-pro):

| Metric | Eager | Lazy | Δ | |---:|---:|---:|---:| | Tools visible in tools/list | 49 | 3 | — | | Listing tokens (per turn) | 4,129 | 256 | −93.8% | | Total tokens (full task) | 168,971 | 77,576 | −54.1% | | Cost (DeepSeek rates) | $0.0227 | $0.0137 | −40% |

The honest catch: lazy mode pays two extra round-trips at the start of a session for discovery. For very small catalogs (<10 tools) or one-shot tasks, eager is preferable. The two modes are exported side-by-side — pick the right one for your shape of problem.

Honest mapping

MCP and Glyph are not isomorphic. The bridge preserves what MCP can carry and consumes the rest server-side:

| Glyph concept | What the bridge does | |---|---| | card.name | Becomes the MCP tool name | | card.intent | Becomes the MCP tool description | | card.cost.riskTier / sideEffects / reversible | Surfaced in the description so the model can reason about blast radius before invoking | | card.input schema | Passed through verbatim as MCP inputSchema | | card.publicKey / signature | Verified by GlyphClient server-side — not exposed to MCP (MCP has nowhere to put them) | | cost.requiresConfirmation: true | Refused at the bridge with a clear error — the MCP transport has no ticket/confirmation flow, and auto-confirming would defeat the gate | | SealedEnvelope.receipt | Verified server-side, then dropped — MCP has no signed-receipt concept | | SealedEnvelope.inspection | When sanitization removed content, a short annotation is appended to the MCP response text so the consuming model knows defense ran | | card.attestation | Not exposed. A consumer that needs to verify attestations should speak Glyph natively |

If your use case requires the cryptographic guarantees (signed receipts for audit, attestation verification, pinning gates), use @glyphp/client directly. The bridge is for integration with the MCP ecosystem, not for security-critical paths.

License

Apache-2.0