Skip to content

Examples

All examples live in examples/ and run with npx tsx.

ExampleWhat it shows
stdio-serverMinimal server with two tools — start here
client-usageDeltaClient connect, progressive disclosure, on-demand schema fetch
result-handlerTruncation, pagination, object summarization, rate-limit handling
filesystem-serverReal-world server: read/write/list/search files, path sandbox
pagination1 000-record server, 6 pagination patterns including auto-fetch-all
http-oauth-serverHTTP + OAuth 2.1 resource-server, RS256, curl walkthrough