Riptide how-to Agents

Run your workspace from Claude

Connect Claude, or any MCP client, with a workspace API key. Ask why a line item isn't serving, resume its order, and find the change in the audit log.

Intermediate3:51 watchRiptide team

Recorded in a local demo workspace with fictional data, against a local agent gateway. A scripted MCP client sends fixed tool calls in place of Claude, so no model runs. The campaign order was paused off camera. Interface labels may differ with your branding or version.

Get ready

Before you start

  • Sign in with access to create API keys (iam.write), such as the Admin role. The video gives the key the Editor role, which includes campaign.write and supply.write.
  • Use Claude Code or another client that speaks MCP over streamable HTTP.
  • Have a line item that should serve. The video uses northwind-direct, whose campaign order was paused.
Instructions

Step-by-step guide

  1. Make an API key

    Open Settings, then API keys & webhooks, and choose New API key. Name it, select a role, and choose Create key. Copy the secret now. It is shown once.

    API key name Claude Code
    Shown under API keys. The audit log shows its prefix.
    Role Editor
    The client can do what this role can do.
    MCP endpoint /tenant
    On your platform's agent gateway host. See the MCP guide for the URL.
  2. Connect the client

    Claude Code reads its MCP servers from .mcp.json in your project. Set the url to your workspace's MCP endpoint, /tenant, on the agent gateway, and send the key in the X-Riptide-Api-Key header, from an environment variable such as RIPTIDE_API_KEY. riptide.session.whoami answers with the workspace and the key's role.

  3. Ask about delivery

    Ask why a line item isn't serving. The client finds it with riptide.campaign.list_line_items, then calls riptide.campaign.get_line_item_eligibility. The answer gives serving, each blocking condition and the id of the record to fix. In the video, the campaign order is paused.

  4. Make the change

    The client reads the order with riptide.campaign.get_campaign_order, then calls riptide.campaign.update_campaign_order with delivery_status ACTIVE. Every change made over MCP needs a reason and an idempotency key. Asked again, get_line_item_eligibility answers serving: true.

  5. Find it in the audit log

    Open Diagnostics, then Audit log. The client's update is listed with the API key, by its prefix, as the actor. Open View diff to see the reason it gave and the change from PAUSED to ACTIVE.

Check your work

Check the saved settings

  • riptide.session.whoami answers with your workspace and the role.
  • Diagnostics › Audit log lists the change with the API key as its actor and the reason the client gave.

The client can do what its role allows, and every change it makes is in the audit log with its reason.

If you get stuck

Troubleshooting

The client gets HTTP 401.

The secret is missing, mistyped, revoked or expired. Check the header, and the status under Settings › API keys & webhooks.

A tool answers that it isn't allowed.

Its role doesn't include the permission the tool needs. Make one with a role that does.

A change is refused with missing_field:reason.

Every change made over MCP needs a reason and an idempotency key. Add both to the tool call.

Read the recording

Video transcript

The narration in full. Download English captions.

0:00 Run your workspace from Claude, or from any agent that uses MCP.

0:06 This video uses a scripted client in place of Claude, so every run is the same.

0:11 Claude calls the same tools over the same connection.

0:16 Every name and domain in this video is made up.

0:22 Claude connects with an API key from your workspace.

0:27 Open Settings, then API keys & webhooks.

0:33 Choose New API key.

0:36 Name it Claude Code.

0:41 Select Editor.

0:43 Claude can then do what an Editor can do.

0:47 Choose Create key.

0:51 The secret is shown once.

0:54 This video blurs it.

0:58 Claude Code reads its MCP servers from .mcp.json in your project.

1:04 The url is your workspace's MCP endpoint, /tenant.

1:09 In this demo, the gateway runs on this computer.

1:12 The header sends the secret from the RIPTIDE_API_KEY environment variable.

1:18 The endpoint lists 26 main tools for this role.

1:22 Other tools can still be called by name.

1:27 whoami answers with the workspace and the role.

1:36 Now ask why Northwind Coffee's line item isn't serving.

1:41 The client finds the line item by name.

1:47 It keeps the line item's id.

1:51 Then it asks whether the line item can serve.

1:57 Serving is false.

2:00 The blocking reason is that the campaign order is paused.

2:06 The answer also gives the order's id.

2:14 The fix is to resume the order.

2:18 The client reads the order first.

2:23 Its delivery status is PAUSED.

2:30 It sets the delivery status to ACTIVE, with a reason.

2:35 Every change made over MCP needs a reason.

2:40 The order is active again.

2:46 Ask again whether the line item can serve.

2:55 Serving is true now.

3:02 Back in the console, open Diagnostics, then Audit log.

3:11 The newest entry is the client's update.

3:15 Its actor is the API key, named by its prefix.

3:20 Open it with View diff.

3:24 It keeps the reason the client gave.

3:29 The delivery status went from PAUSED to ACTIVE.

3:37 The role you choose decides what Claude can do.

3:43 Next, read the MCP guide, or find why a request isn't serving in the console.

Continue setup

Read the MCP guide

Endpoints, signed agent identities, approvals and the full tool list.

MCP tools To make these changes through the API, read the Admin API guide.