API Reference
Complete API documentation for all EmbarkAI SDK packages.
The EmbarkAI SDK is split into three packages, each serving a distinct purpose. All packages are currently at version 0.1.0.
Packages Overview
| Package | Purpose | Environment |
|---|---|---|
@embarkai/core | Auth, bundler, contract encoding, vault backup, MPC wallet management | Node.js / Browser |
@embarkai/ui-kit | React components, hooks, and providers for wallet UI | Browser (React 18+) |
@embarkai/mcp | Model Context Protocol server for AI-agent wallet access | Node.js |
Installation
// Core SDK — authentication, transactions, and wallet management
npm install @embarkai/core
// UI Kit — React components and hooks
npm install @embarkai/ui-kit
// MCP Server — AI-agent integration
npm install @embarkai/mcpPackage Details
@embarkai/core
The foundation layer. Provides authentication flows (email, Telegram, userId), ERC-4337 bundler integration, ERC-20/721/1155 contract encoding helpers, encrypted keyshare vault backup, and the ServerWalletManager for server-side wallet operations.
@embarkai/ui-kit
A React-based UI layer built on top of @embarkai/core. Ships a Provider component, wallet connection buttons, transaction hooks (useSendTransaction, useUserOpStatus), asset hooks, theme/language toggles, and full i18n support.
@embarkai/mcp
An MCP-compatible server that exposes wallet operations as AI-agent tools. Includes seven built-in tools for balance queries, token transfers, contract reads, chain switching, and transaction status checks.
Version History
The current release is v0.1.0. See the Changelog for full release notes.
Quick Links
- Getting Started — installation and first wallet
- Core SDK Reference — all core exports
- UI Kit Reference — all UI exports
- MCP Server Reference — MCP tools and config
- FAQ — common questions and answers