Packages

Published on npm

Dispatch is published as three packages. The CLI and local MCP server both depend on the core package, so packages/core is published first whenever a release includes core changes.

CLI

@amarnath00/dispatch

Command Line Interface

The published CLI package. Defines dispatch telegram <chatId> <message>, parses arguments with Commander, and calls the shared core. Always prints JSON output so both humans and agents can read it.

install
npm install -g @amarnath00/dispatch
Core

@amarnath00/dispatch-core

Shared business logic

The shared implementation package used by the CLI, MCP servers, and downstream programmatic consumers. Contains Zod schemas, operation functions such as sendTelegramMessage, and type exports. No CLI or MCP SDK imports, no terminal output or prompts.

install
npm install @amarnath00/dispatch-core
Local MCP

@amarnath00/dispatch-mcp

Local MCP Server

The published local MCP stdio server. Registers a single telegram tool backed by @amarnath00/dispatch-core using the shared Telegram message input schema. Returns both content and structuredContent to MCP clients.

install
npm install -g @amarnath00/dispatch-mcp