Skip to content

Commit 2a66e6d

Browse files
committed
fix: add invalid_target to AuthorizationErrorCode per RFC 8707 §2
RFC 8707 defines invalid_target as the OAuth 2.0 error code for resource-indicator mismatches. The Python SDK AuthorizationErrorCode Literal was missing this value, causing pydantic ValidationError. Closes #2641
1 parent 616476f commit 2a66e6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mcp/server/auth/provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class RegistrationError(Exception):
6868
"invalid_scope",
6969
"server_error",
7070
"temporarily_unavailable",
71+
"invalid_target", # RFC 8707 §2
7172
]
7273

7374

0 commit comments

Comments
 (0)