Developer docs

MCP setup

Connect an AI assistant

MCP (Model Context Protocol) lets an assistant such as Claude work with your business: look up orders, check stock, and with your permission change them. It gets only the tools your credential’s scopes allow.

Before you start

Create a credential in the enterprise portal under API & MCP (AI) and tick only the scopes you want the assistant to have. Start with read-only scopes, or with a sandbox credential, until you trust it. MCP must be switched on for your business; if it is not, the server answers MCP_NOT_ENABLED.

  1. 1Claude · Cursor · VS CodeMCP client
  2. 2POST /mcpBearer key.secret
  3. 3tools/listonly your scopes
  4. 4tools/call → RESTsame rules, same audit
How an assistant reaches your business.
Ready-made settings for Claude, Cursor and VS Code.
Ready-made settings for Claude, Cursor and VS Code.

The endpoint

One URL, Streamable HTTP, stateless: every request carries your credential and nothing is kept between requests. Only POST is used; GET returns 405.

MCP
https://www.naamaa.in/api/v1/ext/naamaa/mcp

Sign in with the same credential as the API, in either form:

headers
Authorization: Bearer KEY_ID.SECRET

# or
X-Api-Key: KEY_ID
X-Api-Secret: SECRET

Connect a client

Replace KEY_ID and SECRET with your credential. These clients accept custom headers.

claude mcp add --transport http naamaa https://www.naamaa.in/api/v1/ext/naamaa/mcp \
  --header "Authorization: Bearer KEY_ID.SECRET"

MCP Inspector

Run the command, choose the transport Streamable HTTP, paste the endpoint, add the header Authorization: Bearer KEY_ID.SECRET, and connect. List the tools to see what your credential gets.

Use the endpoint with Streamable HTTP and send the Authorization header. A plain request shows what happens on the wire:

Video: the first calls, a refused scope, then an AI assistant listing its tools.

The tools

One tool per route your credential’s scopes allow. A tool you cannot use is not listed at all.

ToolREST routeScopeDescription (English, as the assistant sees it)
get_businessGET /me—The business this credential belongs to, and the scopes it holds.
list_productsGET /productscatalog:readList products and services (status ALL, ACTIVE or INACTIVE).
get_productGET /products/{id}catalog:readOne product with its variants.
update_pricePATCH /products/{id}/pricecatalog:writeChanges the price customers pay (mrp, basePrice = offer price).
set_product_statusPATCH /products/{id}/statuscatalog:writeShows (ACTIVE) or hides (INACTIVE) the product on your storefront.
list_stockGET /inventoryinventory:readStock of every tracked product.
set_stockPUT /inventory/{id}inventory:writeSets the stock to exactly this number.
list_ordersGET /ordersorders:readList orders, filter by status and dates.
get_orderGET /orders/{id}orders:readOne order.
change_order_statusPOST /orders/{id}/statusorders:writeMoves the order to this status and notifies the customer.
cancel_orderPOST /orders/{id}/cancelorders:cancelCancels the order (destructive).
sales_summaryGET /reports/summaryreports:readOrders and revenue for a date range.
browse_storefrontGET /storefront/productsstorefront:readWhat a customer sees: live items at the price charged.
check_availabilityGET /storefront/products/{id}/availabilitystorefront:readSlots, stay dates or stock for a product.
list_slotsGET /storefront/products/{id}/slotsstorefront:readBookable slots of a service on a date.
check_deliveryGET /storefront/delivery-checkstorefront:readWhether the business delivers to a pincode or point.
send_customer_codePOST /customers/otp/sendbookings:createSends a one-time code to the customer (OTP-first businesses).
verify_customer_codePOST /customers/otp/verifybookings:createVerifies the code and returns a customer proof.
place_customer_orderPOST /checkoutbookings:createPlaces an order for this customer; they get a payment link.
send_payment_linkPOST /orders/{id}/payment-linkpayments:createCreates and sends the payment link for an order you placed.
get_payment_statusGET /orders/{id}/paymentpayments:createAwaiting, paid, failed or expired.

Tools are thin wrappers over the REST API, so they follow the same rules, limits and audit trail. Cancelling an order appears only when the platform allows orders:cancel for your business type and your credential holds it. Refunds, deletions and settlements are not available.

Safe use

Every tool that changes data says in its description what it will change, so the assistant should ask you before using it. Tool names and descriptions are English; the assistant answers you in your own language.

Coming: Sign in with Naamaa

Hosted assistants such as claude.ai and ChatGPT on the web cannot send custom headers, so they cannot use a key and secret. A “Sign in with Naamaa” connection, where you approve with your usual phone code, is planned as a later phase. Until then use one of the clients above.