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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ddse/acm-mcp

v0.5.0

Published

MCP (Model Context Protocol) tool integration for ACM

Readme

@ddse/acm-mcp

MCP (Model Context Protocol) tool integration for ACM.

Overview

This package provides integration with MCP servers, allowing ACM agents to use tools exposed via the Model Context Protocol. MCP is a standardized protocol for connecting AI applications with data sources and tools.

Features

  • Connect to MCP servers via stdio transport
  • Automatic tool discovery
  • Seamless integration with ACM tool registry
  • Support for combining local and MCP tools

Installation

pnpm add @ddse/acm-mcp

Usage

Connecting to an MCP Server

import { McpClientManager, McpToolRegistry } from '@ddse/acm-mcp';

// Create and connect to an MCP server
const manager = new McpClientManager();
await manager.connect({
  command: 'npx',
  args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp'],
});

// Create a tool registry from MCP tools
const mcpRegistry = new McpToolRegistry(manager);

// List available tools
console.log(mcpRegistry.list());

Using MCP Tools with ACM

import { CombinedToolRegistry } from '@ddse/acm-mcp';
import { SimpleToolRegistry } from '@ddse/acm-examples/registries';

// Combine local tools with MCP tools
const localTools = new SimpleToolRegistry();
// ... register local tools

const combinedRegistry = new CombinedToolRegistry(localTools, mcpRegistry);

// Use in ACM execution
const result = await executePlan({
  goal,
  context,
  plan,
  capabilityRegistry,
  toolRegistry: combinedRegistry, // Use combined registry
  // ...
});

Example: Using Filesystem MCP Server

import { McpClientManager, CombinedToolRegistry } from '@ddse/acm-mcp';

// Connect to filesystem MCP server
const manager = new McpClientManager();
await manager.connect({
  command: 'npx',
  args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp'],
});

// Now you have access to file operations:
// - read_file
// - write_file
// - list_directory
// - etc.

const mcpRegistry = new McpToolRegistry(manager);
const tool = mcpRegistry.get('read_file');
if (tool) {
  const content = await tool.call({ path: '/tmp/example.txt' });
  console.log(content);
}

// Don't forget to disconnect when done
await manager.disconnect();

Available MCP Servers

The MCP ecosystem includes several free servers you can use:

  • @modelcontextprotocol/server-filesystem: File system operations
  • @modelcontextprotocol/server-github: GitHub API integration
  • @modelcontextprotocol/server-postgres: PostgreSQL database access
  • @modelcontextprotocol/server-brave-search: Web search via Brave
  • @modelcontextprotocol/server-memory: Simple key-value storage

API Reference

McpClientManager

Manages connection to an MCP server.

Methods:

  • connect(config: McpServerConfig): Connect to an MCP server
  • getTool(name: string): Get a specific tool
  • getAllTools(): Get all available tools
  • listToolNames(): List all tool names
  • disconnect(): Close connection
  • isConnected(): Check connection status

McpToolRegistry

Tool registry backed by MCP tools.

Methods:

  • get(name: string): Get a tool by name
  • list(): List all tool names
  • refresh(): Refresh tools from server

CombinedToolRegistry

Combines local and MCP tool registries.

Constructor:

new CombinedToolRegistry(localRegistry, mcpRegistry?)

Methods:

  • get(name: string): Get a tool (checks local first, then MCP)
  • list(): List all tool names from both registries

License

Apache-2.0