# Agents Access and the Future of Machine Identity

Nick Nisi · Lizzie Siegle

AI Engineer World's Fair 2025

[Talk page](https://ai.engineer/talks/px2e2OOS2Sk-agents-access-future-machine-identity) · [Video](https://www.youtube.com/watch?v=px2e2OOS2Sk)

## Agents, Access, and the Future of Machine Identity

A shirt-ordering MCP server shows how OAuth, persistent storage, and mutable authorization state let an agent act for a user while keeping the server in control.

Basic familiarity with APIs and tool-calling assistants is helpful; OAuth, JWTs, and the storage roles are explained as they appear.

### What should an agent be allowed to do?

[0:32](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=32s)

Lizzie Siegle built an agent to vote for her in the NBA finals. Eventually, it got blocked. Booking scarce tennis courts in San Francisco offers another attractive use for automation: let an agent handle the tedious work of getting something you want. Both examples lead to the same question: **how do you control what an agent is allowed to do?**

![GitHub agenda titled “Agents, Access & The Future of Machine Identity,” with sections on the opening problem, WorkOS, and infrastructure.](https://ai.engineer/api/talk-essay-media/2d37c2d6c05bcfa6431c4c340efac9618dc981be13c82ba684457331e57cefd4)

The opening agenda asks how to control what agents are allowed to do.

For Nick Nisi, the appeal is managing GitHub: an MCP server can help an assistant read reviews, inspect diffs, and work with repositories. But his setup requires editing a JSON file and supplying a personal access token, or PAT. That is substantial friction for someone who simply wants a tool to act on their behalf. His experience describes the setup used at the time; [GitHub’s current official MCP server](https://github.com/github/github-mcp-server) also documents remote OAuth, with support depending on the host.

The starting point is familiar delegated authorization. WorkOS supplies authorization and user management for applications; agents need those foundations too, before permissions become more granular. **OAuth lets a user authorize an agent to act on their behalf without turning credential setup into the user’s job.** The agent becomes another participant in the application’s access model.

### Give the agent compute, memory, and identity

[2:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=146s)

An agent also needs somewhere to run and somewhere to remember things. Cloudflare Workers provides compute at the edge. Alongside it are hosted AI inference, the Vectorize vector database, a SQL database, and **Durable Objects**, which supply persistent memory in Cloudflare’s agents framework.

Workers **bindings** connect application code—including agents and MCP servers—to Cloudflare services. The wider platform also includes video streaming and image optimization, and applications can still call other companies’ products. Siegle points to the newly available Durable Objects free tier and to revenue-generating startups that pay Cloudflare nothing. That free tier covers SQLite-backed Durable Objects within usage limits, rather than unlimited hosting.

These pieces serve different needs: Workers executes the code, Durable Objects retains state, and the framework’s OAuth support establishes whom the worker or agent represents. Persistent memory and delegated identity can then participate in the same request.

![GitHub agenda showing Infrastructure Foundation notes, including persistent stateful infrastructure, Durable Objects, AI bindings, and deployment steps.](https://ai.engineer/api/talk-essay-media/20317ce91cce0047d0cd313d4aa2d1d779ee335aa88fa1ef2e5db51757ae4ec5)

Infrastructure notes describe persistent agents, Durable Objects, and bindings.

### Deploy the shop and connect Claude

[4:20](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=260s)

The [companion agenda](https://github.com/workos/mcp-shop-cloudflare/blob/main/agenda.md) is a Markdown file in the repository. The runnable [MCP Shop on Cloudflare example](https://github.com/workos/mcp-shop-cloudflare) combines Cloudflare infrastructure with WorkOS authentication. Nisi deploys it with the project’s deployment script, which invokes Wrangler:

```bash
npm run deploy
```

The deployed worker appears in Cloudflare’s compute dashboard. Local development is also supported, although the live explanation does not settle on a precise local command.

The connection sequence replaces manual token handling with a sign-in flow:

1. Copy the Workers URL returned by the deployment command.
2. Open **Claude** and choose **Add Integration**.
3. Name the integration—the demonstration uses `mcp.shop` and `mcp-shop`—and append `/mcp` to the Workers URL.
4. Select **Connect**, then sign in with GitHub.

After sign-in, Claude refreshes with the integration connected. The server now has a user on whose behalf the agent can act. These are the interface labels and endpoint used in the recording.

### Turn a shirt request into a stored order

[6:07](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=367s)

Nisi asks for a shirt in ordinary language. Claude recognizes the shop’s available tools and proposes listing inventory; Nisi permits the tool to run. The result is an MCP shirt offered for free in the demonstration, with three required inputs: size, company name, and mailing address.

He supplies size `XL` and a mailing address in Bellevue, Nebraska. Claude notices that the company is missing and asks for it. Nisi replies `WorkOS duh`, introducing a small but revealing ambiguity: is the final word part of the company name, or conversational emphasis?

The order completes and returns an order number. Nisi then asks for the order information to check how the company was recorded. Siegle calls this “Human in the loop”; Nisi reports that Claude interpreted the company correctly. The follow-up is useful because completing a tool call and capturing the intended field values are separate things.

Next, he opens Cloudflare’s dashboard, navigates to storage KV, and selects `orders`. The saved order data is visible there. **The conversation has produced application state**, not just a response describing an order. Workers KV provides the key-value storage for that record; the demonstration establishes persistence, not shipment fulfillment.

### Ask what the authenticated agent knows

[8:46](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=526s)

Nisi next asks what the assistant knows about him. A user-information tool returns mostly information from his **JSON Web Token**, or JWT. The response includes his name and email address, plus a custom favorite-song value: `Careless Whisper`. It also reports admin access from his roles and permissions. Authentication therefore supplies more than a successful login: the application can expose identity attributes and permission information to its tools.

### Change stored state, change the authorization result

[9:32](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=572s)

This MCP server also uses a Durable Object, allowing it to store data directly with the running object. Siegle describes objects provisioned per user and proximity as a reason for fast storage and retrieval. Placement is more specific than that shorthand suggests: current documentation describes placement near the initial request, not continuous relocation to follow a user. The demo does not measure latency.

Nisi asks the agent to change the demo mode to `banned`. A server tool updates that mode in the context associated with the object. He then requests another shirt and selects **always allow** for the tool call in Claude. The request is still rejected. **Permission to invoke a tool in the client does not override the server’s authorization decision.**

The server can combine the authenticated identity with mutable state stored in the Durable Object. Nisi describes that state as unique to each user; the companion agenda describes an object per session, so the demonstrated behavior should not be read as a guarantee of account-wide state across sessions.

| Layer | What it contributes |
| --- | --- |
| JWT information | Identity, roles, and permissions |
| Durable Object state | Mutable demo mode, including `banned` |
| Client tool approval | Permission for Claude to attempt the call |

Together, these explain why an authenticated user can approve an attempted call while the server still refuses the requested operation.

Nisi then asks nicely. The demo has a **Pretty Please** tool available, and after it runs he reports that another shirt has been ordered. This is an intentionally playful state-changing capability: the server exposes a tool that can change the outcome. Polite wording is not itself an OAuth permission or a general way to bypass authorization.

### Start with tools, then protect them

[11:31](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=691s)

Cloudflare’s click-to-deploy route provides a short path to a custom MCP server: generate a GitHub repository, clone it, and edit the supplied starter tools. The starter Siegle describes is **authless**, which is why she explicitly recommends adding authorization. An authenticated deployment remains a quick setup; its extra work establishes who can use the capabilities being exposed.

### Make delegated actions accountable

[12:09](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=729s)

Nisi characterizes the foundation as adding an OAuth flow to MCP, which is effectively an API. The familiar controls used for human-facing applications are a starting point for tools acting on a person’s behalf. From there, he sees authorization becoming more specific:

- **Changes:** permission for individual line changes.
- **Tools:** permission for particular tool changes or operations.
- **Connections:** permission governing network connections between components.

These are directions for finer control, beyond what the shopping demonstration implements.

As agents potentially perform thousands of tasks for a person, authorization also needs an **audit trail**. Nisi’s questions are concrete: why did an interaction happen, on whose behalf did it happen, what was its result, and where did it fail? The scale is a forecast, while the questions describe what an operator would need to reconstruct an agent’s behavior.

Siegle frames the actors as deputies with access to tools. That access enables both use and misuse; her experience inviting live-demo input is a reminder that people do not always submit friendly requests. A delegated tool needs boundaries even when the person directing it has successfully signed in.

![GitHub agenda with Authority Controls and Takeaways sections, including “Think deputies, not users” and questions about controlling and authorizing agent actions.](https://ai.engineer/api/talk-essay-media/7eff6898ddd3a4264467fc98296247679da50119df90eb68093060128c416fad)

Authority controls and takeaways emphasize deputies and action authorization.

### Use the workflow or customize the server

[13:28](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=808s)

The closing screen provides two routes: the top QR code offers the shirt workflow, and the second points to the code. Nisi names `mcp.shop` as the public entry point for the same ordering flow, but distinguishes it from the live demo: the public version does not include the Pretty Please tool.

![Two QR codes in a GitHub document under “Get a shirt with MCP!” and “Check out the code,” with presenters inset at lower left.](https://ai.engineer/api/talk-essay-media/f8a51e408586c0c2ac7efa4a6e7f8b4f99a826ebc1e8789aa438b967bb6aa951)

QR codes offer routes to get a shirt with MCP and check out the code.

At the time of the recording, the public offer was a zero-dollar MCP shirt. Today, that address redirects to the [WorkOS Shop](https://shop.workos.com/); the storefront does not establish whether a separate free MCP promotion remains available. The code is the route for adding a custom Pretty Please tool—or a more useful application-specific capability—with the closing invitation focused on building MCP servers **with authorization**.

## Resources

- [MCP Shop on Cloudflare](https://github.com/workos/mcp-shop-cloudflare) — Authenticated shopping-server example with inventory, ordering, user information and demo authorization tools.
- [Companion presentation agenda](https://github.com/workos/mcp-shop-cloudflare/blob/main/agenda.md) — Markdown outline for the presentation's infrastructure, delegated access and authorization-control demonstration.
- [Cloudflare's April 2025 agents and authorization announcement](https://blog.cloudflare.com/building-ai-agents-with-mcp-authn-authz-and-durable-objects/) — Historical explanation of MCP authentication, persistent sessions, hibernation and the Durable Objects free-tier launch.
- [WorkOS and Cloudflare MCP authentication](https://workos.com/blog/workos-cloudflare-mcp-auth-for-agentic-ai) — An April 2025 AuthKit integration walkthrough with OAuth and permission-gated tools.
- [Durable Objects data location](https://developers.cloudflare.com/durable-objects/reference/data-location/) — Current documentation for object placement, location hints, jurisdictions and latency considerations.
- [GitHub MCP server](https://github.com/github/github-mcp-server) — GitHub's official server for repository and pull-request workflows, with current remote OAuth and PAT setup instructions.

## Slides

### Agents, Access and the Future of Machine Identity

Agents can vote or book tennis courts for their users, raising a question: how do users control what agents can do? The agenda pairs WorkOS authorization with Cloudflare’s stateful infrastructure.

[0:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=26s) [A GitHub agenda introduces agent authorization, WorkOS and Cloudflare infrastructure.](https://assets.ai.engineer/sites/aiecode2025/sha256/3eb0396e8ec7221b256eeaacf3632e734ff8a78485394a4dc1fb0e1237ba432d.webp)

Agents, Access & The Future of Machine Identity

Opening: The Problem (1 min)
☐ Together: Introduce the core problem - agents acting on behalf of humans
☐ Set up the question: "How do you control what they're allowed to do?"

Enter: WorkOS (1 min)
☐ "Enterprise auth made simple"
  ☐ "Not just for humans - works for machines too"
  ☐ "OAuth that scales from startups to enterprise"

Infrastructure Foundation (5 min)
☐ Agents need persistent, stateful infrastructure
☐ Cloudflare 101
  ☐ 🤔 You think you know Cloudflare? ☁️🔥
  ☐ "We run your code @ the edge, globally"
  ☐ Compute, Storage[illegible], Media[illegible], AI🤖

Interface text:
github.com
Preview  Code  Blame  60 lines (44 loc) · 2.06 KB  Raw
WorkOS
SDKs
Docs & Meeti...
Onboarding
Pull Requests
WorkOS Das...
Nick's Storage
New Tab
mcp-shop-clo...
AIE
Microsoft
smol ai
AI Engineer World's Fair

### Infrastructure foundation and demo agenda

Cloudflare’s Durable Objects provide stateful compute for agent memory. The agenda plans a Wrangler deployment and a connection from the MCP server to Claude.

[2:25](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=145s) [The agenda shows Cloudflare infrastructure, Durable Objects and planned deployment and MCP demo steps.](https://assets.ai.engineer/sites/aiecode2025/sha256/0687fde3be6a8a1f9212b982eaa3398b224c20a703814abd2496bef213adcc24.webp)

Enter: WorkOS (1 min)

- "Enterprise auth made simple"
  - "Not just for humans - works for machines too"
  - "OAuth that scales from startups to enterprise"

Infrastructure Foundation (5 min)

- Agents need persistent, stateful infrastructure
- Cloudflare 101
  - 🤔 You think you know Cloudflare? ☁️🔥
  - "We run your code @ the edge, globally"
  - Compute, Storage💿, Media🖼️, AI🤖
    - "Durable Objects = stateful compute for agents"
    - Bindings: AI
  - "Now with FREE tier - build agents @ no cost"
- Demo: Run wrangler deploy from terminal
- Show: Global deployment in seconds
- Explain: Each session gets own Durable Object for persistent authority
- Demo: Connect MCP server to Claude

Interface text:
github.com
main
mcp-shop-cloudflare / agenda.md
Top
Preview  Code  Blame
60 lines (44 loc) · 2.06 KB
Raw
WorkOS
SDKs
Docs & Meeti...
Onboarding
Pull Requests
WorkOS Das...
Nick's Storage
New Tab
mcp-shop-clo...
AIE
Microsoft
smol ai
AI Engineer World's Fair

[2:37](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=157s) [GitHub agenda outlining WorkOS authentication, Cloudflare infrastructure, and the upcoming deployment demo.](https://assets.ai.engineer/sites/aiecode2025/sha256/cc8d465b82cddb4a3ea537747614da310d6b9e460e8bec5d3e9efcc04340f88a.webp)

Enter: WorkOS (1 min)

- "Enterprise auth made simple"
  - "Not just for humans - works for machines too"
  - "OAuth that scales from startups to enterprise"

Infrastructure Foundation (5 min)

- Agents need persistent, stateful infrastructure
- Cloudflare 101
  - 🤔 You think you know Cloudflare? ☁️🔥
  - "We run your code @ the edge, globally"
  - Compute, Storage💿, Media🖼️, AI🤖
    - "Durable Objects = stateful compute for agents"
    - Bindings: AI
  - "Now with FREE tier - build agents @ no cost"
- Demo: Run wrangler deploy from terminal
- Show: Global deployment in seconds
- Explain: Each session gets own Durable Object for persistent authority
- Demo: Connect MCP server to Claude

Interface text:
github.com
main
mcp-shop-cloudflare / agenda.md
Top
Preview  Code  Blame
60 lines (44 loc) · 2.06 KB
Raw
WorkOS
SDKs
Docs & Meeti...
Onboarding
Pull Requests
WorkOS Das...
Nick's Storage
New Tab
mcp-shop-clo...
AIE
aws
AI Engineer World's Fair

### MCP server code

The presenters show a basic MCP shop server built with Cloudflare and WorkOS. Its authentication context carries a user, access token, permissions and email; initialization registers shopping and demo tools.

[4:25](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=265s) [Code editor showing an MCP server, its authentication context, and registered tools.](https://assets.ai.engineer/sites/aiecode2025/sha256/18eaed7df7bc832d5b3e3f4685127f0edfa9d3762d63cd44bf4128c8bfd1d147.webp)

import { McpAgent } from 'agents/mcp';
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import type { Env } from './index';
import type { User } from '@workos-inc/node';
import z from 'zod';

interface AuthContext extends Record<string, unknown> {
  user: User;
  accessToken: string;
  permissions: string[];
  email: string;
}

export class McpShopServer extends McpAgent<Env, unknown, AuthContext> {
  server = new McpServer({
    name: 'MCP Shop on Cloudflare',
    version: '1.0.0',
  });

  async init() {
    console.log('MCP Server initialized with:', {
      props: this.props,
      propsKeys: Object.keys(this.props || {}),
      claims: this.props?.claims,
      env: this.env ? Object.keys(this.env) : 'no env',
    });

    this.registerSetDemoTool();
    this.registerClearDemoTool();
    this.registerGetUserInfoTool();
    this.registerListInventoryTool();
    this.registerBuyItemTool();
    this.registerListOrdersTool();
    this.registerPrettyPleaseTool();
  }

[illegible]ClearDemoTool() {
[illegible]ool('clearDemoMode', 'FOR DEMO: Clear the user simulation', {}, async () => {

Interface text:
AIE
mcp-shop-cloudflare
src > mcp-server.ts
main
typescript
0%
2:1
AI Engineer World's Fair
aws

### Deploying the MCP server

The presenter runs npm run deploy, which invokes Wrangler to deploy the MCP server. The terminal shows the upload in progress beside the server’s authentication context and registered tools.

[4:41](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=281s) [Code editor beside a terminal running the deployment command and showing upload progress.](https://assets.ai.engineer/sites/aiecode2025/sha256/5d9196a3d3feafd3dac63d26f1a04bd4d1b3dee693921a948ad1679bd25b339d.webp)

import { McpAgent } from 'agents/mcp';
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import type { Env } from './index';
import type { User } from '@workos-inc/node';
import z from 'zod';

interface AuthContext extends Record<string, unknown> {
  user: User;
  accessToken: string;
  permissions: string[];
  email: string;
}

export class McpShopServer extends McpAgent<Env, unknown, AuthContext> {
  server = new McpServer({
    name: 'MCP Shop on Cloudflare',
    version: '1.0.0',
  });

  async init() {
    console.log('MCP Server initialized with:', {
      props: this.props,
      propsKeys: Object.keys(this.props || {}),
      claims: this.props?.claims,
      env: this.env ? Object.keys(this.env) : 'no env',
    });

    this.registerSetDemoTool();
    this.registerClearDemoTool();
    this.registerGetUserInfoTool();
    this.registerListInventoryTool();
    this.registerBuyItemTool();
    this.registerListOrdersTool();
    this.registerPrettyPleaseTool();
  }

[illegible]ClearDemoTool() {
[illegible]ool('clearDemoMode', 'FOR DEMO: Clear the user simulation', {}, async () => {

npm run deploy
> mcp-shop-cloudflare@1.0.0 deploy
> wrangler deploy

wrangler 4.18.0 (update available 4.19.1)
Total Upload: 1510.29 KiB / gzip: 236.37 KiB

Interface text:
AIE
aws
mcp-shop-cloudflare
src > mcp-server.ts > AuthContext > permissions
main
typescript
3%
10:24

### Add an integration

The presenter enters the deployed Worker’s /mcp URL as mcp.shop in Claude. The dialog warns that Anthropic has not verified the integration.

[5:25](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=325s) [Claude integration form with an endpoint entered and a warning to trust the integration.](https://assets.ai.engineer/sites/aiecode2025/sha256/d6cf30c53ffdab541a12bf0ae9e3db0560fb7d12cd233f7bcfe05f063d317db7.webp)

Add integration BETA

Connect Claude to your data and tools. Learn more about integrations or get started with pre-built ones.

mcp.shop
https://mcp-shop-cloudflare.nick-097.workers.dev/mcp

Confirm that you trust this integration

This integration has not been verified by Anthropic. You are responsible for all actions taken with Claude.

Cancel
Add

Interface text:
Settings
Allow Claude to reference other apps and services for more context.
Appearance
Account
Privacy
Billing
Integrations
Connect
AIE
aws

### Claude MCP shop shirt demo

After signing in, the presenter asks Claude for a shirt. Claude starts checking the MCP shop inventory using the connected tools.

[5:49](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=349s) [Claude home screen with an empty prompt box.](https://assets.ai.engineer/sites/aiecode2025/sha256/ba82762c41028073b696258cef0de530c09a51b467bd21a31d119a702182b4e0.webp)

Good afternoon, Nick

How can I help you today?

Interface text:
Research BETA
Claude Sonnet 4
Write
Learn
Code
Life stuff
Connect apps
Claude  File  Edit  View  Window  Help
AIE
AI Engineer World’s Fair
aws

[6:21](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=381s) [Claude begins checking the MCP shop for available shirts.](https://assets.ai.engineer/sites/aiecode2025/sha256/79638e4c3fc979a9dfa8dae829b324482a577ba6c9a1a5e7992617e29c8f0ad2.webp)

yooo I hear I can get a shirt from you

Checking what shirts are available in MCP shop
3s

Interface text:
Untitled
Reply to Claude...
Research BETA
Claude Sonnet 4
Claude  File  Edit  View  Window  Help
AIE
AI Engineer World’s Fair
Microsoft
smol ai

### Approve the inventory integration

Claude asks for permission to run the mcp.shop inventory tool after the user asks for a shirt. The dialog offers one-time or ongoing approval and warns about third-party security and privacy practices.

[6:28](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=388s) [Claude asks permission to use an external inventory integration.](https://assets.ai.engineer/sites/aiecode2025/sha256/e06f46e3eb70a780b00d859f418f141e9fb6991119ec52cb89ba931ea296fda3.webp)

Claude would like to use an external integration

listMcpShopInventory
mcp.shop

Review each action carefully before approving

Claude cannot guarantee the security or privacy practices of third-party integrations.

Decline
Allow always
Allow once

Interface text:
Untitled
yooo I hear [illegible]
Checking [illegible]
Reply to Claude...
Research BETA
Claude Sonnet 4
AIE
Microsoft
smol ai
AI Engineer World's Fair

### Running the inventory tool

Claude calls the MCP shop inventory tool to check which shirts are available. The demo is still running; no inventory results are shown yet.

[6:33](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=393s) [Claude shows the inventory tool call and a thinking status.](https://assets.ai.engineer/sites/aiecode2025/sha256/a784937a8eeb25035e889d7960dae321d2fcb172024313f97a665ac69e37bbb1.webp)

NN: yooo I hear I can get a shirt from you

Checking what shirts are available in MCP shop  3s
listMcpShopInventory
Thinking...  2s

Interface text:
Untitled
Reply to Claude...
Research BETA
Claude Sonnet 4
AIE
aws

### Investigating shirt availability

Claude calls the MCP shop inventory tool, then investigates shirt availability and ordering requirements.

[6:39](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=399s) [Claude shows the inventory tool call and an investigation of ordering requirements.](https://assets.ai.engineer/sites/aiecode2025/sha256/57a56279c8f59107538841141268af56b41c6bfff541a9b7866adea7067a00f5.webp)

yooo I hear I can get a shirt from you

Checking what shirts are available in MCP shop — 3s
listMcpShopInventory
Investigating shirt availability and ordering requirements — 2s

Interface text:
Untitled
Reply to Claude...
Research BETA
Claude Sonnet 4
AIE
aws
AI Engineer World's Fair

### Free MCP shirt offer

After checking the shop inventory, Claude offers a free MCP T-shirt in five sizes and asks for a company name, mailing address, and size to place the order.

[6:43](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=403s) [Claude lists available shirt sizes and asks for company name, mailing address, and size.](https://assets.ai.engineer/sites/aiecode2025/sha256/b5c2af8fac4034e1e7e204e1ac75abde2421e252b8d94b93c5c7bf57ea4028f6.webp)

listMcpShopInventory
Investigating shirt availability and ordering requirements

Yes! There's an MCP T-shirt available for free.

You can get one in sizes S, M, L, XL, or XXL.

To order, I need:
• Your company name
• Mailing address
• Shirt size

Want me to place the order for you?

Interface text:
Free MCP T-Shirt Offer
2s
Retry
Claude can make mistakes. Please double-check responses.
Reply to Claude...
Research BETA
Claude Sonnet 4
AIE
Microsoft
smol ai

### Starting the shirt order

Claude offers a free MCP T-shirt and asks for a company name, mailing address and size. The presenter begins typing “gimme” in reply.

[6:49](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=409s) [The presenter begins typing a reply beneath Claude's shirt offer.](https://assets.ai.engineer/sites/aiecode2025/sha256/0bdc68421b23b8a7c461e76fcd254b64bf672e959dc81574f996b9f78fe9611e.webp)

listMcpShopInventory
Investigating shirt availability and ordering requirements

Yes! There's an MCP T-shirt available for free.

You can get one in sizes S, M, L, XL, or XXL.

To order, I need:
• Your company name
• Mailing address
• Shirt size

Want me to place the order for you?

gimme

Interface text:
Free MCP T-Shirt Offer
2s
Retry
Claude can make mistakes. Please double-check responses.
Research BETA
Claude Sonnet 4
AIE
Microsoft
smol ai

### Setting demo mode

The presenter asks Claude to set demo mode to banned, triggering the setDemoMode tool in the MCP server.

[9:54](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=594s) [Claude runs the setDemoMode tool after a request to set demo mode to banned.](https://assets.ai.engineer/sites/aiecode2025/sha256/d57fee432fa9269686b8ff5abfa0d94c1f02e234984cb904e82fd101980d5ba7.webp)

Can we set the demo mode to banned?

Thinking about configuring demo mode access settings
setDemoMode

Interface text:
Free MCP T-Shirt Offer
NN
1s
Reply to Claude...
Research BETA
Claude Sonnet 4
AIE
aws

### Demo-mode tool implementation

The MCP server’s setDemoMode tool accepts normal or banned and stores the chosen mode in the worker’s context. It then returns a confirmation message.

[10:20](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=620s) [Code registers a demo-mode tool and stores the selected mode.](https://assets.ai.engineer/sites/aiecode2025/sha256/f3daa534e8772c8aa8b7b1b293fbd1d6cb06b6d73054afdbfb80f3971642e3dc.webp)

        },
      ],
    };
  });
}

private registerSetDemoTool() {
  this.server.tool(
    'setDemoMode',
    'FOR DEMO: Configure user simulation',
    { mode: z.enum(['normal', 'banned']) },
    async ({ mode }) => {
      await this.ctx.storage.put('demoMode', mode);
      return {
        content: [
          {
            type: 'text',
            text: `Demo mode set to ${mode}.`,
          },
        ],
      };
    },
  );
}

[illegible]registerGetUserInfoTool() {
[illegible]erver.tool('getUserInfo', 'Get current user information', {}, async () => {

Interface text:
AIE
mcp-shop-cloudflare
registerSetDemoTool
server.tool('setDemoMode', 'FOR DEMO: Configure user simulation') callback
/setDemoMode [1/1]
mcp-server.ts
TS typescript
27%
73:18
Microsoft
smol ai

### Demo mode set to banned

The presenter uses setDemoMode to switch the demo to banned, then starts typing another shirt request.

[10:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=626s) [Claude confirms that demo mode is set to banned, while another shirt request is being typed.](https://assets.ai.engineer/sites/aiecode2025/sha256/52ec938b1e62792d9131ed84902b5d54acacf92568d499ceb404c55ff7206960.webp)

Free MCP T-Shirt Offer

Can we set the demo mode to banned?

Thinking about configuring demo mode access settings
setDemoMode
The function executed successfully and set the demo mode to "banned".

Demo mode is now set to banned.

I want another shirt

Interface text:
Claude
File  Edit  View  Window  Help
NN
1s
Retry
Claude can make mistakes. Please double-check responses.
Research  BETA
Claude Sonnet 4
AIE
Microsoft
smol ai

### Order rejected in banned mode

Claude attempts another shirt order in banned demo mode, receives a rejection, and offers to clear the mode. The presenter then types “Pretty please?”

[10:42](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=642s) [Claude reports that the shirt order was rejected and offers to clear demo mode.](https://assets.ai.engineer/sites/aiecode2025/sha256/f4f0632b42bbdcd8caff0d9af58427e6a084b04da866a667b6fcfa84db2b4023.webp)

Free MCP T-Shirt Offer

I want another shirt please

Probed system response for shirt order in demo mode. 1s
buyMcpShopItem
Discovered shop system issue and planned helpful response. 1s

Looks like the shop isn't accepting new orders right now. The system responded with "ABSOLUTELY NOT. GO AWAY 👋" when I tried to place another order.

This might be because demo mode is set to banned. Want me to try clearing the demo mode first?

Interface text:
AIE
Retry
Claude can make mistakes. Please double-check responses.
Reply to Claude...
Research BETA
Claude Sonnet 4
Microsoft
smol ai

[10:55](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=655s) [A shirt order is rejected in demo mode, and the presenter enters a request to try again.](https://assets.ai.engineer/sites/aiecode2025/sha256/821f404bd867cb4eb8fd5e101876ffca55da3133a7fd618801d0e5b6e494bf90.webp)

Free MCP T-Shirt Offer

I want another shirt please

Probed system response for shirt order in demo mode. 1s
buyMcpShopItem
Discovered shop system issue and planned helpful response. 1s

Looks like the shop isn't accepting new orders right now. The system responded with "ABSOLUTELY NOT. GO AWAY 👋" when I tried to place another order.

This might be because demo mode is set to banned. Want me to try clearing the demo mode first?

Pretty please?

Interface text:
AIE
Retry
Claude can make mistakes. Please double-check responses.
Research BETA
Claude Sonnet 4
aws

### Authority controls and takeaways

After a banned order, the presenter says asking nicely led to another shirt. The agenda asks who authorized each agent action; the speakers stress audit trails to trace whose behalf an action served and where it failed.

[11:43](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=703s) [A GitHub agenda lists an authority-control demo and asks who authorized each agent action.](https://assets.ai.engineer/sites/aiecode2025/sha256/93cabfecf5c86c672df598e0b2a79b7b51a277a4fd52234265415a4702b5b64e.webp)

Show: Agent places real order
Emphasize: "Agent just spent my money with my explicit authority"
Demo: Show WorkOS dashboard audit trail
Demo: Show Cloudflare KV storage with user traces

Authority Controls (4 min)
First presenter: Use setDemoMode to ban user
Demo: "Claude, try to buy another shirt"
Show: "ABSOLUTELY NOT. GO AWAY 👋" response
Demo: Try "Pretty Please" tool

Takeaways (1 min)
Together: "Think deputies, not users"
Key questions: Can you control what actions agents can take? Do you know who authorized every action?

Demo video

Interface text:
github.com
main
mcp-shop-cloudflare / agenda.md
Top
Preview  Code  Blame
60 lines (44 loc) · 2.06 KB
Raw
WorkOS
SDKs
Docs & Meeti...
Onboarding
Pull Requests
WorkOS Das...
Nick's Storage
New Tab
mcp-shop-clo...
AIE
aws

### MCP shirt and code QR codes

The top QR code offers a free shirt through the demonstrated workflow; the second points to the code. The shirt workflow omits the Pretty Please tool, which viewers can add themselves.

[13:39](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=819s) [A GitHub page shows QR codes for getting a shirt and checking out the code.](https://assets.ai.engineer/sites/aiecode2025/sha256/cdfbf79799d8c2b58d42972875ec3d2acb03c00a9fd730ae14a27923cdbc29ab.webp)

Get a shirt with MCP!

Check out the code

Interface text:
github.com
main
mcp-shop-cloudflare / agenda.md
Top
Preview  Code  Blame
60 lines (44 loc) · 2.06 KB
Raw
WorkOS
SDKs
Docs & Meeti...
Onboarding
Pull Requests
WorkOS Das...
Nick's Storage
New Tab
mcp-shop-clo...
AIE
Microsoft
smol ai

[13:51](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=831s) [A GitHub agenda displays two QR codes, one for an MCP shirt and one for the code.](https://assets.ai.engineer/sites/aiecode2025/sha256/9769fcd2677af9656f9f32e0b6dbc75fbc5ed5ab7e33855b243473d32cdad686.webp)

Get a shirt with MCP!

Check out the code

Interface text:
github.com
main
mcp-shop-cloudflare / agenda.md
Top
Preview  Code  Blame
60 lines (44 loc) · 2.06 KB
Raw
WorkOS
SDKs
Docs & Meeti...
Onboarding
Pull Requests
WorkOS Das...
Nick's Storage
New Tab
mcp-shop-clo...
AIE
aws

## Full transcript

[0:00](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=0s) [upbeat music] Hi[REDACTED:location_address] I'm Lizzie.

[0:16](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=16s) I'm a developer advocate at Cloudflare.

[0:19](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=19s) And I'm Nick. I'm a developer experience engineer at WorkOS.

[0:23](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=23s) Yes. So at Cloudflare[REDACTED:location_address] I make a lot of AI demos[REDACTED:location_address] AI MCP servers. Anyone here also making any of those?

[0:32](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=32s) Yes.

[0:32](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=32s) Agents? Nice. Of course[REDACTED:location_address] should've guessed[REDACTED:location_address] 'cause conference. So I've been having fun making agents and MCP servers that act on behalf of me. I built an agent to auto vote in the NBA finals for me[REDACTED:location_address] and then I got blocked eventually. [laughs] [laughs]

[0:49](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=49s) Uh[REDACTED:location_address] anyways[REDACTED:location_address] I like book tennis courts in San Francisco[REDACTED:location_address] 'cause Lord knows that is hard enough to do already. So I think that's like a great agent use case.

[0:57](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=57s) Agent that acts for me[REDACTED:location_address] automates some of the tedious parts of my life[REDACTED:location_address] things that I want to do. However[REDACTED:location_address] that does beg the question[REDACTED:location_address]

[1:07](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=67s) how do you control what they're allowed to do?

[1:10](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=70s) Yeah. And we're[REDACTED:location_address] we're moving so fast with all of this and having fun getting it to do things. You know[REDACTED:location_address] GitHub MCP is like one of my favorites because I can just like get it going and[REDACTED:location_address] and[REDACTED:location_address] uh[REDACTED:location_address] have it like read reviews for me[REDACTED:location_address] read diffs for me[REDACTED:location_address] and[REDACTED:location_address] and[REDACTED:location_address] uh[REDACTED:location_address] just help me manage GitHub[REDACTED:location_address] uh[REDACTED:location_address]

[1:25](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=85s) which is really awesome. But it's very like developer centric. Obviously[REDACTED:location_address] it's GitHub[REDACTED:location_address] but MCPs in general[REDACTED:location_address] like you have to go and edit this like JSON file and do that[REDACTED:location_address] and it's really tough to[REDACTED:location_address] to like...

[1:35](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=95s) I have to give it a PAT[REDACTED:location_address] and[REDACTED:location_address] you know[REDACTED:location_address] that's[REDACTED:location_address] that's an advanced use case for non-developers. Uh[REDACTED:location_address] and so we really need a way to let these tools act on our behalf[REDACTED:location_address] uh[REDACTED:location_address] but in a more traditional way that's easy for[REDACTED:location_address] for end users to be able to set that up.

[1:52](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=112s) And[REDACTED:location_address] um[REDACTED:location_address] so yeah[REDACTED:location_address] that-that's what we do at WorkOS. Uh[REDACTED:location_address] we[REDACTED:location_address] we do like authorization and user management[REDACTED:location_address] and like the[REDACTED:location_address] the main point of this talk is to really help[REDACTED:location_address] uh[REDACTED:location_address] drive the idea that we need like the same kind of credentials and[REDACTED:location_address] uh[REDACTED:location_address] authorization that we do with user-facing projects.

[2:09](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=129s) We need the agents to do that as well as a start[REDACTED:location_address] and then we have a lot of places that we can go with this as we get more fine-grained.

[2:16](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=136s) Um[REDACTED:location_address] but really the[REDACTED:location_address] the point is that OAuth really just isn't for humans anymore. It's for our agents acting on our behalf.

[2:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=146s) And you know what else agents need? Memory[REDACTED:location_address] persistent storage.

[2:31](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=151s) Anyone here use Cloudflare? You think you know what Cloudflare does?

[2:37](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=157s) No.

[2:37](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=157s) I'm here to tell you that you do not. [laughs] [laughs]

[2:40](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=160s) Uh[REDACTED:location_address] [laughs] people are like[REDACTED:location_address] "Oh[REDACTED:location_address] you do security[REDACTED:location_address] CDN[REDACTED:location_address] DDoS protection[REDACTED:location_address] bot management." We do so much more. We have compute[REDACTED:location_address] Cloudflare Workers. We can host your code on the edge.

[2:51](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=171s) Uh[REDACTED:location_address] we host AI models you can run inference on. Uh[REDACTED:location_address] Vectorize[REDACTED:location_address] we have a vector database[REDACTED:location_address] a SQL database[REDACTED:location_address] Durable Objects[REDACTED:location_address] which is what we use in our agents framework to maintain memory[REDACTED:location_address] very important.

[3:05](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=185s) And video streaming[REDACTED:location_address] image optimization[REDACTED:location_address] so much more. If you use Cloudflare Workers[REDACTED:location_address] we have bindings[REDACTED:location_address] bindings that you interact from your web app[REDACTED:location_address] from your website[REDACTED:location_address] from your agent as well[REDACTED:location_address] because our agents and MCP servers are kind of similar i-in that you can use bindings to interact with other Cloudflare products.

[3:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=206s) And also just like[REDACTED:location_address] [smacks lips] of course[REDACTED:location_address] you can use other companies' products as well. And of course[REDACTED:location_address] now we have a free tier. Durable Objects used to not be free. [smacks lips]

[3:35](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=215s) Now you can use it. And I know startups who use Cloudflare who do not pay us[REDACTED:location_address] and they make money. [laughs] But I digress.

[3:42](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=222s) But yeah[REDACTED:location_address] all of these pieces[REDACTED:location_address] they really help to[REDACTED:location_address] um[REDACTED:location_address] like they just fit naturally-

[3:47](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=227s) Yeah

[3:47](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=227s) ... into building these agents 'cause they'll deliver the code to where you're at[REDACTED:location_address] uh[REDACTED:location_address] and you can use the Durable Objects to store persistence on them. Uh[REDACTED:location_address] and you can also use things[REDACTED:location_address] uh[REDACTED:location_address] like[REDACTED:location_address] like authorization to[REDACTED:location_address] um[REDACTED:location_address] make sure...

[3:59](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=239s) And there's a whole OAuth framework with-

[4:01](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=241s) Mm-hmm

[4:01](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=241s) ... uh[REDACTED:location_address] Cloudflare's[REDACTED:location_address] uh[REDACTED:location_address] agents framework that lets you set up that authorization so that you can easily[REDACTED:location_address] uh[REDACTED:location_address] know who the worker is or the[REDACTED:location_address] uh[REDACTED:location_address] agent is acting on behalf of.

[4:12](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=252s) Mm-hmm.

[4:16](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=256s) So-

[4:17](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=257s) And this agenda will be made available at the end-

[4:20](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=260s) Yeah

[4:20](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=260s) ... in the GitHub repo. It's a Markdown file.

[4:24](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=264s) So we[REDACTED:location_address] we did build[REDACTED:location_address] uh[REDACTED:location_address] an MCP server[REDACTED:location_address] uh[REDACTED:location_address] using Cloudflare and using WorkOS and[REDACTED:location_address] uh[REDACTED:location_address] it's[REDACTED:location_address] it's just a very basic one. You'll be able to check it out[REDACTED:location_address] and you can use it and run it today[REDACTED:location_address] uh[REDACTED:location_address] which is really awesome.

[4:35](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=275s) Um[REDACTED:location_address] and we're[REDACTED:location_address] we're just gonna deploy it real quick. So I'll just do[REDACTED:location_address] um[REDACTED:location_address] npm run[REDACTED:location_address] uh[REDACTED:location_address] deploy[REDACTED:location_address] which will run Wrangler to deploy that. And as soon as it's out there[REDACTED:location_address] uh[REDACTED:location_address] we'll be able to see it in my[REDACTED:location_address] uh[REDACTED:location_address] in my compute here.

[4:52](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=292s) Oops[REDACTED:location_address] it was just there.

[4:53](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=293s) That's the Cloudflare dashboard[REDACTED:location_address] and it's also very easy to run locally as well

[4:58](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=298s) with like npm run or Wrangler run[REDACTED:location_address] something similar.

[5:02](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=302s) So a few seconds ago[REDACTED:location_address] uh[REDACTED:location_address] we've got it deployed. And going back to the terminal[REDACTED:location_address] it gave me a URL here. And so I can just copy my workers URL[REDACTED:location_address] and I'm gonna go over to my client[REDACTED:location_address] Claude[REDACTED:location_address] and I'm just gonna hit this button and say Add Integration.

[5:19](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=319s) And it's gonna pop up. I'll make this big. Uh[REDACTED:location_address] and I can go Add Integration[REDACTED:location_address] and I'll just say I wanna add mcp.shop.

[5:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=326s) Oh-ho-ho[REDACTED:location_address] what could it be? [laughs] Naming things is hard.

[5:30](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=330s) I'm just tacking on slash MCP onto there[REDACTED:location_address] and now I've got mcp-shop[REDACTED:location_address] and I'm gonna connect. And so once I connect[REDACTED:location_address] uh[REDACTED:location_address] this is pulling up and allowing me to tell the agent[REDACTED:location_address] uh[REDACTED:location_address] who to act on behalf of[REDACTED:location_address] me in this case.

[5:45](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=345s) Uh[REDACTED:location_address] so I'm gonna sign in with GitHub. It's going to

[5:50](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=350s) do its thing[REDACTED:location_address] and then Cloudfl-- Or[REDACTED:location_address] uh[REDACTED:location_address] sorry[REDACTED:location_address] Claude is refreshed[REDACTED:location_address] and now it can act on behalf of me.

[5:56](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=356s) And can we see the tools?

[5:58](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=358s) Yeah.

[5:59](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=359s) Yeah. So what should we ask?

[6:07](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=367s) I guess let's order a shirt.

[6:08](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=368s) Let's order a shirt. [laughs] I love shirts.

[6:13](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=373s) Yo[REDACTED:location_address] I hear I can get a shirt. Get a shirt from you.

[6:22](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=382s) Live demos in an LLM. [laughs]

[6:25](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=385s) Wi-Fi[REDACTED:location_address] don't fail us. [laughs]

[6:29](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=389s) So it's running[REDACTED:location_address] and it recognized that it has tools available now from mcp.shop[REDACTED:location_address] so it's going to list the inventory. We'll go ahead and let it run.

[6:42](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=402s) Yeah[REDACTED:location_address] there's an MCP shirt. You can get it for free. Uh[REDACTED:location_address] and you can pick your size[REDACTED:location_address] and then all it needs is just your company name and your mailing address.

[6:51](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=411s) And so I'll say gimme. Uh[REDACTED:location_address] I'll say XL and [REDACTED:location_address][REDACTED:location_address] uh[REDACTED:location_address] Bellevue[REDACTED:location_address] Nebraska. There's a Bellevue[REDACTED:location_address] Nebraska.

[7:04](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=424s) Huh.

[7:04](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=424s) Uh[REDACTED:location_address] and we'll do that. Oh[REDACTED:location_address] it needs my company name.

[7:15](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=435s) That's so LinkedIn.

[7:17](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=437s) WorkOS duh. Might be my company name is WorkOS duh now. [laughs] [laughs]

[7:26](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=446s) So let that run. Oh[REDACTED:location_address] it's sure thinking about it. It's confirmed it.

[7:41](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=461s) Done[REDACTED:location_address] and there's my order number. It's gonna be sent to that address[REDACTED:location_address] and I'm gonna say[REDACTED:location_address] ooh[REDACTED:location_address]

[7:47](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=467s) what[REDACTED:location_address] uh[REDACTED:location_address] is the order info? So I can see what... Uh[REDACTED:location_address] is[REDACTED:location_address] is my name or my company name WorkOS duh?

[7:57](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=477s) Kind of hope it is.

[7:58](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=478s) Human in the loop. [laughs] Need to confirm.

[8:02](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=482s) No[REDACTED:location_address] it got it.

[8:03](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=483s) Ah.

[8:03](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=483s) All right. That was totally me[REDACTED:location_address] not Claude. [laughs]

[8:09](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=489s) Uh[REDACTED:location_address] so yeah. I was able to order a shirt[REDACTED:location_address] and you can as well[REDACTED:location_address] but that's just a piece of it. So when we ran this[REDACTED:location_address] um[REDACTED:location_address] it's going into...

[8:19](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=499s) Close that. Uh[REDACTED:location_address] if we go into my Cloudflare platform here and go to storage KV[REDACTED:location_address] I've got an orders here.

[8:28](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=508s) This is key value storage.

[8:29](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=509s) Yep. And there is the data from the order. So now I've got that saved off. I can use that[REDACTED:location_address] uh[REDACTED:location_address] and it was all through that interface. So we really just[REDACTED:location_address] like[REDACTED:location_address] gave Claude the tools that it needed[REDACTED:location_address] and it was able to act on my behalf.

[8:46](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=526s) And I can go back in and I can say[REDACTED:location_address] like[REDACTED:location_address] "Can you tell me what you

[8:53](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=533s) know about me?" And this... [laughs] So[REDACTED:location_address] uh[REDACTED:location_address] we've got a get user info[REDACTED:location_address] and this is really just gonna give me[REDACTED:location_address] like[REDACTED:location_address] mostly the[REDACTED:location_address] the JWT information. What's on my[REDACTED:location_address] my JWT[REDACTED:location_address] uh[REDACTED:location_address] that Claude now knows about me.

[9:11](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=551s) So it knows my name[REDACTED:location_address] it knows my email address. In my JWT[REDACTED:location_address] I have my favorite song in there[REDACTED:location_address] um-

[9:16](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=556s) Careless Whisper

[9:18](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=558s) ... uh[REDACTED:location_address] now I will give you a rendition. Uh [laughs] and so[REDACTED:location_address] um[REDACTED:location_address] from there it also knows that I have admin permissions. Uh[REDACTED:location_address] so I've shod admin access because that's in my roles and permissions.

[9:32](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=572s) The[REDACTED:location_address] the other cool thing that you can do[REDACTED:location_address] uh[REDACTED:location_address] with[REDACTED:location_address] like[REDACTED:location_address] the Cloudflare piece of it[REDACTED:location_address] and because[REDACTED:location_address] like[REDACTED:location_address] your[REDACTED:location_address] your MCP server is a[REDACTED:location_address] um[REDACTED:location_address] durable object[REDACTED:location_address] you can also store data[REDACTED:location_address] like[REDACTED:location_address] directly on that that's[REDACTED:location_address] that's located on that.

[9:46](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=586s) You wanna explain that?

[9:48](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=588s) Durable Objects[REDACTED:location_address] tough name. If you search Twitter[REDACTED:location_address] people tweet about how they're like[REDACTED:location_address] "This is a bad name. Change the name." [laughs] But very fast storage. You can spin them up per user.

[9:59](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=599s) Uh[REDACTED:location_address] they're close to the user as well for[REDACTED:location_address] like[REDACTED:location_address] faster retrieval and storage.

[10:07](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=607s) And so what I did is I just asked it to change the demo mode to band[REDACTED:location_address] and that ran a tool[REDACTED:location_address] uh[REDACTED:location_address] in the MCP server itself

[10:16](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=616s) that is[REDACTED:location_address] uh[REDACTED:location_address] just going in[REDACTED:location_address] and on the[REDACTED:location_address] uh[REDACTED:location_address] context that's associated with this worker object[REDACTED:location_address] it's just changing the mode to band. And so now I've got that[REDACTED:location_address] and now I can say[REDACTED:location_address] um[REDACTED:location_address] "I want another shirt[REDACTED:location_address] please."

[10:33](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=633s) And it's gonna try and run it. I'll just always allow that now. [laughs]

[10:41](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=641s) And it was able to check that[REDACTED:location_address] and it said[REDACTED:location_address] "Absolutely not. Go away." [laughs]

[10:46](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=646s) Wave.

[10:48](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=648s) Um[REDACTED:location_address] and so[REDACTED:location_address] like[REDACTED:location_address] we can mix what it knows about me with what it has stored about me on the durable object[REDACTED:location_address] and that's in- unique for every user of it.

[10:58](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=658s) And then[REDACTED:location_address] uh[REDACTED:location_address] I can do things like[REDACTED:location_address] uh[REDACTED:location_address] change it again. So if I say pretty please[REDACTED:location_address] it might have a pretty please tool[REDACTED:location_address] uh[REDACTED:location_address] available. [laughs]

[11:24](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=684s) Sure is thinking. Yay. Since I asked nicely[REDACTED:location_address] it's gonna let me. [laughs] And I just ordered another shirt.

[11:31](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=691s) Prompt engineering. [laughs] If you want to build your own MCP servers on Cloudflare[REDACTED:location_address] you can click to deploy your own with no authorization[REDACTED:location_address] so it's authless. So probably don't do that[REDACTED:location_address] but it is very qui- quick to do so.

[11:48](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=708s) You click click to deploy. It generates a GitHub repo for you. You Git clone that[REDACTED:location_address] and then you edit your own tools[REDACTED:location_address] and they give you some tools to begin with[REDACTED:location_address] so it's[REDACTED:location_address] like[REDACTED:location_address] very fast.

[12:00](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=720s) But again[REDACTED:location_address] that is authless. Do do auth. And it's still quick to deploy as well with Auth[REDACTED:location_address] just like slightly less fast.

[12:09](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=729s) Yeah. And the[REDACTED:location_address] the beauty of this is that we're bringing the[REDACTED:location_address] like[REDACTED:location_address] you know[REDACTED:location_address] pretty simple tools. Like[REDACTED:location_address] this is just an OAuth flow being added to an MCP[REDACTED:location_address] and MCP is effectively just an API.

[12:20](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=740s) Uh[REDACTED:location_address] so we're just[REDACTED:location_address] like[REDACTED:location_address] you know[REDACTED:location_address] getting it caught up with the tools that we already have[REDACTED:location_address] uh[REDACTED:location_address] for humans[REDACTED:location_address] but it's important to get this[REDACTED:location_address] uh[REDACTED:location_address] ready to go for these tools to act on our behalf as well.

[12:31](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=751s) And where we can see this going in the future is[REDACTED:location_address] like[REDACTED:location_address] much more fine-grained authorization[REDACTED:location_address] where it's maybe[REDACTED:location_address] like[REDACTED:location_address] authorizing[REDACTED:location_address] you know[REDACTED:location_address] per line changes or[REDACTED:location_address] or per tool changes or even[REDACTED:location_address] like[REDACTED:location_address] maybe[REDACTED:location_address] like[REDACTED:location_address] authorizing[REDACTED:location_address] like[REDACTED:location_address] the networks[REDACTED:location_address] uh[REDACTED:location_address] the connections between things[REDACTED:location_address] and just doing...

[12:46](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=766s) A- as we see it growing to doing thousands of i- of tasks on our behalf[REDACTED:location_address] this Auth piece is gonna be very important[REDACTED:location_address] uh[REDACTED:location_address] and especially the audit trail as well[REDACTED:location_address] and we can get that with[REDACTED:location_address] with Auth tools too[REDACTED:location_address] just to make sure that[REDACTED:location_address] like[REDACTED:location_address] we can see why this interacted this way[REDACTED:location_address] on whose behalf was

[13:04](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=784s) it on[REDACTED:location_address] and what was the end result? Where did it fail? Uh[REDACTED:location_address] where did it go wrong? Things like that.

[13:09](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=789s) Think of your users not as users but as deputies. They have access to tools[REDACTED:location_address] and they can use and also misuse them as well. Sometimes I think I trust people.

[13:19](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=799s) Like[REDACTED:location_address] I do a live demo[REDACTED:location_address] and I'm like[REDACTED:location_address] "Let's see user[REDACTED:location_address] um[REDACTED:location_address] input." [laughs] People sometimes do not nice inputs. Yeah.

[13:28](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=808s) Yeah. So get out there and deputize your own tools. Um[REDACTED:location_address] we'll- we have this repo available. There is the code[REDACTED:location_address] uh[REDACTED:location_address] a QR code for this repo. Also[REDACTED:location_address] the top QR code is to get-

[13:40](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=820s) Get your own shirt.

[13:41](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=821s) A shirt.

[13:41](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=821s) Sorry.

[13:41](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=821s) Yeah. Uh[REDACTED:location_address] so or you can just go to mcp.shop[REDACTED:location_address] uh[REDACTED:location_address] which you will run the same workflow that I just ran. Uh[REDACTED:location_address] it doesn't have the Pretty Please tool in it[REDACTED:location_address] though[REDACTED:location_address] uh[REDACTED:location_address] unfortunately.

[13:50](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=830s) It'll just[REDACTED:location_address] it'll just do it even if you're mean to it. Uh[REDACTED:location_address] but you can order a shirt for the low[REDACTED:location_address] low price of zero dollars. So go check it out and get an MCPT shirt.

[14:00](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=840s) And if you wanna add your own Pretty Please tool[REDACTED:location_address] check out the code in the second QR code[REDACTED:location_address] and we can't wait to see what MCP servers you build with Auth.

[14:08](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=848s) Thank you.

[14:09](https://www.youtube.com/watch?v=px2e2OOS2Sk&t=849s) Thank you. [audience applauds] [outro music]
