esxr_
07/23/2025, 5:07 AMhttps://backend.composio.dev/api/v3/mcp/servers I get the following response:
[
{
id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
name: 'server-923467',
auth_config_ids: [ 'ac_xxxxx-xx-xx-x' ],
managed_auth_via_composio: true,
allowed_tools: [],
mcp_url: 'https://mcp.composio.dev/composio/server/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?transport=sse',
toolkits: [ 'googledocs' ],
commands: {
cursor: 'npx @composio/mcp@latest setup "https://mcp.composio.dev/composio/server/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?transport=sse" --client cursor',
claude: 'npx @composio/mcp@latest setup "https://mcp.composio.dev/composio/server/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?transport=sse" --client claude',
windsurf: 'npx @composio/mcp@latest setup "https://mcp.composio.dev/composio/server/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?transport=sse" --client windsurf'
},
updated_at: '2025-07-23T05:02:04.007Z',
created_at: '2025-07-23T05:02:04.007Z'
}
]
But in the mcp_url property, I want something like this
https://mcp.composio.dev/composio/server/<some_id>/mcp?connected_account_id=<connect_account_id>
This ?connected_account_id=<connect_account_id> is not currently attached in the mcp_url when I fetch it using the API.
Could you please fix it? Without it my MCP can't run in a streamable_http manner in an authenticated mannerComposio Support Agent
07/23/2025, 5:15 AMconnected_account_id , user_id and include_helper_actions=true are meant to be appended to the Url post creation to specify the user or help the Client in Auth flow. You can get the MCP Url and append any one of these for each user/connected account.
Quick heads up: We have depreciated "**sse",** you have to remove the transport=sse query parameter and use /mcp instead.esxr_
07/23/2025, 5:30 AMtransport=sse param.
Could you tell me how can I get the connected_account_id after programmatically creating a connection?
This is my current code for create_user_connection.jsesxr_
07/23/2025, 5:32 AMasync function setupIntegration(userId, integrationId) {
const toolset = new OpenAIToolSet({ apiKey: apiKey });
const integration = await toolset.integrations.get({ integrationId: integrationId });
const expectedInputFields = await toolset.integrations.getRequiredParams({
integrationId: integrationId,
});
// initiate the connection
const connectedAccountInitiate = await toolset.connectedAccounts.initiate({
integrationId: integrationId,
entityId: userId,
redirectUri: "https://useoven.com" // TODO: change this to the redirect uri of the integration screen
});
console.log(connectedAccountInitiate.redirectUrl);
return connectedAccountInitiate.redirectUrl;
}Composio Support Agent
07/23/2025, 5:58 AM