quickstart-resources/mcp-client-go
Repository files (latest commit first)
Filename Latest commit message Latest commit date
olaservo bf55c99d3f Update to go-sdk v1.7.0 and drop two committed binaries
v1.7.0 shipped on 2026-07-27, so the pin moves off v1.7.0-pre.3.

Removes mcp-client-go.exe and weather-server-go/weather.exe, which were
committed by accident in the previous commit — 14MB of build output that
should never have been in the tree. The tests branch adds the ignore rules
that keep them out.

Also from review: the server README claimed both tools set an OutputSchema.
Only get_alerts does; get_forecast relies on inference from the handler
return type, which is the idiomatic spelling and worth saying so.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 15:36:33 -07:00
..
.env.example Add mcp-client-go 2025-10-29 01:02:56 +08:00
go.mod Update to go-sdk v1.7.0 and drop two committed binaries 2026-08-09 15:36:33 -07:00
go.sum Update to go-sdk v1.7.0 and drop two committed binaries 2026-08-09 15:36:33 -07:00
main.go Add structured output to the Go weather server and client 2026-08-09 15:36:32 -07:00
README.md Add structured output to the Go weather server and client 2026-08-09 15:36:32 -07:00

An LLM-Powered Chatbot MCP Client written in Go

See the Build an MCP client tutorial for more information.

Structured output

The SDK does not validate tool output, so this client compiles each declared outputSchema at connect time and checks results against it — the spec's client-side SHOULD. It uses jsonschema-go, already an SDK dependency.

The two channels go to different readers: Content is forwarded to the model, while StructuredContent is used as data — the client counts the items it returns. See Structured Content.