Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fixes
Sushmithamallesh committed
Dec 22, 2025 at 05:34 UTC
eaca272097371e9cf4246e3a592ad9e7e0bdc573
9 files changed
+9
-9
fern/snippets/tool-router/typescript/mcp-claude.ts
+1
-1
@@ -7,7 +7,7 @@ import { createInterface } from "readline/promises";
7
const composio = new Composio();
8
9
// Unique identifier of the user
10
-const userId = "user-1234";
10
+const userId = "user_123";
11
12
// Create a tool router session for the user
13
const session = await composio.create(userId);
fern/snippets/tool-router/typescript/mcp-openai.ts
+1
-1
@@ -7,7 +7,7 @@ import { createInterface } from "readline/promises";
7
const composio = new Composio();
8
9
// Unique identifier of the user
10
-const userId = "user-1234";
10
+const userId = "user_123";
11
12
// Create a tool router session for the user
13
const session = await composio.create(userId);
fern/snippets/tool-router/typescript/mcp-vercel.ts
+1
-1
@@ -8,7 +8,7 @@ import { stepCountIs, streamText } from "ai";
8
const composio = new Composio();
9
10
// Unique identifier of the user
11
-const userId = "user-1234";
11
+const userId = "user_123";
12
13
// Create a tool router session for the user
14
const { mcp } = await composio.create(userId);
fern/snippets/tool-router/typescript/native-tools-openai.ts
+1
-1
@@ -8,7 +8,7 @@ import { createInterface } from "readline/promises";
8
const composio = new Composio({ provider: new OpenAIAgentsProvider() });
9
10
// Unique identifier of the user
11
-const userId = "user-1234";
11
+const userId = "user_123";
12
13
// Create a session and get native tools for the user
14
const session = await composio.create(userId);
fern/snippets/tool-router/typescript/native-tools-vercel.ts
+1
-1
@@ -8,7 +8,7 @@ import { stepCountIs, streamText } from "ai";
8
const composio = new Composio({ provider: new VercelProvider() });
9
10
// Unique identifier of the user
11
-const userId = "user-1234";
11
+const userId = "user_123";
12
13
// Create a session and get native tools for the user
14
const session = await composio.create(userId);
fern/snippets/tool-router/typescript/quickstart-mcp-openai.ts
+1
-1
@@ -7,7 +7,7 @@ import { createInterface } from "readline/promises";
7
const composio = new Composio();
8
9
// Unique identifier of the user
10
-const userId = "user-1234";
10
+const userId = "user_123";
11
12
// Create a tool router session for the user
13
const session = await composio.create(userId);
fern/snippets/tool-router/typescript/quickstart-mcp-vercel.ts
+1
-1
@@ -8,7 +8,7 @@ import { stepCountIs, streamText } from "ai";
8
const composio = new Composio();
9
10
// Unique identifier of the user
11
-const userId = "user-1234";
11
+const userId = "user_123";
12
13
// Create a tool router session for the user
14
const { mcp } = await composio.create(userId);
fern/snippets/tool-router/typescript/quickstart-native-openai.ts
+1
-1
@@ -8,7 +8,7 @@ import { createInterface } from "readline/promises";
8
const composio = new Composio({ provider: new OpenAIAgentsProvider() });
9
10
// Unique identifier of the user
11
-const userId = "user-123aer4";
11
+const userId = "user_123";
12
// Create a tool router session for the user
13
const session = await composio.create(userId);
14
const tools = await session.tools();
fern/snippets/tool-router/typescript/quickstart-native-vercel.ts
+1
-1
@@ -8,7 +8,7 @@ import { stepCountIs, streamText } from "ai";
8
const composio = new Composio({ provider: new VercelProvider() });
9
10
// Unique identifier of the user
11
-const userId = "user-1234";
11
+const userId = "user_123";
12
13
// Create a session and get native tools for the user
14
const session = await composio.create(userId);