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

@phoenix-erp/mcp-client

v0.3.0

Published

Typed MCP client SDK for Phoenix ERP server

Readme

@phoenix-erp/mcp-client

Typed client SDK for connecting to the Phoenix ERP MCP server over HTTP or custom transports.

Install

npm install @phoenix-erp/mcp-client

Quick Start

import { PhoenixMcpClient } from '@phoenix-erp/mcp-client';

const client = await PhoenixMcpClient.connect({
  baseUrl: 'http://localhost:3100',
  token: 'your-phx-mcp-token',
});

const results = await client.searchDocs('user authentication', { mode: 'hybrid' });
console.log(results);

await client.disconnect();

Production (behind Traefik)

const client = await PhoenixMcpClient.connect({
  baseUrl: 'https://mcp.phx-erp.cloud/mcp-server',
  token: 'your-phx-mcp-token',
});

Custom Transport (stdio)

import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';

const client = await PhoenixMcpClient.connectWithTransport(
  new StdioClientTransport({ command: 'npx', args: ['-y', '@phoenix-erp/mcp'] })
);

Methods

Tool Wrappers

| Method | Description | |--------|-------------| | searchDocs(query, options?) | Hybrid search across ERP documentation. Options: category, limit, fuzzy, mode | | getSection(document, sectionPath) | Retrieve a specific section by document slug and path | | listDocuments(category?) | List all loaded documents, optionally filtered by category | | listSections(document, maxDepth?) | Table of contents for a document | | getCodeExamples(query, options?) | Find code examples by topic. Options: language, category | | getArchitecture(topic) | Architecture info and mermaid diagrams | | getFileMap(document, section?) | File structure for a module |

Resources

| Method | Description | |--------|-------------| | listResources() | List all available MCP resources | | readResource(uri) | Read a resource by URI (e.g. erp://docs, erp://dev-guide/{slug}) |

Utilities

| Method | Description | |--------|-------------| | callTool(name, args) | Generic tool call for any registered MCP tool | | listTools() | List all tools with names and descriptions | | serverInstructions | Server-provided instructions (getter) | | disconnect() | Close the connection and terminate the session |

Full Example

import { PhoenixMcpClient } from '@phoenix-erp/mcp-client';

const client = await PhoenixMcpClient.connect({
  baseUrl: 'http://localhost:3100',
  token: 'your-phx-mcp-token',
});

const results = await client.searchDocs('backup restore', { mode: 'hybrid', limit: 5 });
const section = await client.getSection('getting-started', 'Setup > Environment Variables');
const docs = await client.listDocuments('dev-guide');
const toc = await client.listSections('getting-started');
const code = await client.getCodeExamples('graphql resolver', { language: 'typescript' });
const arch = await client.getArchitecture('module architecture');
const files = await client.getFileMap('getting-started');

const allDocs = await client.readResource('erp://docs');
const raw = await client.callTool('search_docs', { query: 'backup', limit: 3 });

await client.disconnect();

Requirements

  • Node.js >= 18
  • A running @phoenix-erp/mcp-server instance with a valid PHX_MCP_TOKEN

License

MIT