Skip to content

Commit c9e1834

Browse files
Chore: remove empty files and unused code (langgenius#23990)
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
1 parent 462ba8f commit c9e1834

5 files changed

Lines changed: 0 additions & 28 deletions

File tree

api/core/mcp/auth/auth_provider.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
from models.tools import MCPToolProvider
1111
from services.tools.mcp_tools_manage_service import MCPToolManageService
1212

13-
LATEST_PROTOCOL_VERSION = "1.0"
14-
1513

1614
class OAuthClientProvider:
1715
mcp_provider: MCPToolProvider

api/core/mcp/client/sse_client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ def __init__(self, exc: Exception):
3838
StatusQueue: TypeAlias = queue.Queue[_StatusReady | _StatusError]
3939

4040

41-
def remove_request_params(url: str) -> str:
42-
"""Remove request parameters from URL, keeping only the path."""
43-
return urljoin(url, urlparse(url).path)
44-
45-
4641
class SSETransport:
4742
"""SSE client transport implementation."""
4843

api/core/tools/entities/agent_entities.py

Whitespace-only changes.

api/core/tools/entities/file_entities.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/tests/unit_tests/core/mcp/client/test_sse.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -262,26 +262,6 @@ def test_sse_client_queue_cleanup():
262262
# Note: In real implementation, cleanup should put None to signal shutdown
263263

264264

265-
def test_sse_client_url_processing():
266-
"""Test SSE client URL processing functions."""
267-
from core.mcp.client.sse_client import remove_request_params
268-
269-
# Test URL with parameters
270-
url_with_params = "http://example.com/sse?param1=value1&param2=value2"
271-
cleaned_url = remove_request_params(url_with_params)
272-
assert cleaned_url == "http://example.com/sse"
273-
274-
# Test URL without parameters
275-
url_without_params = "http://example.com/sse"
276-
cleaned_url = remove_request_params(url_without_params)
277-
assert cleaned_url == "http://example.com/sse"
278-
279-
# Test URL with path and parameters
280-
complex_url = "http://example.com/path/to/sse?session=123&token=abc"
281-
cleaned_url = remove_request_params(complex_url)
282-
assert cleaned_url == "http://example.com/path/to/sse"
283-
284-
285265
def test_sse_client_headers_propagation():
286266
"""Test that custom headers are properly propagated in SSE client."""
287267
test_url = "http://test.example/sse"

0 commit comments

Comments
 (0)