learn-mcp

panaversity/learn-mcp Checked 5 hours ago

The CCDV-F Bootcamp Part I: build, deploy and sell multi-tenant remote MCP servers and MCP Apps for Claude and ChatGPT, step by step, on Cloudflare Workers…

Welcome, readers of The AI Agent Factory! If you have finished your study for PCAO-F (Panaversity Certified Associate: Foundations), congratulations: you already know how to work with AI agents and manage the work they do. Now it's time to build. This bootcamp is your hands-on preparation for CCDV-F (Claude Certified Developer: Foundations), Anthropic's developer exam, and for PCDV-F (Panaversity Certified Developer: Foundations), the Panaversity exam that mirrors it.

Summary extracted from the README.

Build and Sell MCP Apps: The CCDV-F Bootcamp Part I

Welcome, readers of The AI Agent Factory! If you have finished your study for PCAO-F (Panaversity Certified Associate: Foundations), congratulations: you already know how to work with AI agents and manage the work they do. Now it's time to build. This bootcamp is your hands-on preparation for CCDV-F (Claude Certified Developer: Foundations), Anthropic's developer exam, and for PCDV-F (Panaversity Certified Developer: Foundations), the Panaversity exam that mirrors it. Just as important, it teaches you to monetize these skills in the international market: building MCP apps for paying clients as a Forward Deployed Engineer (FDE) or for your own startup.

[!TIP] 💰 On a budget? Start with our student guide Affordable Agentic AI Development: which AI tools are free, what is worth paying for, and how to compare costs before you buy. See also What it costs for this bootcamp.

MCP turns two! Anthropic released the Model Context Protocol in November 2024. What started as a way to connect AI apps to tools and data is now becoming the standard for how agents communicate and orchestrate work. MCP also standardizes interactive apps that render inside the chat, through the MCP Apps extension.

MCP's second year was about agents. The 2026-07-28 spec made the protocol stateless, with no sessions, so a server runs behind any load balancer, and new features now arrive as optional extensions that clients adopt one at a time. On MCP's second birthday (November 24, 2026), Anthropic made Tasks and Elicitation generally available in Claude, put Skills over MCP into public beta, and announced file uploads. In this bootcamp we learn to build remote MCP servers that use these capabilities, one small, incremental step at a time.

Our north star is Generative UI + MCP: AI-native apps built around intent rather than navigation. The model decides what interface to show at runtime, and MCP supplies the tools, data and context behind it. MCP Apps is the open standard that carries that UI into the chat, in both Claude and ChatGPT. (Generative UI + MCP: The New Stack for AI-Native Applications, ODSC, 2026)

This bootcamp is the hands-on companion to the book The AI Agent Factory, Second Edition. You learn by building. The book teaches the concepts, and this bootcamp is where you practise them: every step ends with something you build, deploy and test yourself in Claude and ChatGPT. Each step's README starts with a Learn first section that links the book lessons to study before you build that step. Those lessons all come from chapters 12 to 20 of the book. Steps 5 to 8 follow chapter 19 (Postgres, row-level security and pgvector on Neon) closely. Where those chapters don't cover a technology yet (Durable Objects, Queues, Workflows and the Events extension), the step says so and links the official docs instead.

Why this bootcamp

  • A hands-on way of learning. You don't learn MCP here by reading or watching. You read the concepts in the book, then build them into a real, deployed MCP server, one small step at a time. By the end, everything you know, you have built yourself.
  • Hands-on preparation for CCDV-F. This bootcamp is hands-on preparation for CCDV-F (Claude Certified Developer: Foundations), and for PCDV-F (Panaversity Certified Developer: Foundations), which mirrors it. You don't just read about MCP servers: you build, deploy and test one in Claude, step by step. See Certification and Portfolio Roadmaps.
  • Skills you can monetize in the international market. Building MCP servers and MCP Apps is work clients around the world pay for today. Every step builds toward a client-ready product, and the capstone is a portfolio piece you can show to clients and employers, whether you work as an FDE or build your own startup.
  • Part of the FDE 2027 Master Plan. It is one piece of The FDE 2027 Master Plan covered in the book, which trains Forward Deployed Engineers (FDEs) and the next generation of AI startup founders.
  • MCP Apps, one of the book's two products. The book teaches you to build two kinds of products: MCP Apps and AI Workers that improve themselves. This bootcamp covers MCP Apps. Self-improving AI Workers get their own bootcamp, Build and Sell Self Improving AI Workers: The CCDV-F Bootcamp Part II, which is under development.

Your client: Stockroom

Every step in this bootcamp is client work, so every step has a business reason. Your client is Stockroom, a fictional startup that sells AI-native back-office software to small distributors and retailers, and it has hired you as its Forward Deployed Engineer. Stockroom's customers are companies, each with its own staff and data, which is why everything you build serves many companies at once and keeps them apart.

  • Steps 1 to 20 build Stockroom's first product, a sales assistant that its customers' staff use from Claude and ChatGPT. It starts as one tool, becomes account notes for sales reps, grows into each customer's sales data on Neon, and ends as an intent-driven sales dashboard that Stockroom charges for.
  • Step 21, the capstone, builds Stockroom's next product, an inventory and purchasing app, from a brief instead of ready-made prompts. You may bring a client of your own instead.

Each step's README opens with 🏬 Stockroom's ask: what the client needs from that step, and why. Read it first, because it is the reason behind every decision in the step.

Tech stack

Area Choice
Language TypeScript
Development Claude in a Claude project (threads) in the Claude app, working on your local clone; the Code tab of Claude Desktop as a fallback
Git and GitHub GitHub Desktop: you review, commit and push, never Claude
Hosting Cloudflare (Workers)
MCP server Cloudflare's stateless createMcpHandler with MCP SDK v2
Auth Better Auth, with companies and roles through its organization plugin and single sign-on (SSO) through its open-source @better-auth/sso plugin
Notes store (steps 2 to 4) Cloudflare Workers KV
Auth database Cloudflare D1
Business database Neon (Postgres), with forced row-level security
Search by meaning pgvector on Neon, with bge-m3 embeddings on Workers AI
Per-user state Cloudflare Durable Objects
Background work Cloudflare Queues
Durable jobs Cloudflare Workflows
Payments Stripe in test mode (step 20)
Target clients claude.ai and Claude Desktop (primary testing), plus ChatGPT

Getting started

Prerequisites

  • Node.js 24 or later (an LTS release) and npm
  • GitHub Desktop, signed in to your GitHub account. You'll use it to clone, commit, tag and push, beside Claude Code (which may also run git itself, with your approval). Install Git too, because Claude Code uses it.
  • Claude Desktop, signed in with a Pro plan or higher, which includes Claude Code and Claude projects. You'll work in a Claude project with your local folder added (see How we work).
  • A Cloudflare account
  • A Neon account
  • The same Claude account, to connect and test your servers in Claude Desktop and claude.ai
  • A ChatGPT account with developer mode on, to check your servers work there too

What it costs

  • Claude: Claude Code in Claude Desktop needs a paid Claude plan (Pro or higher).
  • ChatGPT: developer mode needs a paid ChatGPT plan that includes it.
  • Cloudflare and Neon: most steps fit the free plans. Each step links the product's pricing or limits page; check it before you upgrade, and set a spending alert if you do.
  • Workers AI: step 8's embeddings fit the daily free allowance for small documents.
  • Anthropic API: from step 17, the automated eval script calls the Claude API, which costs a little per run.
  • Stripe: test mode (step 20) is free.

[!TIP] Keep your AI costs low. Read the student guide Affordable Agentic AI Development. It covers free and low-cost options (Codex, OpenCode, direct model APIs and local models) and how to compare them before you pay.

How we work: local first, human in the loop

This bootcamp follows the way Panaversity's own team works: Claude does most of the work on your computer, and you decide what reaches GitHub.

  1. Clone your fork to your computer with GitHub Desktop (Set up below).
  2. Make a Claude project for the bootcamp. In the Claude app, create a project, add your local learn-mcp folder to it, and add your GitHub fork (<your-username>/learn-mcp) as its repository. A project has a coordinator you brief in its main chat, threads that do the work, and settings for its instructions, connectors, plugins and model (Projects redesigned, Anthropic). In the project's instructions, write: "Work in my local clone of learn-mcp. Read AGENTS.md first. Never commit or push: I review, commit and push in GitHub Desktop."
  3. Work in threads. Start a thread in the project for each step and paste the step's prompts into it. Claude edits the files in your local folder and runs commands on your computer after you approve them.
  4. You commit, not Claude. Read the changes, then commit, tag and push them yourself in GitHub Desktop. If you use a branch in your own fork, open its pull request in GitHub Desktop or on github.com, inside your fork only, never to the bootcamp repo. Nothing reaches GitHub until a person has read it: that is the human in the loop.
  5. Long jobs while your computer is off. Work in your local folder stops when your computer sleeps or the lid is closed. For a long-running task, start a cloud session on your GitHub fork instead. It runs on Anthropic's computers, and its work comes back to your fork as a branch that you review, pull and merge yourself. Plugins you installed in the app don't load in a cloud session, but the skills still work there, because the session runs on a copy of your fork, and the fork carries them in .claude/skills/. Start it as a cloud session on the fork itself, not as a thread of your project, because project threads don't load a repo's skills.

Good to know. Claude projects are in beta for Pro and Max subscribers and are still rolling out; if you don't have them yet, join the waitlist linked from Anthropic's Projects redesigned article. Anthropic's article doesn't give menu names, so the wording here describes the steps in general terms. Threads work directly on the local folder you add to the project, on your computer. (Anthropic's article was written when threads ran only in the cloud; local folders came after it.) Threads don't load the repo's bundled skills on their own (book lesson 12.8), so add them to your Claude account once, under Customize → Plugins or Customize → Skills (see Built-in skills). If you don't have projects yet, open your local learn-mcp folder in the Code tab of Claude Desktop instead. Everything else stays the same, including committing in GitHub Desktop.

Set up: fork, clone and sync

This bootcamp is also an assignment, and you do all your work in your own fork of this repo.

⛔ Do not open pull requests to this repository. Your work stays in your fork, and you submit through the submission form. Pull requests to panaversity/learn-mcp will be closed without review.

1. Fork the repo. Sign in to GitHub, open panaversity/learn-mcp, and click Fork (top right). Choose your own account as the owner, keep the name learn-mcp, and click Create fork.

2. Clone your fork (not the original). In GitHub Desktop, signed in to your GitHub account, choose File → Clone Repository, pick <your-username>/learn-mcp on the GitHub.com tab, choose where to save it, and click Clone. When GitHub Desktop asks how you plan to use this fork, choose For my own purposes, because you never send work back to the bootcamp repo.

3. Set up your Claude project. Create a project, add your cloned learn-mcp folder (the repo root, not a step folder) and your GitHub fork, and add the project instructions, as in How we work.

Prefer the terminal? Running claude in the repo root gives you a Claude Code session on the same folder, but this bootcamp's instructions assume a Claude project. Claude still doesn't commit.

4. Keep your fork in sync. New steps and fixes are added to the bootcamp over time. Before starting each step, click Sync fork → Update branch on your fork's GitHub page, then click Fetch origin and Pull origin in GitHub Desktop to bring the update to your computer.

To avoid merge conflicts, don't edit the bootcamp's own files (README.md, AGENTS.md, SUBMITTING.md, .claude/skills/, or the README.md in each step folder). Put your own notes in a NOTES.md inside the step folder.

5. Work, tag and submit. Build each step in its folder, deploy it to your own Cloudflare (and Neon) accounts, commit and tag it in GitHub Desktop (in History, right-click the commit, choose Create Tag… and name it step-01-done, then click Push origin), and submit it through the form. SUBMITTING.md has the full details: tagging, keeping secrets out of your public fork, and exactly what to submit for each step.

Built-in skills

The bootcamp's prompts use Anthropic's MCP server development skills:

  • build-mcp-server: the starting point. It helps you choose a deployment model and design your tools.
  • build-mcp-app: adds interactive UI (forms, pickers, dashboards) that renders in the chat.
  • build-mcpb: packages a local MCP server as an installable bundle.

They live in .claude/skills/. In the Code tab of Claude Desktop they load automatically when you open the repo root. A thread in a Claude project doesn't load a repo's skills (book lesson 12.8), so add them to your Claude account once.

Add the skills to your Claude account (so every thread has them):

  1. In Settings → Capabilities, make sure Code execution and file creation is on (in newer versions of the app it is called Create and edit files). Skills need it.
  2. Easiest: install the plugin. Open Customize → Plugins, find Anthropic's mcp-server-dev plugin on the Discover tab, and install it. Its three skills then appear under Customize → Skills, labelled with the plugin's name, and turn on and off with the plugin.
  3. Or upload them yourself. Zip each skill's folder from .claude/skills/ (for example build-mcp-server/). Then open Customize → Skills, click +, choose + Create skill, then Upload a skill, and upload the ZIP. Repeat for each skill, and turn each one on.

Then type / in a thread's prompt box: you should see build-mcp-server, build-mcp-app and build-mcpb. Anthropic's help pages: Use skills in Claude and Skills overview. Menu names are from those pages as of November 2026 and may change.

In a cloud session (for long jobs, How we work step 5), installed plugins don't load, but you don't need them: the session works on a copy of your fork, and the skills come with it from .claude/skills/.

Roadmap

Each step lives in its own numbered directory and builds on the one before it. Every step is currently under development: each folder has a README with the planned content, and the code is coming soon.

Start with Step 00: Are You Ready? Readiness Check, a short self-check of the skills every step assumes (Git and GitHub, the terminal, reading TypeScript, HTTP and JSON, SQL basics, secrets and working with Claude in a Claude project). If you pass its seven checks, you go straight to step 1.

Step Directory Topic Status
0 step-00-readiness-check/ Are you ready? Readiness check: seven short tests, with book sections for any you don't pass. Not graded 🚧 Under development
1 step-01-hello-world/ Hello world: a minimal remote MCP server on Cloudflare 🚧 Under development
2 step-02-tool-design/ Designing good tools 🚧 Under development
3 step-03-resources-and-prompts/ Resources and prompts: the other two MCP primitives, and when to use each instead of a tool 🚧 Under development
4 step-04-auth/ Adding authorization with Better Auth and D1: sign-in, companies (tenants) and roles 🚧 Under development
5 step-05-relational-databases/ Relational databases with Neon: the server connects to Neon, and you design its sales schema through the first three normal forms, with read-only tools over it 🚧 Under development
6 step-06-neon-production/ Production data tools on Neon: Hyperdrive, paginated and transactional tools, and row-level security 🚧 Under development
7 step-07-multi-tenancy/ Multi-tenant MCP servers and databases: isolation models, tenant context in every call, shared and dedicated databases, and cross-tenant tests 🚧 Under development
8 step-08-semantic-search-pgvector/ Search by meaning with pgvector: tenant-scoped retrieval on Neon, answers that cite or abstain, and a question set in CI 🚧 Under development
9 step-09-generative-ui-mcp-apps/ Generative UI with MCP Apps: fixed React widgets that tools return, with the model selecting which one to show 🚧 Under development
10 step-10-skills-over-mcp/ Skills over MCP: a shared playbook plus skills built for each company, served from your signed-in server 🚧 Under development
11 step-11-durable-objects/ Per-user state with Durable Objects: draft orders and rate limits that stay consistent 🚧 Under development
12 step-12-queues/ Background work with Queues: bulk imports processed in batches, with retries 🚧 Under development
13 step-13-cloudflare-workflows/ Durable jobs with Cloudflare Workflows: multi-step, retryable work that a tool starts and the model checks on 🚧 Under development
14 step-14-tasks/ Long-running work with Tasks 🚧 Under development
15 step-15-events/ Events 🚧 Under development
16 step-16-security-hardening/ Security hardening: threat model, token audience, least-privilege tools, elicitation confirmations, prompt injection, secrets and audit 🚧 Under development
17 step-17-testing-and-observability/ Testing, evals and observability: tests in the Workers runtime, a tool-selection eval set, logs and traces 🚧 Under development
18 step-18-deploy-and-test/ Deploying and testing on claude.ai, Claude Desktop and ChatGPT 🚧 Under development
19 step-19-generative-ui-dashboard/ Generative UI: an intent-driven dashboard, where the model composes a screen from approved widgets and fills it with Neon data 🚧 Under development
20 step-20-billing-and-distribution/ Billing and distribution: Stripe plans, usage limits on every call, and listing in Claude's and ChatGPT's directories 🚧 Under development
21 step-21-capstone-mcp-app/ Capstone: a complete, client-ready MCP app (Stockroom, or your own client) built from the bootcamp's core plus the extras the client needs 🚧 Under development

Milestones and pacing

The 21 steps fall into six milestones, after the step 00 readiness check (about an hour if you pass every check; if you don't, its reading takes 1 to 10 hours per check, see its study-time table). Times are rough estimates for a learner working with Claude Code, including reading the linked lessons. Steps 10, 14 and 15 are lighter, because they teach extensions that clients are still adopting (Claude now supports Tasks and, in beta, Skills over MCP, while Events is still rolling out); build them anyway, with the plain-tool fallback each step describes.

Milestone Steps Estimated time What you can do at the end
1. A remote MCP server 1 to 4 18 to 22 hours Ship a signed-in MCP server, with companies and roles, to Claude and ChatGPT
2. Multi-tenant business data and retrieval 5 to 8 28 to 36 hours Design a 3NF schema, force row-level security, serve many companies from shared and dedicated databases, and search their documents by meaning with citations
3. Screens and know-how 9 and 10 10 to 12 hours Return React widgets in the chat and ship skills with the server
4. State and long work 11 to 15 18 to 24 hours Handle drafts, rate limits, bulk imports, durable jobs, tasks and events, all tenant-scoped
5. Production 16 to 18 16 to 20 hours Harden, test, evaluate, observe and release the server safely
6. A product 19 to 21 35 to 50 hours Build an intent-driven dashboard, charge each company for it, and deliver a complete client app

The whole bootcamp is about 125 to 164 hours. You don't have to finish it to get value from it, so there are three completion levels:

Level Steps Estimated time You can show
Foundation 1 to 4 18 to 22 hours A signed-in remote MCP server with companies and roles, working in Claude and ChatGPT
Professional 1 to 10 56 to 70 hours A multi-tenant server with forced row-level security, cited search and MCP Apps widgets
Advanced 1 to 21 125 to 164 hours A production, billed, client-ready MCP app

Multi-tenancy runs through the whole bootcamp. Every user belongs to a company from step 4, every business row carries it in its keys from step 5, the database enforces it with forced row-level security from step 6, step 7 makes it the server's architecture, step 8 keeps search by meaning inside it, and from step 8 on every step's checklist includes a tenant-isolation check.

What this bootcamp practises for CCDV-F

The bootcamp is hands-on preparation, not a copy of the exam. Use the official CCDV-F exam guide as the source for the exam's own domains and weights, and use this map to find where you practised each skill. Direct rows are developer skills an exam about building with Claude is likely to cover. Supporting rows build the skills behind them. FDE rows are for client work, not the exam. Finishing the bootcamp does not by itself mean you are ready for the exam: check yourself against the official guide.

Skill Kind Steps
Building remote MCP servers and connecting them to Claude Direct 1, 18
Designing tools, resources and prompts the model uses well Direct 2, 3, 19
Securing a server: OAuth, roles, token audience, prompt injection Direct 4, 6, 16
Asking the user with elicitation before costly or irreversible actions Direct 14, 16, 20
Multi-tenant servers and databases, with row-level security Supporting 4 to 7, then every later step
Working with business data safely Supporting 5, 6, 7
Retrieval: search by meaning, citations, abstaining and measuring Direct 8
Interactive UI with MCP Apps Direct 9, 19
Skills, Tasks and Events extensions Supporting 10, 14, 15
Background and long-running work Supporting 11, 12, 13, 14
Testing, evals and observability Direct 8, 17, 18
Driving Claude Code to plan, build and review Direct every step
Turning a server into a product for clients FDE 20, 21

How each step works

Every step is hands-on: you read the linked book lessons, then build the step yourself, deploy it, and test it in Claude and ChatGPT. A step is done only when it works in a real client, not when you have read about it.

Every step is built with Claude in your bootcamp's Claude project (see How we work). Each step's README has a Build it with Claude Code section with numbered instructions and copy-paste prompts:

  1. Start a new thread for the step in your Claude project.
  2. Let Claude propose a plan before it writes code.
  3. Paste the prompts in order, and review what Claude proposes before approving it.
  4. Review the changes, then commit and push them yourself in GitHub Desktop. Claude never commits.
  5. Deploy and test in Claude and ChatGPT at the end of each step.
  6. At the end of each milestone, record a short project defence: a walkthrough of your own code and one tenant-isolation decision, in your own words (see SUBMITTING.md).

Each step's code lives in its own folder and starts from a copy of the previous step.

Static and generative UI in Claude and ChatGPT

We test everything in claude.ai and Claude Desktop, and we also make it work in ChatGPT. To stay portable, every UI we build ships as a standard MCP App: an HTML/JS app that the host renders in a sandboxed frame in the chat. We use the standard MCP Apps APIs (@modelcontextprotocol/ext-apps) rather than any client-specific API, so one server works in both clients.

We use the three kinds of screen from book lesson 20.10 Screens the AI designs:

Kind of screen What it means Where
Fixed We build each React widget ahead of time. The model selects one from the user's request and the tool fills it with data Step 9
Approved parts We build a library of small approved widgets. The model composes a screen from them, and the server checks every part and every field before it is shown Steps 19 and 21
Open The model writes its own HTML Not used, because it is hard to keep safe

Official documentation

The book teaches the ideas, and these official docs are the reference for the exact APIs. Each step's Learn first section also links the specific doc pages it needs.

MCP

Cloudflare (all docs)

Neon (all docs)

Better Auth (all docs)

License

MIT. See LICENSE.