latest tag. See the
package changelogs for release notes.
Requirements
Use Node.js 24.20.0 or later within 24.x, or Bun 1.4.4 or later within 1.x for your application. TypeScript requires 5.5.4 or later with strict mode; Zod requires^4.6.6. Both Classic and Mini user schemas are accepted.
See the support policy for the complete contract.
Install packages
For a stdio server or standalone Node HTTP listener:@toolgrain/http.
Add @toolgrain/jwt or @toolgrain/clerk when protecting HTTP
endpoints. Frameworks keep ownership of their listener and application lifecycle.
Configure TypeScript
Toolgrain exports compiled ESM and declarations. CommonJS and Node’snode10
resolution mode are unsupported. For the modular tutorials, save this configuration:
tsconfig.json
.js extensions for relative imports in TypeScript intended for Node. Compile
with tsc, then run the emitted entry point. Frameworks may own compilation and
use their own supported module resolution.
@toolgrain/mcp includes JavaScript/declaration maps and TypeScript sources for
debugging and editor navigation. Public exports still resolve to compiled dist
files.