Skip to main content

createKontextClient

Creates a KontextClient instance. See Client SDK for the full usage guide.

KontextClientConfig

Configuration passed to createKontextClient.

KontextClient

The client instance returned by createKontextClient.

ClientState

KontextTool

A tool discovered through the client SDK.
The server field is present in hybrid mode, indicating which integration the tool belongs to. In single-endpoint mode, all tools come from one server and this field is omitted.

ToolResult

Result from client.tools.execute().
content is the text representation. raw contains the full MCP CallToolResult response.

IntegrationInfo

Integration status from client.integrations.list().
When connected is false, connectUrl may provide a Kontext manage/connect URL so the user can finish required auth. This can be OAuth or API key (user_token) setup. See Tools for handling disconnected integrations.

KontextStorage

Token persistence interface. Implement this to store tokens outside of memory.
The default MemoryStorage resets on page reload. See Storage for custom implementations.

ConnectSessionResult

Returned by client.getConnectPageUrl().