TS · 01

Installation

The package targets Node 18+ and ships as ESM with bundled type declarations. Transport and backend drivers (nats, kafkajs, better-sqlite3, pg, @modelcontextprotocol/sdk) are optional dependencies, lazily imported only by the adapter that needs them.

# Node 18+. Published as an ESM package.
$ npm i @cosmonapse/sdk

# Optional dependencies, lazily imported by the adapter that needs them:
$ npm i nats                        # NatsSynapse
$ npm i kafkajs                     # KafkaSynapse
$ npm i better-sqlite3              # SqliteRegistryStore + SqliteEngram
$ npm i pg                          # PostgresRegistryStore + PostgresEngram
$ npm i @modelcontextprotocol/sdk   # mcpNeuron

# From source:
$ cd cosmonapse-core/packages/ts-sdk && npm i && npm run build

Have a feature in mind?

The protocol, SDKs, and CLI are still pre-1.0. If something here is missing, ambiguous, or wrong - open an issue and propose a change. Every breaking change is debated in DECISIONS.md first.