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

@voyant-travel/mcp

v0.4.7

Published

The in-deployment MCP server for the Voyant framework (voyant#2792). It exposes the framework tool registry as a real [Model Context Protocol](https://modelcontextprotocol.io) server, mounted as a Hono route group inside the operator deployment at `/v1/ad

Downloads

3,551

Readme

@voyant-travel/mcp

The in-deployment MCP server for the Voyant framework (voyant#2792). It exposes the framework tool registry as a real Model Context Protocol server, mounted as a Hono route group inside the operator deployment at /v1/admin/mcpnot a separate app/worker, and no Durable Object.

External MCP clients (Claude, ChatGPT, …) connect to that endpoint over the wire.

API

createMcpApiRoutes({ registry, buildContext, serverInfo? }) → a Hono sub-app. Mount it at /v1/admin/mcp (the "operator/mcp" composition entry):

  • POST / — MCP JSON-RPC (initialize / tools/list / tools/call).
  • GET /manifest — the contract-versioned tool discovery manifest for remote agents.

buildContext(c) maps the request's c.var (db lease / actor / audience / scope) into a @voyant-travel/tools ToolContext.

Graph-driven hosts use createGraphMcpApiRoutes({ runtime, buildContext, buildResources? }). It registers only tools admitted by the resolved graph and discovers the conventional voyantToolContextContribution export from those same runtime entries. Package contributions own service injection for their declared tools[].context keys; buildResources supplies only deployment-specific infrastructure adapters.

Authentication (external MCP clients)

External MCP clients (Claude Desktop, ChatGPT, …) authenticate with a Bearer scoped API key — the operator's existing voy_ key pipeline — sent as Authorization: <key>. No separate OAuth/runner is introduced (voyant#2801): the request auth middleware resolves the key into scopes + audience on c.var, and this server gates every tool by its requiredScopes.

Because authorization is per-tool, the /v1/admin/mcp surface is exempt from the coarse method+path permission guard (require-actor, like _meta): any authenticated key reaches the endpoint, and a key with no relevant scopes simply sees an empty tools/list. Mint keys with a grant preset (e.g. agent-customer) to bundle a scope subset with an audience.

The reserved apps/agent-runner / apps/agent-control-plane stubs are intentionally not built out — Voyant ships the tool primitives + this ready-to-use MCP, not an agent.

How it works

  • Transport: @hono/mcp's StreamableHTTPTransport (web-standard Request/ Response) connected to @modelcontextprotocol/sdk's McpServer. The SDK's own Node-http transport is not used.
  • Stateless, per request: a fresh McpServer + transport per request with { sessionIdGenerator: undefined, enableJsonResponse: true }, then server.connect(transport)transport.handleRequest(c). No session store, no Durable Object — fits the operator's single-worker nodejs_compat runtime and survives the lazy-route c.var re-hydration. Clients must send Accept: application/json, text/event-stream.
  • Authorization (D2): each tool's requiredScopes are checked against the caller's granted scopes with AND semantics (hasApiKeyPermission). Unauthorized tools are neither listed nor registered on the per-request server, so they cannot be called.
  • Selected action gate: every graph Tool resolves to exactly one selected graph action. Graph composition and generic dispatch fail closed unless the action-ledger contribution is selected. The gate checks actor, confirmation, target, idempotency key, exact command fingerprint, and any approved principal-bound request before the domain handler runs. Required-ledger writes record a preflight before dispatch and a terminal success/failure entry afterward.
  • Audience (D3): the authenticated grant remains the source of audience. A Tool may narrow its allowed grant audiences; disallowed Tools are neither listed nor callable.
  • Headless boundary: the registry returns typed pure data; this adapter wraps it in the MCP CallToolResult envelope only at the transport edge.
  • Complete standard discovery: tools/list includes structured output schemas, standard MCP annotations, and _meta["voyant.travel/tool"] with stable capability identity/version, owner, aliases/deprecation, scopes, audience, and exact risk policy. Compatibility aliases remain callable and identify their canonical name in metadata. Selected action metadata also advertises the reserved _voyant invocation control field and its required confirmation/target/idempotency/approval fields. Package-owned two-phase handlers advertise enforcement: "handler"; MCP still requires their explicit confirmation control but does not wrap their domain approval or ledger workflow a second time.
  • Graph-owned context: selected tool runtime entries contribute only context keys declared in package manifests. Missing or undeclared contributions fail closed.