mcp-use 1.2.9__py3-none-any.whl → 1.2.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mcp-use might be problematic. Click here for more details.
- mcp_use/managers/tools/search_tools.py +12 -2
- {mcp_use-1.2.9.dist-info → mcp_use-1.2.10.dist-info}/METADATA +1 -1
- {mcp_use-1.2.9.dist-info → mcp_use-1.2.10.dist-info}/RECORD +5 -5
- {mcp_use-1.2.9.dist-info → mcp_use-1.2.10.dist-info}/WHEEL +0 -0
- {mcp_use-1.2.9.dist-info → mcp_use-1.2.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,7 +3,6 @@ import time
|
|
|
3
3
|
from typing import ClassVar
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
|
-
from fastembed import TextEmbedding
|
|
7
6
|
from langchain_core.tools import BaseTool
|
|
8
7
|
from pydantic import BaseModel, Field
|
|
9
8
|
|
|
@@ -114,11 +113,22 @@ class ToolSearchEngine:
|
|
|
114
113
|
if self.model is not None:
|
|
115
114
|
return True
|
|
116
115
|
|
|
116
|
+
try:
|
|
117
|
+
from fastembed import TextEmbedding # optional dependency install with [search]
|
|
118
|
+
except ImportError:
|
|
119
|
+
logger.error(
|
|
120
|
+
"The 'fastembed' library is not installed. "
|
|
121
|
+
"To use the search functionality, please install it by running: "
|
|
122
|
+
"pip install mcp-use[search]"
|
|
123
|
+
)
|
|
124
|
+
return False
|
|
125
|
+
|
|
117
126
|
try:
|
|
118
127
|
self.model = TextEmbedding(model_name="BAAI/bge-small-en-v1.5")
|
|
119
128
|
self.embedding_function = lambda texts: list(self.model.embed(texts))
|
|
120
129
|
return True
|
|
121
|
-
except Exception:
|
|
130
|
+
except Exception as e:
|
|
131
|
+
logger.error(f"Failed to load the embedding model: {e}")
|
|
122
132
|
return False
|
|
123
133
|
|
|
124
134
|
async def start_indexing(self) -> None:
|
|
@@ -24,14 +24,14 @@ mcp_use/managers/tools/connect_server.py,sha256=MGYQCl11q-w6gSIYuT44dDk7ILV3Oh7k
|
|
|
24
24
|
mcp_use/managers/tools/disconnect_server.py,sha256=4487QlLbXAh9JyfGioc6DMWd0n_dkaa8RLMvsoNZv3E,1602
|
|
25
25
|
mcp_use/managers/tools/get_active_server.py,sha256=LRcHbKZopMl1PiO4D4JS4s0fwtrvtMtvb4kpnoAE8fQ,1015
|
|
26
26
|
mcp_use/managers/tools/list_servers_tool.py,sha256=OPDSMNe-VuAhlUyhDnR4CiuZFpoMhnhWpAablwO5S0k,1897
|
|
27
|
-
mcp_use/managers/tools/search_tools.py,sha256=
|
|
27
|
+
mcp_use/managers/tools/search_tools.py,sha256=sT2fe66IyOeASTGjdTsjyzSpqkIGKLVXBF8wXUtWXd4,12055
|
|
28
28
|
mcp_use/managers/tools/use_tool.py,sha256=r7k7uMYzrk353qw7M5h1utu_IR2G85uMZkrNcg2RyZA,6824
|
|
29
29
|
mcp_use/task_managers/__init__.py,sha256=4dgW5N61iiPLpwjU2rrn_uqrL8mmDJFDaF9Lukzk65A,486
|
|
30
30
|
mcp_use/task_managers/base.py,sha256=ksNdxTwq8N-zqymxVoKGnWXq9iqkLYC61uB91o6Mh-4,4888
|
|
31
31
|
mcp_use/task_managers/sse.py,sha256=WysmjwqRI3meXMZY_F4y9tSBMvSiUZfTJQfitM5l6jQ,2529
|
|
32
32
|
mcp_use/task_managers/stdio.py,sha256=DEISpXv4mo3d5a-WT8lkWbrXJwUh7QW0nMT_IM3fHGg,2269
|
|
33
33
|
mcp_use/task_managers/websocket.py,sha256=ZbCqdGgzCRtsXzRGFws-f2OzH8cPAkN4sJNDwEpRmCc,1915
|
|
34
|
-
mcp_use-1.2.
|
|
35
|
-
mcp_use-1.2.
|
|
36
|
-
mcp_use-1.2.
|
|
37
|
-
mcp_use-1.2.
|
|
34
|
+
mcp_use-1.2.10.dist-info/METADATA,sha256=WnpB7b1j-Py3BtKajWprmb6PLf89JxtWdCsTuquAuis,20199
|
|
35
|
+
mcp_use-1.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
36
|
+
mcp_use-1.2.10.dist-info/licenses/LICENSE,sha256=7Pw7dbwJSBw8zH-WE03JnR5uXvitRtaGTP9QWPcexcs,1068
|
|
37
|
+
mcp_use-1.2.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|