langchain-mcp-tools 0.0.11__py3-none-any.whl → 0.0.13__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.
- langchain_mcp_tools/langchain_mcp_tools.py +5 -3
- {langchain_mcp_tools-0.0.11.dist-info → langchain_mcp_tools-0.0.13.dist-info}/METADATA +10 -6
- langchain_mcp_tools-0.0.13.dist-info/RECORD +8 -0
- langchain_mcp_tools-0.0.11.dist-info/RECORD +0 -8
- {langchain_mcp_tools-0.0.11.dist-info → langchain_mcp_tools-0.0.13.dist-info}/LICENSE +0 -0
- {langchain_mcp_tools-0.0.11.dist-info → langchain_mcp_tools-0.0.13.dist-info}/WHEEL +0 -0
- {langchain_mcp_tools-0.0.11.dist-info → langchain_mcp_tools-0.0.13.dist-info}/top_level.txt +0 -0
@@ -38,11 +38,13 @@ The key aspects are:
|
|
38
38
|
|
39
39
|
1. Core Challenge:
|
40
40
|
- Async resources management for `stdio_client` and `ClientSession` seems
|
41
|
-
to
|
42
|
-
|
41
|
+
to require relying exclusively on `asynccontextmanager` for cleanup,
|
42
|
+
with no manual cleanup options
|
43
|
+
(based on [the mcp python-sdk impl as of Jan 14, 2025](https://github.com/modelcontextprotocol/python-sdk/tree/99727a9/src/mcp/client))
|
43
44
|
- Initializing multiple MCP servers in parallel requires a dedicated
|
44
45
|
`asyncio.Task` per server
|
45
|
-
- Necessity of keeping sessions alive for later use
|
46
|
+
- Necessity of keeping sessions alive for later use by different tasks
|
47
|
+
after initialization
|
46
48
|
- Ensuring proper cleanup later in the same task that created them
|
47
49
|
|
48
50
|
2. Solution Strategy:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: langchain-mcp-tools
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.13
|
4
4
|
Summary: Model Context Protocol (MCP) To LangChain Tools Conversion Utility
|
5
5
|
Project-URL: Bug Tracker, https://github.com/hideya/langchain-mcp-tools-py/issues
|
6
6
|
Project-URL: Source Code, https://github.com/hideya/langchain-mcp-tools-py
|
@@ -29,7 +29,7 @@ This package is intended to simplify the use of
|
|
29
29
|
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/)
|
30
30
|
server tools with LangChain / Python.
|
31
31
|
|
32
|
-
It contains a utility function `
|
32
|
+
It contains a utility function `convert_mcp_to_langchain_tools()`.
|
33
33
|
This function handles parallel initialization of specified multiple MCP servers
|
34
34
|
and converts their available tools into a list of
|
35
35
|
[LangChain-compatible tools](https://js.langchain.com/docs/how_to/tool_calling/).
|
@@ -112,17 +112,21 @@ to work successfully...
|
|
112
112
|
|
113
113
|
I'm new to Python, so it is very possible that my ignorance is playing
|
114
114
|
a big role here...
|
115
|
-
I'll summarize the difficulties I faced below.
|
115
|
+
I'll summarize the difficulties I faced below.
|
116
|
+
The source code is available
|
117
|
+
[here](https://github.com/hideya/langchain-mcp-tools-py/blob/main/langchain_mcp_tools/langchain_mcp_tools.py).
|
116
118
|
Any comments pointing out something I am missing would be greatly appreciated!
|
117
119
|
[(comment here)](https://github.com/hideya/langchain-mcp-tools-ts/issues)
|
118
120
|
|
119
121
|
1. Core Challenge:
|
120
122
|
- Async resources management for `stdio_client` and `ClientSession` seems
|
121
|
-
to
|
122
|
-
|
123
|
+
to require relying exclusively on `asynccontextmanager` for cleanup,
|
124
|
+
with no manual cleanup options
|
125
|
+
(based on [the mcp python-sdk impl as of Jan 14, 2025](https://github.com/modelcontextprotocol/python-sdk/tree/99727a9/src/mcp/client))
|
123
126
|
- Initializing multiple MCP servers in parallel requires a dedicated
|
124
127
|
`asyncio.Task` per server
|
125
|
-
- Necessity of keeping sessions alive for later use
|
128
|
+
- Necessity of keeping sessions alive for later use by different tasks
|
129
|
+
after initialization
|
126
130
|
- Ensuring proper cleanup later in the same task that created them
|
127
131
|
|
128
132
|
2. Solution Strategy:
|
@@ -0,0 +1,8 @@
|
|
1
|
+
langchain_mcp_tools/__init__.py,sha256=Xtv2VphhrWB_KlxTIofHZqtCIGtNEl0MxugnrNXTERA,94
|
2
|
+
langchain_mcp_tools/langchain_mcp_tools.py,sha256=5OKa6xeS54vB-mqH1BTZSB6E8Ykh5Cfu9rXqfCqESOg,10558
|
3
|
+
langchain_mcp_tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
langchain_mcp_tools-0.0.13.dist-info/LICENSE,sha256=CRC91e8v116gCpnp7h49oIa6_zjhxqnHFTREeoZFJwA,1072
|
5
|
+
langchain_mcp_tools-0.0.13.dist-info/METADATA,sha256=tJx9mGu94T09xAYPSCB14V1cIp7w31cM1ndNbUev1vQ,6959
|
6
|
+
langchain_mcp_tools-0.0.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
+
langchain_mcp_tools-0.0.13.dist-info/top_level.txt,sha256=aR_9V2A1Yt-Bca60KmndmGLUWb2wiM5IOG-Gkaf1dxY,20
|
8
|
+
langchain_mcp_tools-0.0.13.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
langchain_mcp_tools/__init__.py,sha256=Xtv2VphhrWB_KlxTIofHZqtCIGtNEl0MxugnrNXTERA,94
|
2
|
-
langchain_mcp_tools/langchain_mcp_tools.py,sha256=3ADNzNpNXg8mhg9d6L4_6xMvz7QtG56yul61PZAnyZ0,10435
|
3
|
-
langchain_mcp_tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
langchain_mcp_tools-0.0.11.dist-info/LICENSE,sha256=CRC91e8v116gCpnp7h49oIa6_zjhxqnHFTREeoZFJwA,1072
|
5
|
-
langchain_mcp_tools-0.0.11.dist-info/METADATA,sha256=oYa-O73DRNQr9NFhM4hGptdChdVdI0KyPZ-FlBQTRaY,6692
|
6
|
-
langchain_mcp_tools-0.0.11.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
-
langchain_mcp_tools-0.0.11.dist-info/top_level.txt,sha256=aR_9V2A1Yt-Bca60KmndmGLUWb2wiM5IOG-Gkaf1dxY,20
|
8
|
-
langchain_mcp_tools-0.0.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|