Skip to main content
HS
HiSETSuccess
LeetCode Prep

Agent Engineering

From autocomplete user to superstar developer — coding agents, context, skills, MCP, hooks, spec-driven and parallel workflows, and building your own agents.

Lab · Intermediate · 90 min

Build an MCP Server Whose Idle Schema Stays Small

Wrap an internal API as an MCP server with three well-designed tools instead of fifteen thin ones, measure the idle token cost, and connect it to two clients.

Cursor · Claude Code · OpenAI Codex · LangChain / LangGraph

Show all 4 steps

Step 1 of 4

Lab brief

Goal

A stdio MCP server with ≤ 3 tools, compact schemas, paginated results, isError handling, and a measured idle schema size.

Failure mode

Auto-generated server exposes every REST endpoint as a tool; the agent burns thousands of tokens on schemas and keeps picking the wrong list_* call.

Staff move

Design tools around user intents, not endpoints; measure the schema cost; and allowlist tools per client.