fix: advertise no wildcard set scope, note the set URL takes no external issuer token

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-11-13 17:36:12 +01:00
co-authored by Claude Opus 5.5
parent e7bce3860f
commit 3ee1b3be77
2 changed files with 4 additions and 10 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -9
View File
@@ -250,17 +250,11 @@ fn granting_scopes() -> Vec<String> {
.to_vec()
}
/// No `mcp:set:` scope: a client that requests every listed scope would ask for a set by that
/// literal name. A set's URL advertises its own.
fn supported_scopes() -> Vec<String> {
let mut scopes = granting_scopes();
scopes.extend(
[
"mcp:read_only",
"mcp:read_run",
"mcp:runnables_as_tools",
"mcp:set:*",
]
.map(String::from),
);
scopes.extend(["mcp:read_only", "mcp:read_run", "mcp:runnables_as_tools"].map(String::from));
scopes
}