v1.2.0
Released: April 5, 2026
Highlights
- Knowledge module extracted — moved to a standalone
@toolpack-sdk/knowledgepackage;toolpack-sdkintegrates via duck-typing - ESM-first dual build — ESM primary with CJS compatibility; 52% smaller package (186 KB → 38 KB) via minification and tree-shaking
- MCP client support — connect to external MCP tool servers via stdio or HTTP
- Full Windows CI — all test matrix combinations pass on Windows
Breaking changes
Knowledge module moved to @toolpack-sdk/knowledge
// Before (v1.1.0)
import { Knowledge, MemoryProvider } from 'toolpack-sdk/knowledge';
// After (v1.2.0)
import { Knowledge, MemoryProvider } from '@toolpack-sdk/knowledge';
Install the new package:
npm install @toolpack-sdk/knowledge
SDK integration is unchanged — Toolpack.init({ knowledge: kb }) still works via duck-typing.
toolpack-sdk
MCP client
const toolpack = await Toolpack.init({
provider: 'anthropic',
mcp: {
servers: [{ transport: 'stdio', command: 'npx', args: ['-y', '@my-org/mcp-server'] }]
},
});
Build improvements
- ESM (
dist/index.js) + CJS (dist/index.cjs) + TypeScript declarations - Minification, disabled source maps,
sideEffects: falsefor tree-shaking
Install
npm install toolpack-sdk@1.2.0
npm install @toolpack-sdk/knowledge@1.2.0