history
Pack: bundlephobia · Endpoint: https://gateway.pipeworx.io/bundlephobia/mcp
Fetch minified + gzipped bundle size for each of up to 5 specified versions of an npm package and return them side-by-side for size regression tracking.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
package | string | yes | |
versions | string | yes | Comma-sep version list (max 5 to avoid timeouts) |
Example call
Arguments
{
"package": "lodash",
"versions": "4.17.20,4.17.21"
}
curl
curl -X POST https://gateway.pipeworx.io/bundlephobia/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"history","arguments":{"package":"lodash","versions":"4.17.20,4.17.21"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('history', {
"package": "lodash",
"versions": "4.17.20,4.17.21"
});
More examples
{
"package": "typescript",
"versions": "4.9.0,5.0.0,5.1.0,5.2.0,5.3.0"
}
Response shape
Always returns: package, history
| Field | Type | Description |
|---|---|---|
package | string | Package name |
history | array | Size data for each version |
Full JSON Schema
{
"type": "object",
"description": "Bundle size history across multiple versions",
"properties": {
"package": {
"type": "string",
"description": "Package name"
},
"history": {
"type": "array",
"description": "Size data for each version",
"items": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version number"
},
"size": {
"type": "object",
"description": "Bundle size data (if successful)"
},
"error": {
"type": "string",
"description": "Error message if fetch failed"
}
},
"required": [
"version"
]
}
}
},
"required": [
"package",
"history"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"bundlephobia": {
"url": "https://gateway.pipeworx.io/bundlephobia/mcp"
}
}
}
See Getting Started for client-specific install steps.