File tree Expand file tree Collapse file tree 12 files changed +416
-305
lines changed
Expand file tree Collapse file tree 12 files changed +416
-305
lines changed Original file line number Diff line number Diff line change 3636 "dependencies" : {
3737 "fern-api" : " ^0.51.39" ,
3838 "gray-matter" : " ^4.0.3" ,
39- "supergateway" : " ^2.8 .3"
39+ "supergateway" : " ^3.4 .3"
4040 },
4141 "devDependencies" : {
4242 "@openai/agents" : " ^0.2.1" ,
Original file line number Diff line number Diff line change 4242 "hono" : " >=4.10.3" ,
4343 "next" : " >=15.4.7" ,
4444 "ai" : " >=5.0.52" ,
45- "@mastra/core>ai" : " >=5.0.52"
45+ "@mastra/core>ai" : " >=5.0.52" ,
46+ "@eslint/plugin-kit@<0.3.4" : " >=0.3.4" ,
47+ "vite@>=6.0.0 <=6.3.5" : " >=6.3.6" ,
48+ "axios@>=1.0.0 <1.12.0" : " >=1.12.0" ,
49+ "vite@>=6.0.0 <=6.4.0" : " >=6.4.1" ,
50+ "tmp@<=0.2.3" : " >=0.2.4" ,
51+ "glob@>=10.2.0 <10.5.0" : " >=10.5.0" ,
52+ "body-parser@>=2.2.0 <2.2.1" : " >=2.2.1" ,
53+ "@modelcontextprotocol/sdk@<1.24.0" : " >=1.24.0" ,
54+ "next@>=16.0.0-canary.0 <16.0.7" : " >=16.0.7"
4655 }
4756 },
4857 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ catalog:
1616 ' @cloudflare/vitest-pool-workers ' : ^0.9.2
1717 ' @cloudflare/workers-types ' : ^4.20250917.0
1818 ' @composio/client ' : 0.1.0-alpha.40
19+ ' @modelcontextprotocol/sdk ' : ^1.24.0
1920 ai : 5.0.52
2021 openai : ^5.20.3
2122 tsup : ^8.5.0
Original file line number Diff line number Diff line change 1414 "license" : " ISC" ,
1515 "packageManager" : " pnpm@10.17.0" ,
1616 "dependencies" : {
17- "@anthropic-ai/sdk" : " ^0.52 .0" ,
17+ "@anthropic-ai/sdk" : " ^0.71 .0" ,
1818 "@composio/anthropic" : " workspace:*" ,
1919 "@composio/core" : " workspace:*" ,
20- "@mastra/mcp" : " ^0.12.0 " ,
20+ "@mastra/mcp" : " ^0.14.4 " ,
2121 "dotenv" : " ^16.4.1" ,
2222 "zod" : " catalog:" ,
23- "zod-to-json-schema" : " ^3.24.5 "
23+ "zod-to-json-schema" : " catalog: "
2424 },
2525 "devDependencies" : {
2626 "@types/bun" : " ^1.2.9" ,
Original file line number Diff line number Diff line change @@ -35,17 +35,16 @@ const allowedTools = ['GMAIL_FETCH_EMAILS'];
3535// Create an MCP server with Gmail toolkit
3636const mcpConfig = await composio . mcp . create (
3737 'gmail-anthropic-' + Date . now ( ) ,
38- [
39- {
38+ {
39+ toolkits : [ {
4040 authConfigId,
41- allowedTools,
42- } ,
43- ] ,
44- { isChatAuth : true }
41+ } ] ,
42+ allowedTools,
43+ }
4544) ;
4645
4746console . log ( `✅ MCP server created: ${ mcpConfig . id } ` ) ;
48- console . log ( `🔧 Available toolkits: ${ mcpConfig . toolkits . join ( ', ' ) } ` ) ;
47+ console . log ( `🔧 Available toolkits: ${ mcpConfig . allowedTools . join ( ', ' ) } ` ) ;
4948
5049// Get server instance with connected accounts (using convenience method)
5150const servers = await mcpConfig . getServer ( {
Original file line number Diff line number Diff line change 2424 "@composio/core" : " workspace:*" ,
2525 "@composio/google" : " workspace:*" ,
2626 "@google/genai" : " ^1.1.0" ,
27- "@modelcontextprotocol/sdk" : " ^1.18.0 " ,
27+ "@modelcontextprotocol/sdk" : " catalog: " ,
2828 "dotenv" : " ^16.4.1"
2929 },
3030 "devDependencies" : {
Original file line number Diff line number Diff line change 2222 "@composio/core" : " workspace:*" ,
2323 "@composio/vercel" : " workspace:^" ,
2424 "dotenv" : " ^16.4.1" ,
25- "zod-to-json-schema" : " ^3.24.5 "
25+ "zod-to-json-schema" : " catalog: "
2626 },
2727 "devDependencies" : {
2828 "@types/bun" : " ^1.2.9" ,
Original file line number Diff line number Diff line change 2121 "@ai-sdk/openai" : " ^2.0.35" ,
2222 "@composio/core" : " workspace:*" ,
2323 "@composio/vercel" : " workspace:*" ,
24- "@modelcontextprotocol/sdk" : " ^1.18.0 " ,
24+ "@modelcontextprotocol/sdk" : " catalog: " ,
2525 "ai" : " catalog:" ,
2626 "dotenv" : " ^16.4.1"
2727 },
Original file line number Diff line number Diff line change 2222 "@composio/core" : " workspace:*" ,
2323 "@composio/openai" : " workspace:*" ,
2424 "@composio/openai-agents" : " workspace:*" ,
25- "@modelcontextprotocol/sdk" : " ^1.18.0 " ,
25+ "@modelcontextprotocol/sdk" : " catalog: " ,
2626 "@openai/agents" : " ^0.1.4" ,
2727 "dotenv" : " ^16.4.1" ,
2828 "openai" : " ^5.16.0" ,
2929 "zod" : " catalog:" ,
30- "zod-to-json-schema" : " ^3.24.5 "
30+ "zod-to-json-schema" : " catalog: "
3131 },
3232 "devDependencies" : {
3333 "@types/bun" : " ^1.2.9" ,
You can’t perform that action at this time.
0 commit comments