1919 MCPConfigUpdateRequest ,
2020 MCPServerConfig ,
2121 MCPServerConfigHTTPOauthGrantType ,
22- MCPServerConfigType ,
22+ MCPServerConfigHTTPType ,
2323)
2424
2525from .testharness import E2ETestContext
@@ -71,7 +71,7 @@ async def test_should_round_trip_http_mcp_oauth_config_rpc(self, ctx: E2ETestCon
7171
7272 server_name = f"sdk-http-oauth-{ uuid .uuid4 ().hex } "
7373 config = MCPServerConfig (
74- type = MCPServerConfigType .HTTP ,
74+ type = MCPServerConfigHTTPType .HTTP ,
7575 url = "https://example.com/mcp" ,
7676 headers = {"Authorization" : "Bearer token" },
7777 oauth_client_id = "client-id" ,
@@ -81,7 +81,7 @@ async def test_should_round_trip_http_mcp_oauth_config_rpc(self, ctx: E2ETestCon
8181 timeout = 3000 ,
8282 )
8383 updated_config = MCPServerConfig (
84- type = MCPServerConfigType .HTTP ,
84+ type = MCPServerConfigHTTPType .HTTP ,
8585 url = "https://example.com/updated-mcp" ,
8686 oauth_client_id = "updated-client-id" ,
8787 oauth_public_client = True ,
@@ -96,7 +96,7 @@ async def test_should_round_trip_http_mcp_oauth_config_rpc(self, ctx: E2ETestCon
9696 )
9797 after_add = await ctx .client .rpc .mcp .config .list ()
9898 added = _server_config (after_add .servers , server_name )
99- assert added .type == MCPServerConfigType .HTTP
99+ assert added .type == MCPServerConfigHTTPType .HTTP
100100 assert added .url == "https://example.com/mcp"
101101 assert added .headers is not None
102102 assert added .headers ["Authorization" ] == "Bearer token"
0 commit comments