Build a Safe MCP Server in TypeScript: Tools, Validation, and Transports

Build and test a real MCP stdio server, then make the transport, validation, error, and authorization decisions required for a remote deployment.