go-sdk/examples/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Max Gerber 2d47cc9664
auth: issuer mix-up mitigation (#859)
This PR functions as a Reference implementation of
[SEP-2468](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2468)
/ [RFC9207](https://datatracker.ietf.org/doc/rfc9207/).

This PR hardens the MCP OAuth Client functionality against Mix-Up
attacks:
>   Mix-up attacks aim to steal an authorization code or access token by
>   tricking the client into sending the authorization code or access
> token to the attacker instead of the honest authorization or resource
>   server

This PR hardens the client by adding support for a new `iss` parameter
in authorization responses:
- Authorization Servers broadcast support for the `iss` parameter via
the `authorization_response_iss_parameter_supported` metadata parameter
- If the parameter is supported, clients expect to receive the `iss`
parameter in the authorization response
- Clients compare the `iss` parameter in the authorization response to
the `Issuer` parameter in the authorization metadata. The two must match
exactly for the response to be processed.

Fixes #941
2026-05-27 11:39:08 +02:00
..
auth-middleware auth: issuer mix-up mitigation (#859) 2026-05-27 11:39:08 +02: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
custom-transport all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
distributed all: modernize code (#868) 2026-03-31 10:58:02 +02:00
elicitation mcp/examples: move elicitation example into example folder (#354) 2025-08-22 11:01:48 -04:00
everything mcp: switch icon theme to named string type (#733) 2025-12-19 16:44:10 -05:00
hello examples: add an everything example, and simplify hello 2025-08-22 14:00:37 -04:00
memory all: fix typos (#869) 2026-03-30 18:43:01 +02:00
middleware examples/server/middleware: log tool result (#400) 2025-09-03 11:34:02 -04:00
proxy examples: add an example that display header forwarding. (#836) 2026-03-10 10:57:55 +01:00
rate-limiting auth: issuer mix-up mitigation (#859) 2026-05-27 11:39:08 +02:00
sequentialthinking mcp: use rand.Text and slog.DiscardHandler over internal implementation (#773) 2026-02-03 14:23:59 +01:00
sse SSE: Add support for SSE handler options (#508) 2025-09-19 13:01:57 -04:00
toolschemas all: fix typos (#869) 2026-03-30 18:43:01 +02:00