Skip to content

feat: gomcp init scaffolds a new project - #19

Merged
StevenCyb merged 3 commits into
mainfrom
feat/init
Nov 17, 2026
Merged

StevenCyb merged 3 commits into
mainfrom
feat/init

Conversation

@StevenCyb

Copy link
Copy Markdown
Owner

What

gomcp init <dir> writes go.mod, a commented api.go (@MCP.Server, @MCP.Instructions, tool hello), .gitignore and README.md, then runs go get github.com/StevenCyb/GoMCP@<gomcp version> (@latest for dev builds) and go mod tidy.

Flags: --module (default example.com/), --no-get. Refuses a non-empty directory. If go get fails the files stay and the error says what to run.

How tested

  • internal/scaffold unit tests: substitution, invalid names/modules, non-empty dir, go-get failure, go version equals repo go.mod.
  • Scaffold generated with --no-get, replace to repo root, parsed, generated and built via runner.Build (offline), exposes tool hello.
  • cmd/gomcp fake-action tests. gofmt, vet, golangci-lint 0 issues, go test -race green.

🤖 Generated with Claude Code

StevenCyb and others added 3 commits November 17, 2026 08:29
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@StevenCyb
StevenCyb merged commit ee27881 into main Nov 17, 2026
11 checks passed
@StevenCyb
StevenCyb deleted the feat/init branch November 17, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant