langchain-mcp-tools 0.0.16__tar.gz → 0.0.17__tar.gz
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-0.0.16 → langchain_mcp_tools-0.0.17}/PKG-INFO +9 -7
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/README.md +8 -6
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools/langchain_mcp_tools.py +3 -2
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/PKG-INFO +9 -7
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/top_level.txt +0 -1
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/pyproject.toml +1 -1
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/LICENSE +0 -0
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools/__init__.py +0 -0
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools/py.typed +0 -0
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/SOURCES.txt +0 -0
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/dependency_links.txt +0 -0
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/requires.txt +0 -0
- {langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: langchain-mcp-tools
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.17
|
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
|
@@ -70,11 +70,12 @@ and is expressed as a `dict`, e.g.:
|
|
70
70
|
)
|
71
71
|
```
|
72
72
|
|
73
|
-
|
74
|
-
and returns LangChain Tools
|
75
|
-
|
76
|
-
|
77
|
-
|
73
|
+
This utility function initializes all specified MCP servers in parallel,
|
74
|
+
and returns [LangChain Tools](https://python.langchain.com/api_reference/core/tools.html)
|
75
|
+
(`tools: List[BaseTool]`)
|
76
|
+
by gathering available MCP tools from the servers,
|
77
|
+
and by wrapping them into LangChain tools.
|
78
|
+
It also returns an async callback function (`cleanup: McpServerCleanupFn`)
|
78
79
|
to be invoked to close all MCP server sessions when finished.
|
79
80
|
|
80
81
|
The returned tools can be used with LangChain, e.g.:
|
@@ -155,7 +156,8 @@ Any comments pointing out something I am missing would be greatly appreciated!
|
|
155
156
|
|
156
157
|
3. Task Lifecycle:
|
157
158
|
|
158
|
-
The following illustrates how
|
159
|
+
The following task lifecyle diagram illustrates how the above strategy
|
160
|
+
was impelemented:
|
159
161
|
```
|
160
162
|
[Task starts]
|
161
163
|
↓
|
@@ -47,11 +47,12 @@ and is expressed as a `dict`, e.g.:
|
|
47
47
|
)
|
48
48
|
```
|
49
49
|
|
50
|
-
|
51
|
-
and returns LangChain Tools
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
This utility function initializes all specified MCP servers in parallel,
|
51
|
+
and returns [LangChain Tools](https://python.langchain.com/api_reference/core/tools.html)
|
52
|
+
(`tools: List[BaseTool]`)
|
53
|
+
by gathering available MCP tools from the servers,
|
54
|
+
and by wrapping them into LangChain tools.
|
55
|
+
It also returns an async callback function (`cleanup: McpServerCleanupFn`)
|
55
56
|
to be invoked to close all MCP server sessions when finished.
|
56
57
|
|
57
58
|
The returned tools can be used with LangChain, e.g.:
|
@@ -132,7 +133,8 @@ Any comments pointing out something I am missing would be greatly appreciated!
|
|
132
133
|
|
133
134
|
3. Task Lifecycle:
|
134
135
|
|
135
|
-
The following illustrates how
|
136
|
+
The following task lifecyle diagram illustrates how the above strategy
|
137
|
+
was impelemented:
|
136
138
|
```
|
137
139
|
[Task starts]
|
138
140
|
↓
|
{langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools/langchain_mcp_tools.py
RENAMED
@@ -46,7 +46,7 @@ The key aspects are:
|
|
46
46
|
- Resources management for `stdio_client` and `ClientSession` seems
|
47
47
|
to require relying exclusively on `asynccontextmanager` for cleanup,
|
48
48
|
with no manual cleanup options
|
49
|
-
(based on
|
49
|
+
(based on the mcp python-sdk impl as of Jan 14, 2025)
|
50
50
|
- Initializing multiple MCP servers in parallel requires a dedicated
|
51
51
|
`asyncio.Task` per server
|
52
52
|
- Need to keep sessions alive for later use by different tasks
|
@@ -75,7 +75,8 @@ The key aspects are:
|
|
75
75
|
|
76
76
|
3. Task Lifecycle:
|
77
77
|
|
78
|
-
The following illustrates how
|
78
|
+
The following task lifecyle diagram illustrates how the above strategy
|
79
|
+
was impelemented:
|
79
80
|
```
|
80
81
|
[Task starts]
|
81
82
|
↓
|
{langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: langchain-mcp-tools
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.17
|
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
|
@@ -70,11 +70,12 @@ and is expressed as a `dict`, e.g.:
|
|
70
70
|
)
|
71
71
|
```
|
72
72
|
|
73
|
-
|
74
|
-
and returns LangChain Tools
|
75
|
-
|
76
|
-
|
77
|
-
|
73
|
+
This utility function initializes all specified MCP servers in parallel,
|
74
|
+
and returns [LangChain Tools](https://python.langchain.com/api_reference/core/tools.html)
|
75
|
+
(`tools: List[BaseTool]`)
|
76
|
+
by gathering available MCP tools from the servers,
|
77
|
+
and by wrapping them into LangChain tools.
|
78
|
+
It also returns an async callback function (`cleanup: McpServerCleanupFn`)
|
78
79
|
to be invoked to close all MCP server sessions when finished.
|
79
80
|
|
80
81
|
The returned tools can be used with LangChain, e.g.:
|
@@ -155,7 +156,8 @@ Any comments pointing out something I am missing would be greatly appreciated!
|
|
155
156
|
|
156
157
|
3. Task Lifecycle:
|
157
158
|
|
158
|
-
The following illustrates how
|
159
|
+
The following task lifecyle diagram illustrates how the above strategy
|
160
|
+
was impelemented:
|
159
161
|
```
|
160
162
|
[Task starts]
|
161
163
|
↓
|
File without changes
|
File without changes
|
File without changes
|
{langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{langchain_mcp_tools-0.0.16 → langchain_mcp_tools-0.0.17}/langchain_mcp_tools.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|