> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ignyt.si/llms.txt
> Use this file to discover all available pages before exploring further.

# Agents and MCP

> Let an AI agent find products and build a shopper's cart, while the shopper approves every purchase in your app.

Agents & MCP
An agent can search, build a cart and request a quote for one signed-in shopper. It never holds your server key, and it cannot approve its own purchase.

> [!WARNING]
>
> The commerce MCP server is separate from the documentation MCP on this site. Reading these docs grants no commerce authority. Commerce access needs an approved partner integration, configured identity bindings and qualification in the selected environment.

## Who does what

1Your partner appSigns the shopper in, issues a short-lived agent grant and shows the exact quote for approval.2The agentUses MCP tools or the agent API to discover products, build the cart and start the approved checkout.3IgnytChecks the grant on every request, freezes totals and runs the same checkout, payment and recovery rules as the Platform.

## Choose how the agent connects

> [card] [MCP server](https://docs.ignyt.si/mcp-tools.md)
>
> Seventeen typed tools over Streamable HTTP with OAuth. Use this for assistants that speak MCP.

> [card] [Agent REST API](https://docs.ignyt.si/api-reference/agent/identity/get.md)
>
> The same delegated operations under `/v1/agent/`. Use this when you run your own agent runtime.

Both paths use the same shopper delegation. Your partner server issues the grant and records approvals with its server key. The agent only ever sees a short-lived delegated credential.

## Get started

**1. Agree the integration with Ignyt**

Arrange the `agent_commerce` feature, allowed scopes, OAuth issuer and audience, and the identity bindings for your environment. Sandbox comes first; Live needs separate approval.

**2. Issue a shopper grant from your server**

After the shopper signs in to your app, call `POST /v1/agent-grants` with your server key. Grants are scoped, short-lived and revocable.

**3. Let the agent shop**

The agent reads its capabilities, searches products, builds a cart and requests a quote. Each change to the cart invalidates earlier quotes.

**4. Approve the exact quote in your app**

Show the shopper the frozen total and currency, then record their approval with `POST /v1/carts/{cart_id}/agent-approvals`. The agent cannot approve for itself.

**5. Start and follow checkout**

The agent submits checkout with the approval ID. Payment and any 3DS step happen in your app or the payment provider's page. Track merchant orders and shipments afterwards.

## Safety rules

* Never put server keys, delegated credentials or card data in prompts, tool arguments or logs.
* Money is always integer minor units with an explicit currency, for example `12500` and `AED`.
* A timeout or lost response is not a failure. Retry with the same approval ID, then read checkout status.
* Every request re-checks the grant. Expiry or revocation takes effect immediately, including for retries.

## Related guides

> [card] [Agent checkout and MCP](https://docs.ignyt.si/commerce-agents.md)
>
> Authority, consent, recovery and the optional Sandbox guest profile.

> [card] [UCP and ACP preview](https://docs.ignyt.si/commerce-protocols.md)
>
> The narrower partner-bound cart handoff.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.