https://linen.dev logo
"No connected account found" error with MCP
# 🖥│support-forum
e
I am encountering an issue with MCP creation. I feel like the MCP flow creation in the API changed - do I have to create an instance? It used to work just with creating the MCP server and appending the connected account id to the server url Now with the same flow that worked fine, I get the "No connected account found" error. It seems I first have to create the MCP server for the auth config, then connect the account, then create the MCP server instance. That is the only flow how I got it to work so far. Any help would be greatly appreciated https://cdn.discordapp.com/attachments/1412320063851200543/1412320064077697134/image.png?ex=68b7dd0e&is=68b68b8e&hm=73e6bbf45d1f8a8f25275471eb8e7b015de03c4f0fa0c81f9ca69d03c5a8365e&
a
Hey! Can you confirm you're passing the `user_id`/`connected_account_id`/`helper_tools` as a query param? ([doc](https://docs.composio.dev/docs/mcp-developers#client-applications-connect-to-the-server)) Your URL should look something like this:
https://apollo-df3v1rs9q-composio.vercel.app/v3/mcp/<server-id>?user_id=abhishek
(note that
user_id
is passed as query param)
e
Hey, it seems to be working fine now with
https://apollo-rf6v9rs8q-composio.vercel.app/v3/mcp/<server-id>/mcp?connected_account_id=<id>
@User So it stopped working again. Now when I use the url as above I am gettinh the following errr:
Connected account entity id does not match the entity id. Please check the entity id and connected account id again.
It worked just fine earlier. Now I have to remove the connected account id parameter all together to make it work. Is that a bug or a permanent change?
What is the proper flow when I want to enable one user to have more MCP servers for eg. google sheets using their different google accounts?
a
this was a bug on our end which is fixed now.
In that case a new connection as to be created.
e
And what is the difference between using the connected_account_id and user_id as the query parameter? Which one should I use and when?
a
Both
connected_account_id
and
user_id
can be used interchangeably as query parameters. However, I'd recommend using
user_id
when you need to use tools across multiple toolkits in your server, as you can create connections with the same
user_id
across different toolkits and then use that
user_id
as the query parameter to access all of them.