MCP.OAuth2.Bridge (fnord v0.8.82)

View Source

Builds Authorization header for MCP transports. If token is near expiry, attempts a refresh via Client and persists.

Summary

Functions

authorization_header(server, cfg, opts \\ [])

@spec authorization_header(String.t(), map(), keyword()) ::
  {:ok, [{String.t(), String.t()}]} | {:error, term()}