From c36781b63e82da1d01baef67777e8a6a5be7c7b1 Mon Sep 17 00:00:00 2001 From: Gopal Bagaswar Date: Thu, 30 Apr 2026 07:43:15 +0530 Subject: [PATCH] docs(examples): index missing server and client examples in README Several runnable example files were not listed in the README index tables, leaving them undiscoverable through the canonical entry point: Server: - arktypeExample.ts (ArkType / Standard Schema) - valibotExample.ts (Valibot + @valibot/to-json-schema) - customProtocolVersion.ts (custom protocol-version fallback) Client: - simpleTokenProvider.ts (minimal AuthProvider) - dualModeAuth.ts (host-managed vs OAuth provider) - customMethodExample.ts (vendor-prefixed methods + progress) Adds one row per example to the existing tables. No code changes. Co-Authored-By: Claude Opus 4.7 (1M context) --- examples/client/README.md | 3 +++ examples/server/README.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/examples/client/README.md b/examples/client/README.md index 12a2b0d68b..8f0067a2b4 100644 --- a/examples/client/README.md +++ b/examples/client/README.md @@ -36,6 +36,9 @@ Most clients expect a server to be running. Start one from [`../server/README.md | Client credentials (M2M) | Machine-to-machine OAuth client credentials example. | [`src/simpleClientCredentials.ts`](src/simpleClientCredentials.ts) | | URL elicitation client | Drives URL-mode elicitation flows (sensitive input in a browser). | [`src/elicitationUrlExample.ts`](src/elicitationUrlExample.ts) | | Task interactive client | Demonstrates task-based execution + interactive server→client requests. | [`src/simpleTaskInteractiveClient.ts`](src/simpleTaskInteractiveClient.ts) | +| Bearer token provider | Minimal `AuthProvider` for pre-configured bearer tokens (gateway/proxy patterns). | [`src/simpleTokenProvider.ts`](src/simpleTokenProvider.ts) | +| Dual-mode auth | Same `authProvider` option used for host-managed tokens and full OAuth providers. | [`src/dualModeAuth.ts`](src/dualModeAuth.ts) | +| Custom (non-spec) method | Sends a vendor-prefixed `acme/search` request and receives custom progress notifications. | [`src/customMethodExample.ts`](src/customMethodExample.ts) | ## URL elicitation example (server + client) diff --git a/examples/server/README.md b/examples/server/README.md index 0f684bec7e..3fd36cf212 100644 --- a/examples/server/README.md +++ b/examples/server/README.md @@ -39,6 +39,9 @@ pnpm tsx src/simpleStreamableHttp.ts | Task interactive server | Task-based execution with interactive server→client requests. | [`src/simpleTaskInteractive.ts`](src/simpleTaskInteractive.ts) | | Hono Streamable HTTP server | Streamable HTTP server built with Hono instead of Express. | [`src/honoWebStandardStreamableHttp.ts`](src/honoWebStandardStreamableHttp.ts) | | SSE polling demo server | Legacy SSE server intended for polling demos. | [`src/ssePollingExample.ts`](src/ssePollingExample.ts) | +| ArkType schema validation | Minimal stdio server using ArkType (Standard Schema spec) for tool input schemas. | [`src/arktypeExample.ts`](src/arktypeExample.ts) | +| Valibot schema validation | Minimal stdio server using Valibot + `@valibot/to-json-schema` for tool input schemas. | [`src/valibotExample.ts`](src/valibotExample.ts) | +| Custom protocol version support | Supports protocol versions not yet shipped in the SDK; first in list is the fallback. | [`src/customProtocolVersion.ts`](src/customProtocolVersion.ts) | ## OAuth demo flags (Streamable HTTP server)