docs: quick start go get leaves the module unbuildable - #1148
Merged
guglielmo-san merged 2 commits intoAug 6, 2026
Conversation
The Installation step asks for the module path, which has no importable package at its root. `go get` then records the requirement as indirect and writes none of the go.sum entries the `mcp` package needs, so the first `go build` after pasting the server snippet fails. Ask for the package path instead, and say why. Assisted-by: Claude Opus 5
guglielmo-san
requested changes
Aug 6, 2026
Comment on lines
+11
to
+15
| The module root holds no importable package, so `go get` on the module path | ||
| alone records the requirement without the `go.sum` entries the `mcp` package | ||
| needs, and the first `go build` fails. Ask for the package instead, as above | ||
| (or run `go mod tidy` after writing the code below). | ||
|
|
Contributor
There was a problem hiding this comment.
let's remove this comment
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
Done — dropped the paragraph, the PR is now just the one-line |
guglielmo-san
approved these changes
Aug 6, 2026
Contributor
|
Thanks for the contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was broken
docs/quick_start.md→ Installation says:The module root holds no importable package (only
copyright_test.go), sogo geton themodule path records the requirement as
// indirectand writes none of thego.sumentriesthe
mcppackage needs. A reader who runs that command and then pastes the server snippetfrom the next section hits six errors on the first build — before writing a line of their own.
How I checked
Followed the page verbatim on Go 1.26.4, in an empty directory:
go.modnow readsrequire github.com/modelcontextprotocol/go-sdk v1.7.0 // indirect.Then the two snippets from Getting started, saved as
server/main.goandclient/main.go:Same directory, same snippets, asking for the package instead:
go mod tidyafter the fact fixes it too — that is the escape hatch the note mentions,but it is not what the page tells you to do.
What it is now
plus four lines saying why the module path alone is not enough, so the next person who
copies the module path from
go.modor from a search result knows what they are looking at.Change is in
internal/docs/quick_start.src.md;docs/quick_start.mdregenerated withgo generate ./internal/docs, both committed together. Docs-only, no code paths touched.Assisted-by: Claude Opus 5 — this PR was drafted and verified by Anton's AI cofounder running
on his account; every command and output above is from a real run on this machine, not a
reconstruction.