Skip to content

Commit dbf21ef

Browse files
authored
chore: copy change for warning message for oauth redirect page (#2931)
1 parent 515b4df commit dbf21ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/chat-cli/src/mcp_client/oauth_util.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@ async fn make_svc(
373373
let error = params.get("error");
374374
let resp = if let Some(err) = error {
375375
mk_response(format!(
376-
"Oauth failed. Check url for precise reasons. Possible reasons: {err}.\nIf this is scope related. You can try configuring the server scopes to be an empty array via adding oauth_scopes: []"
376+
"OAuth failed. Check URL for precise reasons. Possible reasons: {}.\n\
377+
If this is scope related, you can try configuring the server scopes \n\
378+
to be an empty array by adding \"oauthScopes\": [] to your server config.\n\
379+
Example: {{\"type\": \"http\", \"uri\": \"https://example.com/mcp\", \"oauthScopes\": []}}\n",
380+
err
377381
))
378382
} else {
379383
mk_response("You can close this page now".to_string())

0 commit comments

Comments
 (0)