https://linen.dev logo
Creating MCP Server via SDK is failing
# 🖥│support-forum
j
Hello, I am using the SDK to create an auth config, connect a user's account using Oauth and then finally create an MCP server. The last part is failing. See these log entries. https://cdn.discordapp.com/attachments/1405274215724224602/1405274215908769892/Screenshot_2025-08-13_at_19.39.53.png?ex=689e3b19&is=689ce999&hm=18189257cb455a810708f74ef9e2f9e38ecc1f732aa52adec70c63cdea279709&
a
Hey Jez, Based on the error message it looks it was a validation error, can you check if you're passing the right arguments? Can you set
COMPOSIO_LOG_LEVEL=debug
and share the full error msg?
j
Hello, thanks for your reply. I've tried to add that. What concerns me is if you create an MCP server in the Composio console you first give the server a name, then add the toolkit, then the allowedTools, then it creates an auth config, then you connect users. However, that is not what the guide says. https://docs.composio.dev/docs/mcp-developers https://cdn.discordapp.com/attachments/1405274215724224602/1405863894806958101/Screenshot_2025-08-15_at_11.21.02.png?ex=68a06048&is=689f0ec8&hm=78966ca58989aff5eb378d3354c4e194331db4d78a4b7d96111475e1ac40c6da&
a
The video demo shows creating it programmatically. Quick correction => authConfig is supposed to be created first and then an MCP server can be created for it. Also, what platform are you using to create the server? https://platform.composio.dev or https://mcp.composio.dev ? And can you share the code snippe that you're using to create the MCP server & the SDK version? this would help in debugging the issue faster. Thanks.
j
hello again, thanks for your help on this. I am using https://platform.composio.dev and @composio/core": "^0.1.40.