#Failed to create mcp server

1 messages · Page 1 of 1 (latest)

magic dragon
#

Hello,
I'm getting a 404 error when trying to create a new MCP server via the API.

 [2025-05-19T11:13:55.612Z] Failed to create Composio server {
  response: Response {
    status: 404,
    statusText: 'Not Found',
    headers: Headers {
      date: 'Mon, 19 May 2025 11:13:55 GMT',
      'content-type': 'text/plain; charset=UTF-8',
      'transfer-encoding': 'chunked',
      connection: 'keep-alive',
      nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
      'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=M8VBU9hfb5oOpcWjjz68QuU%2FxQVqa%2BF0AUQV%2FTQ0qr2FVJzCALHV8XNdd9CKLB3kmYBNrwJf2vFWHi%2FFJix8u16PAy4VYTTE%2FZkzJ9OHzSkdJG7gFrKzF99ELRjkprF9m1%2FHc5vp6Q%3D%3D"}],"group":"cf-nel","max_age":604800}',
      server: 'cloudflare',
      'cf-ray': '94232af14a495c44-FRA',
      'cf-cache-status': 'DYNAMIC',
      'cache-control': 'public, max-age=0, must-revalidate',
      'content-encoding': 'gzip',
      'strict-transport-security': 'max-age=63072000',
      vary: 'Origin, accept-encoding',
      'access-control-allow-credentials': 'true',
      'cf-placement': 'remote-IAD',
      'x-matched-path': '/api/v3/mcp/[id]',
      'x-powered-by': 'composio tech team',
      'x-request-id': '2aee6ab3-5424-4b7d-831a-dad6ce4f63c0',
      'x-vercel-cache': 'MISS',
      'x-vercel-id': 'iad1::iad1::2jnj9-1747653235492-15eacd70f3ba',
      'alt-svc': 'h3=":443"; ma=86400',
      'server-timing': 'cfL4;desc="?proto=TCP&rtt=66255&min_rtt=65005&rtt_var=26877&sent=5&recv=5&lost=0&retrans=0&sent_bytes=2842&recv_bytes=924&delivery_rate=56316&cwnd=226&unsent_bytes=0&cid=52e5ddaac4a77dfa&ts=308&x=0"'
    },
    body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
    bodyUsed: false,
    ok: false,
    redirected: false,
    type: 'basic',
    url: 'https://backend.composio.dev/api/v3/mcp/create'
  }
} 
viral rockBOT
#

Hey, can you specify the endpoint you are using?
Also, Please send reproducible snippet.

magic dragon
#

@fallow oak
I'm using the https://backend.composio.dev/api/v3/mcp/create endpoint.

curl -X POST https://backend.composio.dev/api/v3/mcp/create \
     -H "x-api-key: 5*************************4h" \
     -H "Content-Type: application/json" \
     -d '{
       "name": "Web created server",
       "apps": [
         "googlecalendar"
       ],
       "entity_ids": [
         "organization#u5ly"
       ],
       "connected_account_ids": [
         "******"
       ]
     }'
vestal stirrup
#

Hey, our Docs currently need updates. I'll send you an updated V3 curl request:
curl -X POST "https://backend.composio.dev/api/v3/mcp/servers"
-H "Content-Type: application/json"
-H "x-api-key: yoggllclca096m7ia4oaxq"
-d '{
"name": "My New MCP Server",
"auth_config_id": "72JYWY1T72L-"
}'

You can add "allowed_tools".

Changes:
The new required body accepts name, auth_config. with optional "allowed_tools"
New Terminology: auth_config-new, Integration_id-old. allowed_tools-new, actions-old

#

Lmk if this works!

shell trellis
magic dragon
#

Hi, Notion link you shared is restricted — I’m getting a “Request access” page.

magic dragon
#

I've tried creating a new MCP server using a new auth config ID.
The server was created successfully, but when I try to call the tool GMAIL_FETCH_EMAILS, I receive an auth error.

"content": [
      {
        "type": "text",
        "text": {
          "error": "Could not find a connection with app='gmail' and entity='default'",
          "successful": true,
          "data": {}
        }
      }
    ]
curl -X POST https://backend.composio.dev/api/v3/mcp/servers \
     -H "x-api-key: ******" \
     -H "Content-Type: application/json" \
     -d '{
  "name": "New gmail server with tools",
  "auth_config_id": "a5cbd102-2d04-47ab-901e-*********",
  "allowed_tools": [
    "GMAIL_FETCH_EMAILS",
    "GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID",
    "GMAIL_FETCH_MESSAGE_BY_THREAD_ID",
    "GMAIL_GET_ATTACHMENT",
    "GMAIL_GET_CONTACTS",
    "GMAIL_GET_PEOPLE",
    "GMAIL_GET_PROFILE",
    "GMAIL_LIST_LABELS"
  ]
}'
#

@fallow oak @coral pike , could you help me with this issue?

#

This issue occurs when I specify an entity other than the "default".
Am I allowed to set a custom entity when creating an MCP server?

viral rockBOT
#

The Complete Docs should be live soon, I'll share them on time!

magic dragon
#

Ok, thanks!
What about using different entities for MCP servers?

viral rockBOT
shell trellis
#

— URL: /api/v3/mcp/servers/<uuid>. Once server is live, you can Append the following queries.

Can you provide an example request to this endpoint? With user_id preferably. I could not find this specific endpoint in the updated docs.

coral pike
#

Hey folks, to use the MCP for a specific user/connectedAccountId you can pass query params like this:

User: https://mcp.composio.dev/composio/server/<mcp-server-uuid>?transport=sse&user_id=<entity/user_id>
Connected Account: https://mcp.composio.dev/composio/server/<mcp-server-uuid>?transport=sse&connected_account_id=<connectedAccId>

Also, you can pass include_composio_helper_actions=true as query param which appends tools that can check active connection or initiate new ones: https://mcp.composio.dev/composio/server/<mcp-server-uuid>?transport=sse&include_composio_helper_actions=true

Docs link: https://docs.composio.dev/mcp/introduction
API ref: https://docs.composio.dev/api-reference/api-reference/mcp, https://docs.composio.dev/api-reference/api-reference/v3/mcp