Lab: The returns desk served and used over MCP
37 min read·13 Oct 2026
Module 4 · Lab · About 75 minutes · Needs: the Module 3 lab'stools.py, and lessons 1, 2 and 3 (hosts, clients and servers;build_server,whoand the in-memoryClient; pinned definitions and the allow-list)
What you are building
This lab puts Lesson 2's server and Lesson 3's host-side pins into the returns-desk/ repository. returns_desk/mcp_server.py serves Module 3's eight tools, the policy resource and the work_request prompt, with identity from the launcher or a verified token. returns_desk/mcp_client.py starts it over stdio, offers the model only tools matching Sam's pins, and stops at 12 steps. Tests pin the rules; then a real model works Aisha's R-1001 and Mei's R-1007 from a terminal command. Everything at BrightCart is simulated.