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

@frontmcp/protocol

v1.6.1

Published

Centralized MCP protocol types, server, and client re-exports for FrontMCP

Downloads

4,364

Readme

@frontmcp/protocol

The single boundary between FrontMCP and the upstream @modelcontextprotocol/sdk.

NPM

Internal package. It is published so the other @frontmcp/* packages can resolve it — you should not import it from application code. Import MCP types from @frontmcp/sdk instead, and use McpClient from @frontmcp/testing for a raw client in tests.

Why it exists

libs/protocol/src/types.ts is the only file in the whole monorepo that transitively imports @modelcontextprotocol/sdk. Everything else — SDK, adapters, plugins, auth, tests — imports from @frontmcp/protocol.

That indirection means swapping, pinning, or dropping the upstream package is a one-file change instead of a repo-wide refactor. The @nx/dependency-checks lint rule enforces it: adding a direct upstream import anywhere else fails the build.

✅ Route through the boundary:

import { CallToolRequestSchema, McpError, type Tool } from '@frontmcp/protocol';

❌ Never import the upstream package directly — that locks every call site to it:

import { McpError } from '@modelcontextprotocol/sdk/types.js';

If a type you need is not reachable from @frontmcp/protocol, re-export it from libs/protocol/src/types.ts rather than reaching around the boundary.

What it exports

| Area | Contents | | ------------------- | ---------------------------------------------------------------------------------------- | | Protocol types | Requests, results, notifications, schemas, McpError, capabilities | | Protocol 2026-07-28 | Types the upstream SDK does not ship yet — see below | | Server | McpServer, StreamableHTTPServerTransport, WebStandardStreamableHTTPServerTransport | | Client | Client, StreamableHTTPClientTransport, SSEClientTransport | | Transports | stdio (Node + browser), in-memory | | Auth types | AuthInfo and friends |

Node and browser/worker variants are selected automatically through package subpath imports, so the same import works in every runtime FrontMCP targets.

Protocol 2026-07-28

The upstream SDK tops out at 2025-11-25. Revision 2026-07-28 is therefore defined here — MCP_20260728_META, MCP_20260728_ERROR_CODES, CacheableResult, DiscoverResult, InputRequiredResult, SubscriptionFilter, and the rest.

Everything is additive: the 2025-and-earlier types are untouched, because a FrontMCP server serves both eras on the same endpoint. When upstream catches up, types-20260728.ts is the only file that has to change.

See the protocol versions guide for what the revision changed and how FrontMCP selects one per request.

License

Apache-2.0