Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Knowledge Stack ships two official SDKs:

Python — ksapi

pip install ksapiGitHub · PyPI

TypeScript — @knowledge-stack/ksapi

npm install @knowledge-stack/ksapiGitHub · npm

When to use an SDK vs. the MCP server

Building an agent? Use the MCP server (ks-mcp) — it plugs into LangChain, LangGraph, CrewAI, Temporal, the OpenAI Agents SDK, Claude Desktop, and Cursor with no glue code. The SDKs are for admin / write operations and infrastructure tooling (ingestion pipelines, schedulers, tenant management, CI scripts).

Auto-generation

Both SDKs are generated from the Knowledge Stack OpenAPI specification via OpenAPI Generator. The Mintlify pages under /sdks/python and /sdks/typescript are hand-written; the generated reference docs are synced nightly into sdks/_generated-python/ and sdks/_generated-ts/.

Versioning

SDK versions follow the Knowledge Stack API version. At any time: Breaking API changes bump the major version in lockstep across both SDKs.