소스 검색

Fix incorrect mcp method_name (#22736)

tags/1.7.0
Will 3 달 전
부모
커밋
29f0a9ab94
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      api/core/mcp/mcp_client.py

+ 1
- 1
api/core/mcp/mcp_client.py 파일 보기

@@ -69,7 +69,7 @@ class MCPClient:

parsed_url = urlparse(self.server_url)
path = parsed_url.path or ""
method_name = path.removesuffix("/").lower()
method_name = path.rstrip("/").split("/")[-1] if path else ""
if method_name in connection_methods:
client_factory = connection_methods[method_name]
self.connect_server(client_factory, method_name)

Loading…
취소
저장