Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
docs: fix Vercel AI SDK code block to include full setup
Show Composio initialization and session creation so mcp variable is properly defined. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmitha Mallesh committed
Mar 2, 2026 at 21:09 UTC
152171eb313a932240a60fe665af08e4c6b10ee5
1 file changed
+4
docs/content/docs/native-tools-vs-mcp.mdx
+4
@@ -115,8 +115,12 @@ options = ClaudeAgentOptions(
115
</Tab>
116
<Tab value="Vercel AI SDK (TypeScript)">
117
```typescript
118
+import { Composio } from "@composio/core";
119
import { createMCPClient } from "@ai-sdk/mcp";
120
121
+const composio = new Composio();
122
+const { mcp } = await composio.create("user_123");
123
+
124
const client = await createMCPClient({
125
transport: {
126
type: "http",