Skip to content

feat: examples/ with hello, files, todo and fetch - #21

Merged
StevenCyb merged 5 commits into
mainfrom
feat/examples
Nov 17, 2026
Merged

StevenCyb merged 5 commits into
mainfrom
feat/examples

Conversation

@StevenCyb

Copy link
Copy Markdown
Owner

What / why

example/ becomes examples/: the existing tour moves to examples/features/ (history kept) and four small, copy-able servers are added, each its own module with a README and unit tests.

Layout

  • examples/README.md: index (what, how to run)
  • examples/features: every feature once (moved)
  • examples/hello: one tool
  • examples/files: read-only directory browser over stdio (FILES_ROOT), path traversal refused
  • examples/todo: JSON-file todo list (TODO_FILE), Setup/Teardown, prompt, resource
  • examples/fetch: fetch_url with allowlist (FETCH_ALLOW, empty denies), size limit, timeout

All references updated (e2e, parser and cmd tests, CI, READMEs, templates). The CI test job vets and tests every module under examples/.

Tested

gofmt, go vet, golangci-lint (0 issues), go test -race ./..., vet and test of every example module. New e2e/examples_test.go runs each new example over stdio (temp dir, temp file, httptest server).

🤖 Generated with Claude Code

StevenCyb and others added 5 commits November 17, 2026 10:01
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>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@StevenCyb
StevenCyb enabled auto-merge (squash) November 17, 2026 09:02
@StevenCyb
StevenCyb merged commit 8454544 into main Nov 17, 2026
11 checks passed
@StevenCyb
StevenCyb deleted the feat/examples branch November 17, 2026 09:05
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