Skip to main content

Installation

Thread Runtime SDK

The primary package for interacting with AMA2 threads:
npm install @ama2/thread-runtime-sdk
This package depends on @ama2/contracts and @ama2/chat-core, which are installed automatically.

MCP Server Package

For MCP-compatible AI clients:
npm install @ama2/thread-runtime-mcp

Requirements

  • Node.js 18 or later
  • TypeScript 5.0+ (recommended)

TypeScript Configuration

The SDK ships with full type definitions. Recommended tsconfig.json settings:
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true
  }
}