Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
bundleMCPServer
✓ import { bundleMCPServer } from '@mcps/bundler';
✗ const bundleMCPServer = require('@mcps/bundler');
Package is ESM-only; CommonJS require() will fail.
parseSmitheryYaml
✓ import { parseSmitheryYaml } from '@mcps/bundler';
Use to parse Smithery YAML content directly.
smitheryConfigToUserConfig
✓ import { smitheryConfigToUserConfig } from '@mcps/bundler';
Converts Smithery config schema to MCPB user config format.
smitheryToManifest
✓ import { smitheryToManifest } from '@mcps/bundler';
✗ import smitheryToManifest from '@mcps/bundler';
Named export only; default export is not available.
Shows how to use the programmatic API to bundle a Smithery MCP server project.
import { bundleMCPServer } from '@mcps/bundler';
import { resolve } from 'path';
const projectPath = resolve('./my-server');
const outputDir = resolve('./dist');
const result = await bundleMCPServer(projectPath, outputDir, {
minify: true,
entry: 'src/index.ts'
});
console.log(`Bundle size: ${result.bundleSize} KB`);
mcpb --version
Errors
Common errors & fixes
Error: Cannot find module '@mcps/bundler'
Package not installed or missing in node_modules.
fixRun `npm install @mcps/bundler`
SyntaxError: Unexpected token '{'
Using CommonJS require() on an ESM-only package.
fixUse `import { bundleMCPServer } from '@mcps/bundler';` instead Error: Node.js version 16.x is not supported
Minimum Node.js requirement is 18.x.
fixUpgrade Node.js to version 18 or higher
TypeError: (0 , bundler_1.bundleMCPServer) is not a function
Attempting to call the default export when it does not exist.
fixUse named import: `import { bundleMCPServer } from '@mcps/bundler';` Audit
Dependencies
@smithery/sdkrequiredProvides types and utilities for Smithery MCP server configuration