A-Z on MCP
summary
Builds a vanilla MCP server with Express exposing one MCP endpoint, registers a single tool "buy stock" (symbol, quantity), then swaps to the MCP SDK version; tools execute server logic and return text. Adds resources (static portfolio and resource templates for dynamic URIs), a simple "morning report" prompt, and elicitation asking confirmation when quantity > 10 (structured form: confirmation yes/no/maybe, boolean opt‑out) which completes the tool call. Demonstrates MCP apps as HTML/JS rendered in a sandboxed iframe and shows WebMCP declarative and imperative tool wiring; live demo has intermittent network failures but core flows run.
AI-written summary · about
