Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 22:00 UTC
Fix
Utkarsh Dixit committed
Jul 10, 2025 at 03:40 UTC
bbe439070d3620fd0cda5295393566e90837729d
1 file changed
+2
-6
ts/packages/core/src/models/MCP.ts
+2
-6
@@ -192,12 +192,8 @@ export class MCP<T = McpServerGetResponse> {
192
toolkits,
193
getServer: async (params: MCPGetServerParams): Promise<T> => {
194
// Delegate to the standalone getServer method
195
- return this.getServer({
196
- id: camelCaseResponse.id,
197
- userId: params.userId || Object.keys(params.connectedAccountIds || {})[0] || '',
198
- options: {
199
- isChatAuth: options.isChatAuth,
200
- },
195
+ return this.getServer(camelCaseResponse.id, params.userId || '', {
196
+ isChatAuth: options.isChatAuth,
197
});
198
},
199
} as McpServerCreateResponse<T>;