K
Kifly
Developer Docs
Agent Integration

Connect to Claude

One-click install the Kifly MCP server into Claude Desktop or Claude.ai.

You'll be prompted for your Kifly agent key. Generate one at /dashboard/api-keys.

Kifly MCP Integration

Connect any MCP-compatible agent to the Kifly catalog.


Endpoint

https://kifly.ai/api/mcp

Remote server, StreamableHTTP transport. Your MCP host lists the tools and their parameters when it connects.


Authentication

No key needed. Send your agent's UCP profile and start. Without a key you can use search, store lookups, carts, the shipping address, the payment link, order status, cancelling a checkout and feedback.

A key adds more: no daily limit, the buyer's saved address and email pre-filled, their order history across sessions, and USDC payment without a human step. Sign in with OAuth 2.1 (your MCP client offers it), or have your operator confirm one emailed code (POST /api/agent/credentials).

You're buildingStart withAdd a key for
A shopping agent, for a person or on its ownNothing: send your profile (below)OAuth 2.1: the buyer's saved address, email and order history, and no daily limit
An agent that pays from its own walletNothing, to browse and build cartsAn agent key, requested with your operator's email, to pay in USDC without a human step
An integration against your own storeSeller API key (kfa_live_)Sees your own store only. Cannot be upgraded to network scope.

No key: send your profile

Send your agent's UCP profile URL in meta:

{ "meta": { "ucp-agent": { "profile": "https://<your-platform-domain>/agents/nova" } } }

The profile URL names your agent: use an https URL on your platform's domain, such as https://<your-platform-domain>/agents/nova. You do not need to publish a profile document there to shop. Publishing one with signing keys lets you sign your requests, which raises your limits. Placeholder and reserved domains (example.com, *.example, localhost, bare IPs) are not accepted as an identity (UCP_AGENT_PROFILE_RESERVED). The open tool list and limits are published at /.well-known/ucp.

Register first for buyer tools

register_buyer, request_buyer_code, verify_buyer, get_buyer_profile, save_buyer_address, list_orders and request_feature are not open to an agent that has only sent a profile. Sending meta.ucp-agent.profile does not unlock them, and they answer 401 UNAUTHORIZED without a credential. Register your agent first: run the OAuth 2.1 flow below (dynamic client registration, then the buyer consents once in a browser) or use a key from the dashboard. Then call them with that token.

Say which agent you are. If your profile names your platform (a bare /.well-known/ucp), every agent on that platform sends the same one. Name your agent with its own id and name. Browsing works without it; building a cart or checking out from a platform profile requires it (AGENT_ID_REQUIRED otherwise). A profile URL that already names the agent, such as https://<your-platform-domain>/agents/nova, needs nothing more:

{ "meta": {
  "ucp-agent": { "profile": "https://<your-platform-domain>/.well-known/ucp" },
  "ai.kifly.agent": { "id": "agt_7f3a9c21e4", "name": "Nova" }
} }

id is stable per agent and opaque: 8 to 64 of A-Z a-z 0-9 . _ : -. Kifly stores the id only as a keyed hash. The name is a display label, so never an email address or phone number. Do not declare Kifly's own profile or a store's *.kifly.ai profile as your agent's identity (UCP_AGENT_PROFILE_KIFLY).

When keyless access runs out, sign in. A keyless agent gets a daily allowance (published in /.well-known/ucp); a profile Kifly has not seen before starts on a smaller one for its first day (rate_limit.new_profile), which a first try never comes near. Past it, or if Kifly asks an agent to identify itself, calls get 401 SIGN_IN_REQUIRED with a WWW-Authenticate challenge naming our OAuth server. MCP clients answer it by offering to sign in; after that every call carries a token, the daily allowance no longer applies, and the person behind the agent is known.

This endpoint is stateless and answers every message as JSON. A GET (listening stream) or DELETE (end session) gets 405 Method Not Allowed: there is no stream to open and no session to end, so send everything as a POST.

Seller API key (kfa_live_)

Create one in the seller dashboard under Developer → API Keys. It authenticates as your store and only returns your catalog.

Authorization: Bearer kfa_live_xxxxxxxxxxxxxxxx

OAuth 2.1

Discovery at https://kifly.ai/.well-known/oauth-authorization-server, with dynamic client registration at https://kifly.ai/oauth/register. No Kifly seller account needed to register a client. PKCE S256 required. Hosts like claude.ai negotiate this automatically.

Network key (kfn_live_)

An agent credential for paying from the agent's own wallet and for the buyer tools. Your agent can request one itself with your email and a code we send; see Autonomous payments with x402. A developer account can also create one.

Authorization: Bearer kfn_live_xxxxxxxxxxxxxxxx

Connecting your host


Tools

AreaTools
Discoverysearch_products, get_seller, list_sellers, get_policies
Cartcreate_cart, add_to_cart, get_cart, update_cart_item, set_shipping_address, quick_buy
Checkoutcheckout, order_status
Buyerregister_buyer, request_buyer_code, verify_buyer, get_buyer_profile, save_buyer_address, list_orders
Supportget_help, get_platform_limits, submit_feedback, request_feature

checkout returns a payment link the buyer opens and confirms. No tool completes a purchase on its own.


Typical flow

  1. search_products
  2. create_cart, then add_to_cart
  3. set_shipping_address
  4. checkout and give the buyer the link
  5. order_status about 30 seconds after you send the link, and again later while it is not paid (by session_id, or by cart_id for a seller's own checkout)

Requests are rate-limited; over the limit you get 429 with Retry-After. See Platform Limits and the Error Reference.