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

@automatey-org/mcp

v0.1.3

Published

Provider-agnostic MCP helpers for the Vercel AI SDK: a Streamable-HTTP MCP client and a buildMcpToolSet() that exposes MCP tools as AI SDK tools with destructive-tool gating and call/result callbacks.

Downloads

377

Readme

@automatey-org/mcp

Provider-agnostic Model Context Protocol helpers for the Vercel AI SDK.

  • McpHttpClient (aka NativeMcpHttpClient) — a lazily-connecting MCP client over Streamable HTTP. Normalizes network failures into friendly "unavailable" errors while re-throwing abort errors so callers can tell cancellation apart from an outage.
  • buildMcpToolSet() — turns MCP tools into an AI SDK ToolSet: each tool's JSON Schema is wrapped with jsonSchema(), destructive tools are gated unless unattended, results are flattened for the model, and call/result/error callbacks fire around every invocation.
  • toolingsafeToolName, compactToolResult, isDestructiveToolName, destructiveActionPattern (all overridable via buildMcpToolSet options).
import { McpHttpClient, buildMcpToolSet } from "@automatey-org/mcp";
import { streamText } from "ai";

const mcp = new McpHttpClient("http://127.0.0.1:8123/mcp", abortSignal);
const tools = buildMcpToolSet({
  tools: await mcp.listTools(),
  mcp,
  unattended: false,
  onToolCall: (name, input) => console.log("call", name, input),
});

const result = streamText({ model, tools, prompt });

Peer deps: ai (>=7 <8), @modelcontextprotocol/sdk (>=1.29 <2).