Skip to content

Create order from cart using create_order tool return cb is not a function #964

@navrattanyadavakqa

Description

@navrattanyadavakqa

We are using Essential mcp and "@modelcontextprotocol/sdk": "^1.17.5"

when we trying to create order from cart using create_order tool , it gave us cb is not a function error.
We are able to create order with same cart using api. But we got this error when we are using mcp server create_order tool.

we have tried following input to tool
1."input": {
"version": 15,
"orderNumber": "27c45def-2d00-400d-aec9-3c63afcc3526",
"id": "27c45def-2d00-400d-aec9-3c63afcc3526"
}

"input": {
"version": 15,
"id": "27c45def-2d00-400d-aec9-3c63afcc3526"
}

To Reproduce
Steps to reproduce the behavior:

  1. Create cart for a logged in user
  2. Add Line Item
  3. Add shipping and billing address
  4. add shipping method
  5. create order from cart. using create_order tool.

Expected behavior
it should create order . We are able to create order with same cart using api.

Logs
If applicable, add logs to help explain your problem.

Additional context
How we run our mcp server

npx -y @commercetools/mcp-essentials
--tools=all
-- isAdmin=true
--authType=client_credentials
--clientId=CLIENT_ID
--clientSecret=CLIENT_SECRET
--projectKey=PROJECT_KEY
--authUrl=AUTH_URL
--apiUrl=API_URL
--remote=true
--stateless=true
--port=8888

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions