Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
mdx 36 lines 1.63 KB
Raw
1 ---
2 title: "TypeScript SDK 0.13.0 adds sessions and 0.13.1 adds deletion"
3 description: "TypeScript SDK 0.13.0 makes sessions first-class and MCP opt-in. Version 0.13.1 adds session deletion."
4 date: "2026-06-26"
5 ---
6
7 TypeScript SDK `@composio/core` `0.13.0` makes the sessions API the primary way to work with Tool Router. Version `0.13.1` completes the lifecycle with session deletion.
8
9 ### SDK versions
10
11 | SDK | Version |
12 | --- | --- |
13 | TypeScript `@composio/core` | `0.13.0` |
14 | TypeScript `@composio/core` | `0.13.1` |
15
16 ### Sessions are first-class
17
18 Use `composio.sessions.create()` as the canonical entry point. `composio.create()` remains an alias. The shared-connection ACL helper also graduates to `connectedAccounts.updateAcl()`, while `experimental.updateAcl()` remains as a compatibility alias.
19
20 MCP is now opt-in at the type level. Sessions return native tools by default. Create a session with `{ mcp: true }` before reading `session.mcp` in TypeScript.
21
22 ```typescript
23 import { Composio } from '@composio/core';
24
25 const composio = new Composio({ apiKey: 'your-api-key' });
26 const session = await composio.sessions.create('user_123', { mcp: true });
27
28 const mcp = session.mcp;
29 ```
30
31 ### Other session and trigger updates
32
33 - Session responses expose the resolved workbench configuration. Prefer `sandbox` for code-execution configuration; `workbench` remains an accepted alias.
34 - `triggers.parse()` parses incoming webhook requests and can verify their signatures.
35 - `triggers.setWebhookSubscription()` creates or updates a project webhook subscription.
36 - `composio.sessions.delete(sessionId)` and `session.delete()` remove a Tool Router session in `0.13.1`.