Skip to content

Commit 037f052

Browse files
authored
Update grant_types to allow string values
1 parent 45a16a8 commit 037f052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/shared/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class OAuthClientMetadata(BaseModel):
4747
# ie: we do not support client_secret_basic
4848
token_endpoint_auth_method: Literal["none", "client_secret_post"] = "client_secret_post"
4949
# grant_types: this implementation only supports authorization_code & refresh_token
50-
grant_types: list[Literal["authorization_code", "refresh_token"]] = [
50+
grant_types: list[Union[Literal["authorization_code", "refresh_token"], str]] = [
5151
"authorization_code",
52-
"refresh_token",
52+
"refresh_token"
5353
]
5454
# this implementation only supports code; ie: it does not support implicit grants
5555
response_types: list[Literal["code"]] = ["code"]

0 commit comments

Comments
 (0)