Skip to content

Commit 1237148

Browse files
committed
Lint
1 parent 07f4e3a commit 1237148

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ async def handle(self, request: Request) -> Response:
7474
),
7575
status_code=400,
7676
)
77-
if set(client_metadata.grant_types) != set(
78-
["authorization_code", "refresh_token"]
79-
):
77+
if set(client_metadata.grant_types) != {"authorization_code", "refresh_token"}:
8078
return PydanticJSONResponse(
8179
content=RegistrationErrorResponse(
8280
error="invalid_client_metadata",

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,9 +1140,12 @@ def test_tool(x: int) -> str:
11401140
assert sse.event == "message"
11411141
sse_data = json.loads(sse.data)
11421142
assert sse_data["id"] == "123"
1143-
assert set(sse_data["result"]["capabilities"].keys()) == set(
1144-
("experimental", "prompts", "resources", "tools")
1145-
)
1143+
assert set(sse_data["result"]["capabilities"].keys()) == {
1144+
"experimental",
1145+
"prompts",
1146+
"resources",
1147+
"tools",
1148+
}
11461149
# the /sse endpoint will never finish; normally, the client could just
11471150
# disconnect, but in tests the easiest way to do this is to cancel the
11481151
# task group

0 commit comments

Comments
 (0)