Skip to content

Commit c6639a6

Browse files
fix: apply changes to RefreshTokenRequest
1 parent 368c2a8 commit c6639a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/auth/handlers/token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RefreshTokenRequest(BaseModel):
3333
grant_type: Literal["refresh_token"]
3434
refresh_token: str = Field(..., description="The refresh token")
3535
scope: str | None = Field(None, description="Optional scope parameter")
36-
client_id: str
36+
client_id: str | None = Field(None, description="If none, client_id must be provided via basic auth header")
3737
# we use the client_secret param, per https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1
3838
client_secret: str | None = None
3939
# RFC 8707 resource indicator

0 commit comments

Comments
 (0)