internal/mcp: construct README with weave

Use the weave program from golang.org/x/example to weave together
the README text with buildable programs. This ensures the code in the
README compiles.

Change-Id: Ib5e10c8f808cc6d1ed4addbee784607e910ba30b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/673796
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Jonathan Amsterdam 2025-05-17 21:25:14 -04:00
commit 715e9f1935

View file

@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
//go:generate go run generate.go
//go:generate ./internal/readme/build.sh
// The mcp package provides an SDK for writing model context protocol clients
// and servers.