Documentation
¶
Overview ¶
Copyright 2026 The Go MCP SDK Authors. All rights reserved. Use of this source code is governed by the license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPKCESupport ¶
CheckPKCESupport returns an error unless methods, the code_challenge_methods_supported of the authorization server at issuer, includes S256, the PKCE method that the SDK's authorization code flows use. The MCP authorization spec requires a client to refuse an authorization server that does not advertise PKCE before starting such a flow.
func IssuersEqual ¶
IssuersEqual reports whether two OAuth 2.0 authorization server issuer identifiers refer to the same server comparing them without the final trailing slash.
func ScopesFromToken ¶
ScopesFromToken extracts the granted scopes from an OAuth2 token response. Per RFC 6749 §5.1, the scope parameter is optional; returns nil if absent. An empty scope names no scope-token, so it is treated as absent too: callers take nil to mean the requested scopes were granted.
func UnionScopes ¶
UnionScopes returns the union of the existing and challenged scope sets. It is used during step-up authorization to accumulate scopes across authorization rounds (SEP-2350).
Types ¶
This section is empty.