Skip to content

Commit 38ab2b5

Browse files
docs(rust): clarify OAuth client identity defaults
Document that external SDK users remain generic and isolated unless they explicitly provide a host client metadata URL, including on resume. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 716e07c8-226b-4a6f-beb0-877ccee1eb6e
1 parent dcb0d17 commit 38ab2b5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

rust/src/types.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,8 +1975,9 @@ pub struct SessionConfig {
19751975
/// URL identifying this host's OAuth client metadata document.
19761976
///
19771977
/// Authorization servers that support client ID metadata documents can use
1978-
/// this URL as the MCP OAuth client ID. Older runtimes ignore this optional
1979-
/// field.
1978+
/// this URL as the MCP OAuth client ID. When unset, the SDK does not supply
1979+
/// a first-party host identity and the runtime uses its generic,
1980+
/// session-isolated OAuth client behavior.
19801981
pub auth_client_id_metadata_url: Option<String>,
19811982
/// Enables runtime discovery of supported configuration. Explicitly supplied
19821983
/// configuration takes precedence over discovered values.
@@ -3317,6 +3318,9 @@ pub struct ResumeSessionConfig {
33173318
/// See [`SessionConfig::mcp_oauth_token_storage`] for details.
33183319
pub mcp_oauth_token_storage: Option<String>,
33193320
/// Re-supply the host OAuth client metadata document URL on resume.
3321+
///
3322+
/// Set this to the same host identity used when the session was created.
3323+
/// When unset, the SDK does not supply a first-party host identity.
33203324
/// See [`SessionConfig::auth_client_id_metadata_url`] for details.
33213325
pub auth_client_id_metadata_url: Option<String>,
33223326
/// Enables runtime discovery of supported configuration. Explicitly supplied

0 commit comments

Comments
 (0)