history
Pack: bundlephobia · Endpoint: https://gateway.pipeworx.io/bundlephobia/mcp
Compare size across recent versions (fetches each version sequentially — slow for large lists).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
package | string | yes | |
versions | string | yes | Comma-sep version list (max 5 to avoid timeouts) |
Example call
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":{}}}'
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.