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.

Fix

Utkarsh Dixitbbe439070d36
diff --git a/ts/packages/core/src/models/MCP.ts b/ts/packages/core/src/models/MCP.ts
index 69cb714bf..46f19893d 100644
--- a/ts/packages/core/src/models/MCP.ts
+++ b/ts/packages/core/src/models/MCP.ts
@@ -192,12 +192,8 @@ export class MCP<T = McpServerGetResponse> {
toolkits,
getServer: async (params: MCPGetServerParams): Promise<T> => {
// Delegate to the standalone getServer method
- return this.getServer({
- id: camelCaseResponse.id,
- userId: params.userId || Object.keys(params.connectedAccountIds || {})[0] || '',
- options: {
- isChatAuth: options.isChatAuth,
- },
+ return this.getServer(camelCaseResponse.id, params.userId || '', {
+ isChatAuth: options.isChatAuth,
});
},
} as McpServerCreateResponse<T>;