Building on top of AI context infrastructure requires reverse-engineering internal protocols.
The LeanCTX SDK provides a typed TypeScript client for the full Context OS API. Call any tool, subscribe to events, mutate sessions, and query knowledge — all through a clean, documented interface. The same API is available as REST endpoints for any language.
No Public Interface
You want to build a dashboard, a CI integration, or a custom agent orchestrator. But the only interface is an internal MCP protocol designed for IDE consumption, not programmatic access.
Connect to the Context OS and subscribe to workspace events with just a few lines of TypeScript.
4 أدوات
TypeScript Client
Fully typed client library with async iterators for event streams, workspace/channel headers, and error handling.
Event Subscription
الاشتراك في الأحداث المُسَخَّرة مع إعادة الاتصال التلقائي وإعادة التعبئة عند التأخر ومستويات الاتساق وحمولات ContextEventV1 المصنفة بما في ذلك version وparentId وconsistencyLevel.
REST API
Every tool and endpoint available as REST. JSON request/response with typed errors and rate limiting.
Token Authentication
Team tokens with configurable scopes. SHA-256 hashed, config-driven issuance via lean-ctx team token create.
0 MCP أدوات
The LeanCTX SDK provides a typed TypeScript client for the full Context OS API. Call any tool, subscribe to events, mutate sessions, and query knowledge — all through a clean, documented interface. The same API is available as REST endpoints for any language.
كل مخرج يحمل إثباتاً
يُولّد LeanCTX أدلة إثبات لكل جلسة: أي الملفات قُرئت، وما الذي ضُغط، وأي الفحوصات نجحت، وكيف أُنفقت التوكنات. هذا يجعل عمل AI قابلاً للتدقيق والإعادة والثقة.
Explore SDK & API
The LeanCTX SDK provides a typed TypeScript client for the full Context OS API. Call any tool, subscribe to events, mutate sessions, and query knowledge — all through a clean, documented interface. The same API is available as REST endpoints for any language.