SDK, CLI and MCP
One npm package, @dasterhq/daster, with the JavaScript SDK, the daster command and the bridge to DASTER's MCP server.
Last updated
DASTER publishes one npm package, @dasterhq/daster. Version 0.1.0 is MIT licensed. It contains two things:
- The SDK, imported with
import { … } from '@dasterhq/daster'. It is an ES module with TypeScript types, and it runs in Node.js and in the browser. Your app uses it to read and write its database, files and realtime channels and to send email and push notifications. - The
dastercommand. It connects your machine to one project, deploys a website to Hosting and sets up AI tools such as Claude Code and Cursor to use DASTER's MCP server.
The package needs Node.js 20.3 or newer.
How the pieces reach DASTER
Everything goes to https://app.daster.io unless you point it somewhere else.
| Part | Talks to | Signs in with |
|---|---|---|
| SDK | The data APIs: /backend/v1/projects/{projectId}/… and /communications/v1/projects/{projectId}/… | Project keys and your app users' sessions |
daster command | The MCP server at https://app.daster.io/mcp | A connection you approve in the Dashboard (OAuth). No key or password |
| AI tools (MCP) | The same MCP server | The same kind of approved connection |
The SDK is a client for the data APIs described in the API overview. The command and AI tools never use a project key: you approve each connection in the Dashboard, for one project and one environment, and they act as you within it.
Another DASTER address
- For the command, pass
--console URLor setDASTER_CONSOLE_URL. - For the SDK, pass
dataUrlto the product and service clients, orcommunicationsUrlto the communications client.
The address must use HTTPS. Plain HTTP is accepted only for an address on your own machine (127.0.0.1, localhost or [::1]).
Get started
- Install and sign inInstall @dasterhq/daster, connect the daster command to a project and choose the keys the SDK needs.
- The daster commandCommands for connections, MCP tools, website deploys and AI tool setup, with their flags and exit codes.
- Use the SDKRead and write your database, files and realtime channels, and send email and push, from JavaScript or TypeScript.
- Connect an AI tool (MCP)Add DASTER's MCP server to Claude Code, Cursor, VS Code or Codex, approve the connection and control what the tool may change.
Next steps
- BillingOne plan and one wallet per organization pay for every project's usage.
- Account & securityProtect your DASTER account and manage who can do what in your organization.
- Getting startedWhat DASTER is, how the organization, projects and services fit together, and where to start: hosting, databases, email and domains.