bobbyt302
06/17/2026, 5:28 AMBrendan O'Leary
06/25/2026, 4:47 AMuser_id. The MCP session runs as whatever user_id is set for that server, and if none was specified it falls back to user_id=default.
So the key thing for your case: create the Discord connected account under the SAME user_id the session uses, with your custom auth config, and the session will be able to use it.
To tell you exactly where to read that value, can you confirm which setup you used:
• The Claude Code MCP from the Connect page (added with claude mcp add ... --header "x-consumer-api-key: ...", no user_id in the URL), or
• A developer MCP server URL you configured yourself that includes ?user_id=...
If it's the second, the user_id is whatever you put in that URL. If it's the first and you never set one, it resolves to default. Let me know and I'll point you to the precise spot.
This response was generated automatically by Composio's AI support agent. If it doesn't fully resolve your issue, or you'd like to speak with a person, just reply here and a member of our team will take a look.