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

@awesome-agent/mcp-client

v0.2.0

Published

MCP transport clients (stdio, HTTP) for @awesome-agent/agent-core

Downloads

67

Readme

@awesome-agent/mcp-client

MCP (Model Context Protocol) transport clients for @awesome-agent/agent-core.

Connect to any MCP server — fal.ai, GitHub, Slack, filesystem, databases, and hundreds more from the MCP ecosystem.

Installation

npm install @awesome-agent/agent-core @awesome-agent/mcp-client

Usage — Stdio Transport

Most MCP servers run as child processes communicating via stdin/stdout:

import { StdioMCPClient } from "@awesome-agent/mcp-client";

// fal.ai — image & video generation
const fal = new StdioMCPClient({
  id: "fal",
  name: "fal.ai",
  command: "npx",
  args: ["-y", "mcp-fal"],
  env: { FAL_KEY: process.env.FAL_KEY },
});

// GitHub — repos, issues, PRs
const github = new StdioMCPClient({
  id: "github",
  name: "GitHub",
  command: "npx",
  args: ["-y", "@modelcontextprotocol/server-github"],
  env: { GITHUB_PERSONAL_ACCESS_TOKEN: process.env.GITHUB_TOKEN },
});

// Filesystem — read/write files
const fs = new StdioMCPClient({
  id: "fs",
  name: "Filesystem",
  command: "npx",
  args: ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"],
});

With AgenticLoop

Tools are auto-discovered and registered:

import {
  AgenticLoop, DefaultToolRegistry, DefaultToolExecutor,
  DefaultHookManager, DefaultContextBuilder,
} from "@awesome-agent/agent-core";
import { OpenAIAdapter } from "@awesome-agent/adapter-openai";
import { StdioMCPClient } from "@awesome-agent/mcp-client";

const tools = new DefaultToolRegistry();

const loop = new AgenticLoop({
  llm: new OpenAIAdapter({ baseURL: "...", apiKey: "..." }),
  agent: { id: "agent", name: "Agent", prompt: "You can use tools." },
  tools,
  executor: new DefaultToolExecutor(tools),
  hooks: new DefaultHookManager(),
  context: new DefaultContextBuilder(),
  mcpClients: [
    new StdioMCPClient({
      id: "fal",
      name: "fal.ai",
      command: "npx",
      args: ["-y", "mcp-fal"],
      env: { FAL_KEY: process.env.FAL_KEY },
    }),
  ],
  // Tools auto-discovered: fal_generate_image, fal_generate_video, etc.
});

const result = await loop.run("Generate an image of a sunset", "s1");

Multiple MCP Servers

Connect as many servers as you need — tools are prefixed with the server ID:

const loop = new AgenticLoop({
  ...config,
  mcpClients: [
    new StdioMCPClient({ id: "fal", name: "fal.ai", command: "npx", args: ["-y", "mcp-fal"] }),
    new StdioMCPClient({ id: "github", name: "GitHub", command: "npx", args: ["-y", "@modelcontextprotocol/server-github"] }),
    new StdioMCPClient({ id: "fs", name: "FS", command: "npx", args: ["-y", "@modelcontextprotocol/server-filesystem", "."] }),
  ],
});

// Available tools: fal_generate_image, github_create_issue, fs_read_file, ...

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | id | string | (required) | Unique server ID (used as tool prefix) | | name | string | (required) | Display name | | command | string | (required) | Command to spawn (npx, node, python) | | args | string[] | [] | Command arguments | | env | Record<string, string> | {} | Environment variables | | cwd | string | (process cwd) | Working directory | | timeout | number | 30000 | Request timeout in ms |

How It Works

Your app                        MCP Server (child process)
   │                                    │
   │── spawn("npx mcp-fal") ──────────►│ (process starts)
   │── stdin: initialize ─────────────►│
   │◄── stdout: { capabilities } ──────│
   │── stdin: tools/list ─────────────►│
   │◄── stdout: { tools: [...] } ──────│
   │── stdin: tools/call ─────────────►│
   │◄── stdout: { result: "..." } ─────│
   │── kill() ─────────────────────────►│ (process ends)

Exports

| Export | Description | |--------|-------------| | StdioMCPClient | Stdio transport — spawns MCP server as child process | | StdioMCPClientConfig | Configuration type | | JsonRpcClient | Low-level JSON-RPC 2.0 client (advanced) |

License

Apache-2.0