Module 3 · Hands-on lab
Build a calculator with a coding agent and connect an MCP server
Direct a coding agent to build an Ontario mortgage payment and land transfer tax estimator, then let an AI app read your lab folder through an MCP server.
About 100 min
What you'll build
Two things, in one folder on your computer. First, you will direct a coding agent to build estimator.html: a one-page Ontario mortgage payment and land transfer tax estimator that opens in any browser. You will write nothing but the spec and the corrections. Second, you will connect an MCP server to an AI app so it can read that folder, summarize a file of fictional showing feedback, and ask your permission before it changes anything.
Before you start
Allow 90 to 120 minutes. Everything below has a free path as of October 2026; plans change, so glance at each pricing page first.
| You need | Free option | Paid option |
|---|---|---|
| A coding agent | Codex in the ChatGPT desktop app on the Free plan (light use, subject to rollout); Cursor's Free plan (limited agent requests); or Google Antigravity's free plan for individuals (weekly limits) | Claude Code (Claude Pro or higher) or any paid plan of the above |
| An MCP host | Claude Desktop on the Free plan, which lists connecting your apps and tools (step 11 has a fallback if Extensions isn't shown) | Same |
| A computer | Windows, macOS or Linux where you can install apps | Same |
If your brokerage laptop blocks app installs, use a personal computer. Do not use real client data anywhere in this lab. All the data you need is below.
Steps
Part A: build the estimator with a coding agent
- Create a folder on your desktop called
ai-cert-lab3. - Open your coding agent and point it at that folder. In the ChatGPT desktop app: sign in, open the
ai-cert-lab3folder when the app asks where to work, choose Codex rather than ChatGPT, and start a new chat. In Cursor or Antigravity: File, then Open Folder. In Claude Code: open a terminal in the folder and typeclaude. - Paste this spec as your first message, unchanged.
Please read this spec and reply with your plan only. Do not create or edit files yet.
Build ONE file, estimator.html, that works by double-clicking it. No sign-ups, no outside
services, no tracking, no scripts or fonts loaded from the internet.
PART 1 - Monthly mortgage payment
Inputs: purchase price ($), down payment ($), annual interest rate (%), amortization (years).
Mortgage amount = purchase price - down payment. Ignore mortgage default insurance.
Use semi-annual compounding, the usual Canadian convention for fixed-rate mortgages:
monthly rate i = (1 + annual rate / 2) ^ (1/6) - 1
payment = amount * i / (1 - (1 + i) ^ (-months))
Show the payment to the cent.
PART 2 - Ontario land transfer tax (provincial only; one or two single-family residences)
0.5% of the first $55,000
1.0% of the amount over $55,000 up to $250,000
1.5% of the amount over $250,000 up to $400,000
2.0% of the amount over $400,000 up to $2,000,000
2.5% of the amount over $2,000,000
Checkbox "First-time buyer": refund = the tax, up to a maximum of $4,000.
Show tax, refund and net tax.
DISPLAY
- Canadian dollar format, e.g. $1,234.56. Works on a phone. Plain, readable design.
- Under the results, always show: "Estimate only. Not financial, legal or tax advice.
Toronto adds a municipal land transfer tax. Confirm with your lawyer."
TEST CASES (mortgage amount = price minus down payment)
1. Mortgage $500,000, 5.00%, 25 years -> $2,908.02 a month
2. Mortgage $600,000, 4.50%, 30 years -> $3,025.29 a month
3. Price $400,000, not first-time -> tax $4,475.00, refund $0.00, net $4,475.00
4. Price $750,000, first-time -> tax $11,475.00, refund $4,000.00, net $7,475.00
5. Price $300,000, first-time -> tax $2,975.00, refund $2,975.00, net $0.00
6. Price $2,500,000, not first-time -> tax $48,975.00, refund $0.00, net $48,975.00
When you finish, list each test case with expected and actual results.
- Read the plan. If it mentions anything not in the spec (a login, an online library, saving data), reply "Remove that, follow the spec exactly." When the plan matches, reply: "Build Part 1 only, then stop."
- Review the changes. Your agent shows what it created or changed. Confirm it touched only
estimator.html. Ask: "Explain what you built in five plain bullets." - Double-click
estimator.htmlto open it in your browser. Enter test cases 1 and 2. If a result is off, paste the case and the wrong number back to the agent. - Reply: "Now build Part 2, then run all six test cases and show the table." Review the changes again.
- Check cases 3 to 6 yourself in the browser. Fix any mismatch the same way. Copy your final table of expected versus actual results.
Part B: connect an MCP server to Claude Desktop
- Save this fictional data as
showing-feedback.csvinai-cert-lab3(paste it into a plain text editor and save with that exact name).
date,listing,showing_brokerage,interest_1_to_5,positives,concerns,price_comment
2026-10-03,123 Example Street,Northshore Realty,4,Bright kitchen; big yard,Small main bathroom,About right
2026-10-03,123 Example Street,Harbourfront Homes,2,Quiet street,Basement ceiling height; no parking,High by 30K
2026-10-04,123 Example Street,Pinecrest Brokerage,5,Updated kitchen; school catchment,None noted,About right
2026-10-05,123 Example Street,Northshore Realty,3,Yard; natural light,Roof age; dated bathroom,High by 20K
2026-10-06,123 Example Street,Lakeview Partners,3,Location,Single bathroom for 3 bedrooms,High
2026-10-07,123 Example Street,Harbourfront Homes,4,Kitchen; storage,Street parking only,About right
2026-10-08,123 Example Street,Pinecrest Brokerage,2,Lot size,Bathroom; roof; parking,High by 40K
2026-10-09,123 Example Street,Lakeview Partners,4,Kitchen; yard; walk to transit,Bathroom size,About right
- Install Claude Desktop from claude.ai/download and sign in.
- Add the filesystem server. Easiest route: Settings, then Extensions, then Browse extensions. If a Filesystem extension is listed, click Install and, when asked which folders it may use, choose only
ai-cert-lab3. If none is listed, use the config route: install Node.js (LTS) from nodejs.org, then Settings, Developer, Edit Config, paste the block below with your own path, save, and fully quit and reopen Claude.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\yourname\\Desktop\\ai-cert-lab3"]
}
}
}
On a Mac the path looks like /Users/yourname/Desktop/ai-cert-lab3.
- Confirm it connected: click the + button in the message box, open Connectors, and check that the filesystem tools appear.
- Ask: "Using the filesystem tools, list the files in my lab folder. Read showing-feedback.csv and summarize feedback for 123 Example Street: average interest, the three most common positives, the three most common concerns, and what showing agents said about price. Then read estimator.html and explain in plain words what it calculates." Approve each read request after reading what it asks for.
- Ask: "Save that summary as feedback-summary.md in the same folder." Claude will ask to write a file. Approve it.
- Ask: "Move estimator.html into a new folder called archive." When the permission request appears, deny it. Note what Claude says next.
If you're comfortable with code
Ask your coding agent to add automated tests for the six cases that run with one command, and to explain how to run them. Then connect the same filesystem server to your coding agent's own MCP settings and compare how each host asks permission.
What to submit
Paste into the submission box: your final spec, the expected-versus-actual table for all six test cases, the summary Claude wrote from showing-feedback.csv, and three sentences on which tool calls you approved or denied and why.
Check your work
- All six cases match to the cent, and the disclaimer shows under the results.
- The coding agent changed only the files you expected, and you can say what each change did.
- The summary is grounded in the CSV: the average interest is 3.4 out of 5, and the bathroom, parking and roof concerns appear.
- The MCP server could reach only
ai-cert-lab3. - You denied the move request and can explain why approvals belong in the harness, not the prompt.
If you get stuck
- Results are off by a few dollars. The agent probably used monthly compounding. Paste the formula line from the spec back and ask it to use exactly that.
- The free plan's limit is reached. Wait for the limit to reset, or switch to another free agent from the table; your spec works in all of them.
- Filesystem tools do not appear in Claude. Check the JSON for a missing comma or quote, use the full path, then quit Claude completely (not just close the window) and reopen.
- "npx not found." Node.js is not installed or the computer needs a restart after installing it.
- Claude reads files outside the folder. It cannot if you set the path correctly. Remove the server and add it again with only
ai-cert-lab3.
Template · Markdown
Agent design canvas
A one-page plan for any agent: goal, users, triggers, tools with read and write permissions, data, human checkpoints, failure modes, logging, cost and success measures.
Submit your lab
Loading your lab status…