SDK & API

Programmtischer Zugriff auf Context OS

TypeScript SDK und REST API für den Team Server. Workspace/Channel-Header, SSE-Subscribe, Tool-Execution — alles programmatisch zugänglich.

Das Problem

Kein programmatischer Zugriff

Ohne API und SDK ist es unmöglich, eigene Automatisierungen, CI/CD-Integrationen oder Custom-Dashboards zu bauen.

Connect to the Context OS and subscribe to workspace events with just a few lines of TypeScript.

typescript
typescript ()
- import { LeanCtx } from "@anthropic/lean-ctx-sdk";
-
- const ctx = new LeanCtx({
- baseUrl: "http://localhost:7700",
- workspace: "my-team",
- });
-
- for await (const ev of ctx.subscribe("feat/auth")) {
- console.log(ev.type, ev.data);
- }
SDK & API

4 Tools

01

TypeScript Client

Fully typed client library with async iterators for event streams, workspace/channel headers, and error handling.

02

Event Subscription

Abonnieren Sie versionierte Events mit automatischer Wiederverbindung, Backfill bei Verzögerung, Konsistenzebenen und typisierten ContextEventV1-Payloads inklusive version, parentId und consistencyLevel.

03

REST API

Every tool and endpoint available as REST. JSON request/response with typed errors and rate limiting.

04

Token Authentication

Team tokens with configurable scopes. SHA-256 hashed, config-driven issuance via lean-ctx team token create.

TS TypeScript SDK
REST HTTP API
58+ Available Tools
Tools

0 MCP Tools

TypeScript SDK und REST API für den Team Server. Workspace/Channel-Header, SSE-Subscribe, Tool-Execution — alles programmatisch zugänglich.

SDK & API

Verwandte Dokumentation

Verifikation

Jede Ausgabe trägt einen Beweis

LeanCTX generiert Proof-Artefakte für jede Session: welche Dateien gelesen wurden, was komprimiert wurde, welche Prüfungen bestanden wurden und wie Tokens ausgegeben wurden. Das macht KI-Arbeit auditierbar, reproduzierbar und vertrauenswürdig.

Explore SDK & API

TypeScript SDK und REST API für den Team Server. Workspace/Channel-Header, SSE-Subscribe, Tool-Execution — alles programmatisch zugänglich.