Skip to content

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

chore: fix conflicts

jkomyno794582fb1927
diff --cc pnpm-lock.yaml
index 2177dacdc,3f5b0182d..cb42613fb
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@@ -35,13 -38,10 +38,13 @@@ catalogs
version: 3.2.4
wrangler:
specifier: ^4.37.0
- version: 4.50.0
+ version: 4.37.1
zod:
specifier: ^4.1.0
- version: 4.1.13
+ version: 4.1.12
+ zod-to-json-schema:
+ specifier: ^3.25.0
+ version: 3.25.0
overrides:
form-data: '>=4.0.4'
@@@ -50,8 -50,18 +53,18 @@@
next: '>=15.4.7'
ai: '>=5.0.102'
'@mastra/core>ai': '>=5.0.102'
+ '@eslint/plugin-kit@<0.3.4': '>=0.3.4'
+ vite@>=6.0.0 <=6.3.5: '>=6.3.6'
+ axios@>=1.0.0 <1.12.0: '>=1.12.0'
+ vite@>=6.0.0 <=6.4.0: '>=6.4.1'
+ tmp@<=0.2.3: '>=0.2.4'
+ glob@>=10.2.0 <10.5.0: '>=10.5.0'
+ body-parser@>=2.2.0 <2.2.1: '>=2.2.1'
+ '@modelcontextprotocol/sdk@<1.24.0': '>=1.24.0'
+ next@>=16.0.0-canary.0 <16.0.7: '>=16.0.7'
+ jws@=4.0.0: '>=4.0.1'
-pnpmfileChecksum: sha256-wkd49KqyCyptDyTPkkOMmWZ6StOr4KDrntnIeRjMcX4=
+pnpmfileChecksum: sha256-X6eCJXmBNe7VV40iD0uZlsr4IMg+ZL/Qodvx5bNk4wI=
importers:
@@@ -254,17 -264,36 +267,36 @@@
specifier: workspace:*
version: link:../../packages/core
'@mastra/mcp':
- specifier: ^0.12.0
+ specifier: ^0.14.4
dotenv:
specifier: ^16.4.1
- version: 16.6.1
+ version: 16.5.0
zod:
specifier: 'catalog:'
- version: 4.1.13
+ version: 4.1.12
zod-to-json-schema:
- specifier: ^3.24.5
- version: 3.25.0([email protected])
- specifier: npm:@finom/[email protected]
++ specifier: 'catalog:'
++ version: 3.25.0([email protected])
+ devDependencies:
+ '@types/bun':
+ specifier: ^1.2.9
+ version: 1.2.16
+ typescript:
+ specifier: 'catalog:'
+ version: 5.9.2
+
+ ts/examples/cjs:
+ dependencies:
+ '@composio/core':
+ specifier: workspace:*
+ version: link:../../packages/core
+ dotenv:
+ specifier: ^16.4.1
+ version: 16.6.1
+ zod:
+ specifier: 'catalog:'
+ version: 4.1.12
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@@ -400,10 -429,10 +432,10 @@@
version: link:../../packages/providers/vercel
dotenv:
specifier: ^16.4.1
- version: 16.6.1
+ version: 16.5.0
zod-to-json-schema:
- specifier: ^3.24.5
- version: 3.25.0([email protected])
- specifier: npm:@finom/[email protected]
++ specifier: 'catalog:'
++ version: 3.25.0([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@@ -565,22 -594,22 +597,22 @@@
version: link:../../packages/providers/openai-agents
'@modelcontextprotocol/sdk':
specifier: 'catalog:'
- version: 1.23.0(@cfworker/[email protected])([email protected])
+ version: 1.24.1(@cfworker/[email protected])([email protected])
'@openai/agents':
specifier: ^0.1.4
dotenv:
specifier: ^16.4.1
- version: 16.6.1
+ version: 16.5.0
openai:
specifier: ^5.16.0
zod:
specifier: 'catalog:'
- version: 4.1.13
+ version: 4.1.12
zod-to-json-schema:
- specifier: ^3.24.5
- version: 3.25.0([email protected])
- specifier: npm:@finom/[email protected]
++ specifier: 'catalog:'
++ version: 3.25.0([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@@ -689,16 -718,16 +721,16 @@@
version: link:../../packages/core
dotenv:
specifier: ^16.4.1
- version: 16.6.1
+ version: 16.5.0
openai:
specifier: ^5.19.1
zod:
specifier: 'catalog:'
- version: 4.1.13
+ version: 4.1.12
zod-to-json-schema:
- specifier: ^3.24.5
- version: 3.25.0([email protected])
- specifier: npm:@finom/[email protected]
++ specifier: 'catalog:'
++ version: 3.25.0([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@@ -736,16 -765,16 +768,16 @@@
version: link:../../packages/providers/vercel
'@modelcontextprotocol/sdk':
specifier: 'catalog:'
- version: 1.23.0(@cfworker/[email protected])([email protected])
+ version: 1.24.1(@cfworker/[email protected])([email protected])
ai:
specifier: '>=5.0.102'
- version: 5.0.102([email protected])
+ version: 5.0.108([email protected])
dotenv:
specifier: ^16.5.0
- version: 16.6.1
+ version: 16.5.0
zod-to-json-schema:
- specifier: ^3.24.6
- version: 3.25.0([email protected])
- specifier: npm:@finom/[email protected]
++ specifier: 'catalog:'
++ version: 3.25.0([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@@ -894,8 -923,8 +926,8 @@@
specifier: 'catalog:'
version: 13.0.0
zod-to-json-schema:
- specifier: npm:@finom/[email protected]
+ specifier: 'catalog:'
- version: 3.25.0([email protected])
++ version: 3.25.0([email protected])
devDependencies:
'@type-challenges/utils':
specifier: ^0.1.1
@@@ -2164,7 -2068,7 +2071,6 @@@ packages
resolution: {integrity: sha512-fL656yBPiWebtfGItvtXLWrFNGlF1NcDFS0WdMQXMs9LluVg0CfT5E2oXYp0pidl0vVG53XkW55ysijNkU5/hA==}
-- deprecated: 'Use https://www.npmjs.com/package/zod-v3-to-json-schema instead. See issue comment for details: https://github.com/StefanTerdell/zod-to-json-schema/issues/178#issuecomment-3533122539'
peerDependencies:
zod: ^4.0.14
@@@ -5762,9 -5867,10 +5869,9 @@@
resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
engines: {node: '>= 0.6'}
- resolution: {integrity: sha512-vICcxKusY8qW7QFOzTvnRL1ejz2ClTqDKtm1AcUjm2mPv/lVAdgpGNsftsPRIDJOXOjRQO68i1dM8Lp8GZnqoA==}
+ resolution: {integrity: sha512-Ka0/iNBblPFcIubTA1Jjh6gvwqfjrGq1Y2MTI5lbjeLIAfmC+p5bQmojpRZqgHHVu5cG4+qdIiwXiBSm/8lZ3w==}
engines: {node: '>=20.9.0'}
- deprecated: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/CVE-2025-66478 for more details.
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.1.0
@@@ -8954,11 -9187,12 +9188,12 @@@ snapshots
eventsource: 3.0.7
eventsource-parser: 3.0.6
express: 5.1.0
- express-rate-limit: 7.5.1([email protected])
- pkce-challenge: 5.0.1
- raw-body: 3.0.2
+ express-rate-limit: 7.5.0([email protected])
+ jose: 6.1.3
+ pkce-challenge: 5.0.0
+ raw-body: 3.0.0
zod: 3.25.76
- zod-to-json-schema: '@finom/[email protected]([email protected])'
+ zod-to-json-schema: 3.25.0([email protected])
optionalDependencies:
'@cfworker/json-schema': 4.1.1
transitivePeerDependencies:
@@@ -8974,11 -9208,12 +9209,12 @@@
eventsource: 3.0.7
eventsource-parser: 3.0.6
express: 5.1.0
- express-rate-limit: 7.5.1([email protected])
- pkce-challenge: 5.0.1
- raw-body: 3.0.2
- zod: 4.1.13
- zod-to-json-schema: 3.25.0([email protected])
+ express-rate-limit: 7.5.0([email protected])
+ jose: 6.1.3
+ pkce-challenge: 5.0.0
+ raw-body: 3.0.0
+ zod: 4.1.12
- zod-to-json-schema: '@finom/[email protected]([email protected])'
++ zod-to-json-schema: 3.25.0([email protected])
optionalDependencies:
'@cfworker/json-schema': 4.1.1
transitivePeerDependencies:
@@@ -14044,10 -14536,12 +14537,10 @@@
dependencies:
zod: 3.25.76
- optional: true
dependencies:
- zod: 4.1.13
+ zod: 4.1.12
- optional: true
diff --cc ts/examples/tool-router/src/openai-agents.ts
index cc51fb400,1d1ec13f0..e2ccee3fe
--- a/ts/examples/tool-router/src/openai-agents.ts
+++ b/ts/examples/tool-router/src/openai-agents.ts
@@@ -1,22 -1,35 +1,27 @@@
-import { Agent, run, hostedMcpTool } from '@openai/agents';
-import { Composio } from '@composio/core';
+
-const composio = new Composio();
-
-const session = await composio.experimental.create('user_123', { toolkits: ['gmail'] });
-
-console.log(`Tool Router Session Created: ${session.sessionId}`);
-console.log(`Connecting to MCP server: ${session.mcp.url}`);
-
-const mcpTool = hostedMcpTool({
- serverLabel: 'ComposioApps',
- serverUrl: session.mcp.url,
- headers: session.mcp.headers
-});
+import { Composio } from "@composio/core";
+import { Agent, run, hostedMcpTool } from "@openai/agents";
+import { createInterface } from "node:readline/promises";
+const { mcp } = await new Composio().toolRouter.create("default");
const agent = new Agent({
- name: 'Gmail Assistant',
- instructions: 'You are a helpful gmail assistant.',
- tools: [mcpTool],
-});
-
-const result = await run(agent, 'Summarize my last email from gmail', {
- stream: true,
+ name: "Personal Assistant",
+ model: "gpt-5.1",
+ instructions: "You are a helpful personal assistant. Use Composio tools to execute tasks.",
- tools: [hostedMcpTool({ serverLabel: "composio", serverUrl: mcp.url, headers: { "x-api-key": process.env.COMPOSIO_API_KEY! } })],
++ tools: [
++ hostedMcpTool({ serverLabel: "composio", serverUrl: mcp.url, headers: {
++ 'x-api-key': process.env.COMPOSIO_API_KEY!,
++ } }),
++ ],
});
+const rl = createInterface({ input: process.stdin, output: process.stdout });
-const stream = result.toStream();
+for (let input: any = await rl.question("You: "); input !== "exit"; ) {
+ const result = await run(agent, input);
+ console.log(`Agent: ${result.finalOutput}\n`);
+ input = [...result.history, { role: "user" as const, content: await rl.question("You: ") }];
+}
-for await (const event of stream) {
- if (event.type === 'raw_model_stream_event' && event.data.delta) {
- process.stdout.write(event.data.delta);
- }
-}
+rl.close();