go-sdk/examples/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eliya Sadan d6d6edd6d4
auth: add OAuth 2.0 Protected Resource Metadata handler
This change adds support for RFC 9728 (OAuth 2.0 Protected Resource Metadata)
by introducing a `ProtectedResourceMetadataHandler`.

The handler includes built-in CORS support with `Access-Control-Allow-Origin: *`
by default, as OAuth metadata is public information meant for client discovery.

Documentation includes examples for using custom CORS policies with
popular middleware libraries (github.com/rs/cors and github.com/jub0bs/cors).

The implementation follows RFC 9728 §3.1 for OAuth 2.0 Authorization Server
Metadata discovery, enabling clients to discover protected resource capabilities
and authentication requirements.
2025-12-08 14:54:52 -05:00
..
auth-middleware auth: add OAuth 2.0 Protected Resource Metadata handler 2025-12-08 14:54:52 -05:00
basic mcp/examples: move server example into example folder (#357) 2025-08-26 09:13:30 -04:00
completion docs: document completion support (#495) 2025-09-18 14:27:35 -04:00
conformance examples: add a server for conformance testing (#681) 2025-12-08 10:32:21 -05:00
custom-transport all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
distributed mcp: set default logging level to info (#411) 2025-09-04 11:10:39 -04:00
elicitation mcp/examples: move elicitation example into example folder (#354) 2025-08-22 11:01:48 -04:00
everything mcp: support url mode elicitation (#646) 2025-11-23 12:58:28 -05:00
hello examples: add an everything example, and simplify hello 2025-08-22 14:00:37 -04:00
memory examples/server/memory: fix misleading code (#369) 2025-08-25 16:48:10 -04:00
middleware examples/server/middleware: log tool result (#400) 2025-09-03 11:34:02 -04:00
rate-limiting mcp: update to jsonschema that does not validate structs (#511) 2025-09-22 15:28:04 -04:00
sequentialthinking all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
sse SSE: Add support for SSE handler options (#508) 2025-09-19 13:01:57 -04:00
toolschemas mcp: allow any value for schemas (#517) 2025-09-26 11:55:54 -04:00