This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-29 12:12:12 -05:00
1 parent fe3300bd65
commit d6cda4a04b
1 file changed
+2 -2
+2 -2
View File
@@ -1126,7 +1126,7 @@ async def set_terminal_servers(request: Request):
server_configs.append( server_configs.append(
{ {
'url': base_url, 'url': base_url,
'key': connection.get('key', ''), 'key': normalize_bearer_token(connection.get('key', '')),
'auth_type': connection.get('auth_type', 'bearer'), 'auth_type': connection.get('auth_type', 'bearer'),
'path': connection.get('path', '/openapi.json'), 'path': connection.get('path', '/openapi.json'),
'spec_type': 'url', 'spec_type': 'url',
@@ -1358,7 +1358,7 @@ async def get_tool_servers_data(servers: list[dict[str, Any]]) -> list[dict[str,
# Fetch from URL # Fetch from URL
task = get_tool_server_data( task = get_tool_server_data(
spec_url, spec_url,
bearer_auth_header(token) or None, {'Authorization': f'Bearer {token}'} if token else None,
) )
elif spec_type == 'json' and server.get('spec', ''): elif spec_type == 'json' and server.get('spec', ''):
# Use provided JSON spec # Use provided JSON spec