Skip to content

Commit 52a7fda

Browse files
AnkeshThakurmaxisbey
authored andcommitted
fix: Token endpoint response for invalid_client
1 parent 2aa1ad2 commit 52a7fda

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
@@ -97,7 +97,7 @@ async def handle(self, request: Request):
9797
# Authentication failures should return 401
9898
return PydanticJSONResponse(
9999
content=TokenErrorResponse(
100-
error="unauthorized_client",
100+
error="invalid_client",
101101
error_description=e.message,
102102
),
103103
status_code=401,

0 commit comments

Comments
 (0)