Documentation
¶
Overview ¶
A calculator MCP server showing typed tools: the input schema (with enum and required constraints) is inferred from the Go struct, arguments are validated against it before the handler runs, and the output schema is derived from the return type.
Run: go run ./examples/calculator
Click to show internal directories.
Click to hide internal directories.