Swop

io.github.TravisswopPublished by GitHub account Travisswopv0.2.1Updated Oct 28, 2026

Sell to people and AI agents: create products, a storefront, and USDC payment links from chat.

VerifiedStreamable HTTPWeb executableProductivity & WorkflowFinanceBusiness & Commerce

Overview

AI-generated overview

Swop lets an assistant create products, a storefront and USDC payment links, and browse or buy from other sellers' Swop stores.

What you can do
  • Look up Swop identities and resolve handles to profiles and public wallet addresses
  • Browse any seller's store and get a shareable product link that serves people a buy page and agents an x402 USDC challenge
  • Create, edit, list and feature your own products, and read your orders, balances and launched tokens
  • Build checkouts on your own site, read their status, and manage signed payment webhooks and embed origins
  • Edit the SmartSite storefront (name, bio, appearance, links) and publish public feed posts
  • Read your own profile and get plain-language help on what the connection can do
When to use it
Useful when you want to sell something from chat, put a storefront or checkout in front of buyers and AI agents, or check a Swop account's orders and balances. Also handy for resolving swop.id handles to wallet addresses.
Requirements
Remote Streamable HTTP endpoint; no local install. Public tools need no account; account and write tools use OAuth 2.1 with dynamic client registration and PKCE, with scopes such as profile.read, wallet.read, smartsite.write and commerce.write. The commerce endpoint is recommended for new setups.
Before you install
Write tools change live data: products, storefront links, public feed posts, checkouts, webhooks and allowed embed origins. Webhook registration returns a signing secret only once, so it must be stored immediately. Publishing a feed post is public and uploads images to Swop's backend. The commerce endpoint has no tools that send funds, but the full endpoint adds money-moving tools that require AI spending to be enabled with caps in the Swop app.

Installation

In SourceWeft

  1. Open Swop in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Travisswop%2Fswop/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "swop": {
      "type": "http",
      "url": "https://mcp.swopme.co/mcp/commerce"
    }
  }
}

README

Swop MCP

Sell to people and AI agents, paid in USDC, from any MCP client.

Connect: https://mcp.swopme.co/mcp/commerce (Streamable HTTP) Public tools need no account; account tools use OAuth 2.1 (dynamic client registration, PKCE). Registry: io.github.Travisswop/swop

  • Create products and get one link: people see a Buy page, agents get an x402 USDC challenge
  • Feature products on your Swop SmartSite
  • Checkout on your own site with signed webhooks (checkout.paid, payout.released)
  • Browse and buy from any swop.id's store
  • Orders, SmartSite editing, swop.id lookup

Sellers are agent-payable in USDC as soon as they add a product, with no verification step.

Setup for Claude, ChatGPT, Cursor and Grok: docs/add-swop-to-your-ai.md

claude mcp add --transport http swop https://mcp.swopme.co/mcp/commerce

Tools (/mcp/commerce)

Public, no account:

  • swop_search_identities, swop_lookup_identity: swop.id → profile + wallet addresses
  • swop_get_store: any seller's products with USDC prices and an x402 buy URL for each
  • swop_get_product_link: the one link that sells a product to people and agents

Sell (scope commerce.write):

  • swop_create_product, swop_update_product, swop_list_my_products, swop_feature_product

Checkout on your own site (scope commerce.write):

  • swop_create_checkout, swop_get_checkout
  • swop_register_webhook, swop_list_webhooks, swop_test_webhook, swop_remove_webhook (HMAC-signed checkout.paid / payout.released)
  • swop_register_embed_origin, swop_list_embed_origins, swop_remove_embed_origin

SmartSite storefront (scope smartsite.write):

  • swop_get_my_smartsite, swop_update_my_smartsite, swop_add_link, swop_remove_link
  • swop_create_feed_post: public post as the linked SmartSite, caption + up to 4 images. Two-step: preview returns a sealed previewId; confirm resends the identical content, and each preview publishes at most once. The backend hosts the images; this server uploads nothing.

Account (scopes profile.read, wallet.read):

  • swop_get_my_profile, swop_get_my_orders, swop_get_my_balances, swop_list_my_tokens (store-credit "Bucks")

The commerce endpoint has no tools that send funds. Its OAuth metadata (/.well-known/oauth-protected-resource/mcp/commerce) advertises only profile.read wallet.read smartsite.write commerce.write.

Full endpoint (/mcp)

https://mcp.swopme.co/mcp stays live for existing Swop users. It is the commerce set plus wallet and market tools (sends, x402 payments, swaps, perps and prediction-market data); the money-moving ones need the owner to turn on AI spending, with caps, in the Swop app. New setups should use /mcp/commerce. The same OAuth link works on both endpoints.

Run

npm installnpm run dev          # Streamable HTTP on :8788 (POST /mcp and /mcp/commerce), stateless JSON modenpm run dev:stdio    # stdio transport for local clientsnpm run build && npm startnpm run smoke        # endpoint smoke test (in-process); `npm run smoke -- https://mcp.swopme.co` for prod

Env: SWOP_API_BASE (default https://apps.apiswop.co), PREDICTIONS_API_BASE (default https://polymarket.apiswop.co), PUBLIC_BASE_URL (default https://mcp.swopme.co), PORT (default 8788).

Local test with Claude Code:

claude mcp add swop --transport http http://localhost:8788/mcp/commerce

Deploy

Stateless Vercel function (project swop-mcp), served at mcp.swopme.co (never swop.tech). Deployed only with vercel deploy --prod; a git push does not ship it. Registry entry: server.json, published with mcp-publisher publish.

Where this fits

The AI-assistant edge of the platform. Exposes Swop to anything that speaks MCP, reaching the same API every first-party client uses.

mermaid
graph LR    ai["Claude / ChatGPT / Cursor"] --> mcp["<b>swop-mcp</b>"]    mcp --> api["swop-app-backend<br/>apps.apiswop.co"]

The identity rule that matters here: crypto payment is never KYC-gated. An agent can pay a seller in USDC with no verification step. Verification gates the card scope only — never ask a crypto path for identity.

For the cross-repo map, see swop-app-backend/docs/ECOSYSTEM.md.

License

MIT — see LICENSE.

Ask Swop read connectors

The full /mcp endpoint now exposes swop_get_token_price, swop_get_sports, and swop_get_help, using the same verified adapters as Ask Swop in the app and Messages. All three require the linked account's profile.read scope and cannot transfer funds. swop_get_help is also available on /mcp/commerce; prices and sports remain on the full endpoint. Exact token contracts and network names are preserved. Provider failures and ambiguous assets return an explanation rather than an invented price, score or market.

Run npm run build && node scripts/test-assistant-connectors.mjs for protocol, authentication, input-validation and endpoint-isolation checks.

Revising an existing Ovi strategy

Use the full /mcp endpoint with OAuth agent.read and agent.write scopes. Refresh the connector's tool list after an update; the commerce-only endpoint and public read-only connectors do not expose agent controls.

  1. Read swop_get_my_agent for the exact strategy ID, current rules and limits.
  2. Resolve requested markets with swop_resolve_strategy_markets, for example {"request":"trade gold, ETH and any stock"}. Stock discovery uses a supported equity-underlying catalog filtered against current Hyperliquid listings. It does not treat all builder-DEX markets as stocks or establish that collateral is funded.
  3. Call swop_update_my_agent with action: "revise_strategy", strategyId, and a revision containing the desired assets, title, brief, entryCondition, exitCondition, selectionCriteria, executionPlan, or riskControls. Update contradictory old single-market wording together with the market list. Omitted fields stay unchanged; dollar limits, permissions, funding and runtime are not writable through this action.
  4. Show the complete returned diff and risk note. After the owner explicitly approves it, call again with only previewId and confirm: true.

The preview is single-use, expires after five minutes, and is bound to the owner and OAuth client. Concurrent rule or limit edits invalidate it. A running plan uses its revised rules on subsequent evaluations; an edit does not guarantee an order or bypass market, collateral or risk checks.

Source: README.md at commit 3f8083e

Tools

27

swop_search_identities

Search swop.id identities

Search Swop user identities (swop.ids) by handle or display name. Returns handle, display name, avatar, and public EVM/Solana wallet addresses. Use this to find a user or resolve a name to a wallet address.

Parameterslimitqueryrequired

swop_lookup_identity

Look up a swop.id

Resolve an exact swop.id handle (e.g. "travis.swop.id") to its profile: display name, avatar, and public EVM/Solana wallet addresses. Case-insensitive exact match; use swop_search_identities for fuzzy search.

Parametershandlerequired

swop_get_help

Swop help

Answer "what can I do with Swop?" (returns the plain-language list of what this connection can do for the user) and look up Swop's own how-to answers on payment previews, funded claim links, Goldman AI credits, companion pairing and saved context. Use it when the user asks what Swop can do or how a feature works; for their own data use the swop_get_my_* tools instead. Returns the closest curated answer, or says the topic is not covered.

Parametersqueryrequired

swop_get_my_profile

Get my Swop profile

The linked user's own Swop account: name, email, and SmartSites (handle, bio). Use swop_lookup_identity or swop_search_identities for anyone else's profile. If no Swop account is connected, the call fails asking the user to connect it.

Takes no parameters.

swop_get_my_balances

Get my wallet balances

Current wallet balance snapshot for the linked Swop account (total USD and per-asset breakdown). For tokens or merchant Bucks the account has launched, use swop_list_my_tokens instead.

Takes no parameters.

swop_get_my_orders

Get my orders

Recent marketplace orders for the linked Swop account, both sides: sales of your products and your purchases. Shows payment, escrow/settlement, and fulfillment status.

Takes no parameters.

swop_list_my_tokens

List my Launchpad tokens

Community tokens and merchant Bucks the linked account has launched on Base, with live balances (for the overall wallet total use swop_get_my_balances). Read-only. Merchant Bucks are STORE CREDIT (isStoreCredit: true, 2 decimals) — never add them into a portfolio or cash total. An empty list means nothing has been launched yet, not an error.

Takes no parameters.

swop_get_my_smartsite

See my SmartSite

Get the linked account's current SmartSite so you can see it BEFORE editing: name, bio, appearance (background/theme), the links already on it (icons, buttons, info bars, with their item ids for removal), product tiles, and a viewUrl to preview it. ALWAYS call this before adding or changing things so edits stay additive.

ParameterssmartsiteId

swop_update_my_smartsite

Edit my SmartSite (name, bio, background)

Edit the linked account's SmartSite: display name, bio, and appearance (background color, a gradient of hex stops, a background image URL, theme/font color, font family, or header layout). Pass only what you want to change. For adding links/buttons/info bars use swop_add_link; for products use swop_create_product / swop_feature_product.

ParametersbionamefontColorfontFamilythemeColorsmartsiteIdheaderFormatbackgroundImgbackgroundColorbackgroundGradient

swop_create_feed_post

Post to my Swop feed

Publish a PUBLIC post to the Swop feed as the linked account's SmartSite: a caption plus up to 4 images. Each image may be an https URL, a data:image/...;base64 URI, or bare base64 (PNG/JPEG/GIF/WebP, max 5 MB; keep inline images under ~3 MB total so the request fits). TWO-STEP like swop_send: call WITHOUT confirm to get a preview — Swop hosts the images and returns who it posts as, the exact caption, the hosted image URLs and a previewId. Show the user that exact caption and every image and get an explicit yes. Then call again with the SAME caption and smartsiteId, the `images` array exactly as the preview returned it, the previewId, and confirm: true. Any change after the preview is refused — preview again. Each preview publishes at most once: re-confirming it returns the same post (duplicate: true). Never confirm before the user has seen the preview.

ParametersimagescaptionconfirmpreviewIdsmartsiteId

swop_create_product

Create a product

Start selling something in one call: creates a product that people can buy on the linked account's Swop SmartSite and AI agents can buy in USDC over x402, with no store setup, payment processor, or verification needed. To change an existing product use swop_update_product instead. name, description and image are all REQUIRED by the backend. Confirm name and price with the user before creating. Then call swop_feature_product to show it on the SmartSite and swop_get_product_link to share it.

ParametersnamerequiredimagerequirednftTypekeywordspriceUsdrequiredvariantsmintLimitdescriptionrequiredextraImagesproductTypeshippingCostrequiresShipping+3 more

swop_create_checkout

Create a checkout for a cart

Take payment on the seller's own website: creates a checkout for a cart of the linked account's OWN products, so a buyer pays there instead of being sent to Swop. For a single shareable link use swop_get_product_link instead. Prices come from the seller's catalogue and must NOT be sent — a price in the request is rejected. Shipping is charged automatically for physical products, and for those the buyer's name, email and delivery address are REQUIRED (the call is refused otherwise, naming what is missing). Rails: USDC on Solana always; set offerCard when the seller is card-enabled and every item is a physical good — then the response has cardOffered: true and paymentRequest is null until the buyer picks a rail on the seller's page via the public URLs POST /api/v5/checkout-intents/{intentId}/card-payment-intents (Stripe client secret for a Payment Element) or POST .../select-crypto (publishes the Solana Pay request). Otherwise paymentRequest is returned at once (a solana: URL the buyer's wallet opens, also fine as a QR code). Settlement is automatic once the payment lands — nothing to confirm; poll swop_get_checkout for status. Show the buyer the products, quantities and total before creating.

ParametersitemsrequiredbuyerNameofferCardbuyerEmailbuyerPhonedescriptionshippingAddress

swop_get_checkout

Check a checkout

Read back a checkout created with swop_create_checkout: its status (active, pending_payment, paid, settled, expired, cancelled), the payment request if one is published, and the line items. Poll this after the buyer has been shown the payment to learn when it lands — paid means the buyer's money arrived; settled means the seller has been paid out. Only the linked account's own checkouts are visible.

ParametersintentIdrequired

swop_list_webhooks

List my webhooks

Show the webhook endpoints Swop notifies when the linked account gets paid, and the events available. Two events: checkout.paid (the buyer's money arrived and an order exists) and payout.released (Swop released the seller's money — for a card sale that can be days later). Use before adding or removing one.

Takes no parameters.

swop_register_webhook

Add a webhook

Get notified the moment the user gets paid. Register an https URL that Swop will POST a signed JSON event to when the linked account gets paid (checkout.paid) and paid out (payout.released). Returns a signing secret ONCE — tell the user to store it now; it cannot be retrieved again. Deliveries carry a Swop-Signature header: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the secret>; failed deliveries retry for about 15 hours. Confirm the exact URL with the user first.

Parametersurlrequiredlabelevents

swop_test_webhook

Send a test event to a webhook

POST a signed 'ping' event to one of the linked account's webhooks right now and report the HTTP status the endpoint returned. Use to confirm an integration before relying on it.

Parametersidrequired

swop_remove_webhook

Remove a webhook

Stop sending events to one of the linked account's webhook URLs. Pending deliveries to it are dropped. Confirm with the user first.

Parametersidrequired

swop_list_embed_origins

List sites allowed to frame my checkout

Show which websites may currently display the linked account's Swop checkout in a frame. Use before adding or removing one so the user can see what is already allowed.

Takes no parameters.

swop_register_embed_origin

Allow a site to frame my checkout

Allow ONE website to display the linked account's Swop checkout inside a frame. This is a security setting: only registered origins can ever frame the checkout, so a leaked API key still cannot put it on someone else's site. Give a bare origin — scheme and host only, https (http allowed for localhost), no wildcards, no path. Confirm the exact origin with the user first.

Parameterslabeloriginrequired

swop_remove_embed_origin

Stop a site framing my checkout

Remove a website from the list allowed to frame the linked account's checkout. Takes an id from swop_list_embed_origins. Afterwards that site can no longer display the checkout.

Parametersidrequired

swop_feature_product

Feature a product on my SmartSite

Show an existing product on the linked account's SmartSite as a tile visitors can buy from. Pass the templateId returned by swop_create_product (or the id from swop_list_my_products). Each call ADDS a new tile and never replaces existing ones, so check swop_get_my_smartsite first to avoid duplicates; remove a tile with swop_remove_link. The product must belong to the linked account.

ParameterstemplateIdrequiredsmartsiteIdcarouselTitle

swop_list_my_products

List my products

List the linked account's OWN products (each with its id, name, price, inventory, and status); to browse another seller's products use swop_get_store. Use the id with swop_update_product (to edit or unlist) or swop_feature_product (to show it on the SmartSite).

Takes no parameters.

swop_update_product

Update or unlist a product

Edit one of the linked account's products, or unlist it. Pass its productId (from swop_list_my_products) plus ONLY the fields to change — anything omitted keeps its current value. To unlist it, set status to 'archived'. Confirm price and name changes with the user first.

ParametersnameimagestatuskeywordspriceUsdvariantsmintLimitproductIdrequireddescriptionextraImagesshippingCostrequiresShipping+3 more

swop_get_store

Get a swop.id storefront

See what any swop.id sells and buy it: lists the products a swop.id sells on their SmartSite, with USDC prices and each product's x402 buyUrl (for the linked account's own catalogue use swop_list_my_products). An agent with an x402-capable wallet purchases by GETting the buyUrl: the first request returns HTTP 402 with payment instructions (exact USDC amount, network, pay-to address), and retrying with a signed X-PAYMENT header completes the purchase and returns a receipt. Always show the user the product, price, and seller and get their confirmation before paying.

Parametershandlerequired

Version history

3
  1. v0.2.1LatestOct 2, 2026
  2. v0.2.0Oct 1, 2026
  3. v0.1.1Sep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts