langchain-mcp-tools 0.0.8__tar.gz → 0.0.9__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.8 → langchain_mcp_tools-0.0.9}/PKG-INFO +10 -11
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/README.md +9 -10
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools/langchain_mcp_tools.py +3 -3
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/PKG-INFO +10 -11
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/top_level.txt +1 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/pyproject.toml +1 -1
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/LICENSE +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools/__init__.py +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools/py.typed +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/SOURCES.txt +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/dependency_links.txt +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/requires.txt +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/setup.cfg +0 -0
- {langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/tests/test_langchain_mcp_tools.py +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.9
|
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
|
@@ -27,7 +27,7 @@ server tools with LangChain / Python.
|
|
27
27
|
|
28
28
|
It contains a utility function `convertMcpToLangchainTools()`.
|
29
29
|
This function handles parallel initialization of specified multiple MCP servers
|
30
|
-
and converts their available tools into
|
30
|
+
and converts their available tools into a list of
|
31
31
|
[LangChain-compatible tools](https://js.langchain.com/docs/how_to/tool_calling/).
|
32
32
|
|
33
33
|
A typescript equivalent of this utility library is available
|
@@ -90,15 +90,13 @@ The returned tools can be used with LangChain, e.g.:
|
|
90
90
|
tools
|
91
91
|
)
|
92
92
|
```
|
93
|
-
|
94
|
-
[here](https://github.com/hideya/langchain-mcp-tools-
|
93
|
+
A simple and experimentable usage example can be found
|
94
|
+
[here](https://github.com/hideya/langchain-mcp-tools-py-usage/blob/main/src/example.py)
|
95
95
|
|
96
|
-
|
97
|
-
[here](https://github.com/hideya/langchain-mcp-client-ts) -->
|
98
|
-
|
99
|
-
An usage example can be found
|
96
|
+
A more realistic usage example can be found
|
100
97
|
[here](https://github.com/hideya/mcp-client-langchain-py)
|
101
98
|
|
99
|
+
|
102
100
|
## Limitations
|
103
101
|
|
104
102
|
Currently, only text results of tool calls are supported.
|
@@ -124,10 +122,11 @@ Any comments pointing out something I am missing would be greatly appreciated!
|
|
124
122
|
- Ensuring proper cleanup later in the same task that created them
|
125
123
|
|
126
124
|
2. Solution Strategy:
|
125
|
+
|
127
126
|
A key requirement for parallel initialization is that each server must be
|
128
|
-
initialized in its own dedicated task - there's no way around this
|
129
|
-
|
130
|
-
|
127
|
+
initialized in its own dedicated task - there's no way around this as far
|
128
|
+
as I understand. However, this creates a challenge since we also need to
|
129
|
+
maintain long-lived sessions and handle cleanup properly.
|
131
130
|
|
132
131
|
The key insight is to keep the initialization tasks alive throughout the
|
133
132
|
session lifetime, rather than letting them complete after initialization.
|
@@ -6,7 +6,7 @@ server tools with LangChain / Python.
|
|
6
6
|
|
7
7
|
It contains a utility function `convertMcpToLangchainTools()`.
|
8
8
|
This function handles parallel initialization of specified multiple MCP servers
|
9
|
-
and converts their available tools into
|
9
|
+
and converts their available tools into a list of
|
10
10
|
[LangChain-compatible tools](https://js.langchain.com/docs/how_to/tool_calling/).
|
11
11
|
|
12
12
|
A typescript equivalent of this utility library is available
|
@@ -69,15 +69,13 @@ The returned tools can be used with LangChain, e.g.:
|
|
69
69
|
tools
|
70
70
|
)
|
71
71
|
```
|
72
|
-
|
73
|
-
[here](https://github.com/hideya/langchain-mcp-tools-
|
72
|
+
A simple and experimentable usage example can be found
|
73
|
+
[here](https://github.com/hideya/langchain-mcp-tools-py-usage/blob/main/src/example.py)
|
74
74
|
|
75
|
-
|
76
|
-
[here](https://github.com/hideya/langchain-mcp-client-ts) -->
|
77
|
-
|
78
|
-
An usage example can be found
|
75
|
+
A more realistic usage example can be found
|
79
76
|
[here](https://github.com/hideya/mcp-client-langchain-py)
|
80
77
|
|
78
|
+
|
81
79
|
## Limitations
|
82
80
|
|
83
81
|
Currently, only text results of tool calls are supported.
|
@@ -103,10 +101,11 @@ Any comments pointing out something I am missing would be greatly appreciated!
|
|
103
101
|
- Ensuring proper cleanup later in the same task that created them
|
104
102
|
|
105
103
|
2. Solution Strategy:
|
104
|
+
|
106
105
|
A key requirement for parallel initialization is that each server must be
|
107
|
-
initialized in its own dedicated task - there's no way around this
|
108
|
-
|
109
|
-
|
106
|
+
initialized in its own dedicated task - there's no way around this as far
|
107
|
+
as I understand. However, this creates a challenge since we also need to
|
108
|
+
maintain long-lived sessions and handle cleanup properly.
|
110
109
|
|
111
110
|
The key insight is to keep the initialization tasks alive throughout the
|
112
111
|
session lifetime, rather than letting them complete after initialization.
|
{langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools/langchain_mcp_tools.py
RENAMED
@@ -47,9 +47,9 @@ The key aspects are:
|
|
47
47
|
|
48
48
|
2. Solution Strategy:
|
49
49
|
A key requirement for parallel initialization is that each server must be
|
50
|
-
initialized in its own dedicated task - there's no way around this
|
51
|
-
|
52
|
-
|
50
|
+
initialized in its own dedicated task - there's no way around this as far
|
51
|
+
as I understand. However, this creates a challenge since we also need to
|
52
|
+
maintain long-lived sessions and handle cleanup properly.
|
53
53
|
|
54
54
|
The key insight is to keep the initialization tasks alive throughout the
|
55
55
|
session lifetime, rather than letting them complete after initialization.
|
{langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/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.9
|
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
|
@@ -27,7 +27,7 @@ server tools with LangChain / Python.
|
|
27
27
|
|
28
28
|
It contains a utility function `convertMcpToLangchainTools()`.
|
29
29
|
This function handles parallel initialization of specified multiple MCP servers
|
30
|
-
and converts their available tools into
|
30
|
+
and converts their available tools into a list of
|
31
31
|
[LangChain-compatible tools](https://js.langchain.com/docs/how_to/tool_calling/).
|
32
32
|
|
33
33
|
A typescript equivalent of this utility library is available
|
@@ -90,15 +90,13 @@ The returned tools can be used with LangChain, e.g.:
|
|
90
90
|
tools
|
91
91
|
)
|
92
92
|
```
|
93
|
-
|
94
|
-
[here](https://github.com/hideya/langchain-mcp-tools-
|
93
|
+
A simple and experimentable usage example can be found
|
94
|
+
[here](https://github.com/hideya/langchain-mcp-tools-py-usage/blob/main/src/example.py)
|
95
95
|
|
96
|
-
|
97
|
-
[here](https://github.com/hideya/langchain-mcp-client-ts) -->
|
98
|
-
|
99
|
-
An usage example can be found
|
96
|
+
A more realistic usage example can be found
|
100
97
|
[here](https://github.com/hideya/mcp-client-langchain-py)
|
101
98
|
|
99
|
+
|
102
100
|
## Limitations
|
103
101
|
|
104
102
|
Currently, only text results of tool calls are supported.
|
@@ -124,10 +122,11 @@ Any comments pointing out something I am missing would be greatly appreciated!
|
|
124
122
|
- Ensuring proper cleanup later in the same task that created them
|
125
123
|
|
126
124
|
2. Solution Strategy:
|
125
|
+
|
127
126
|
A key requirement for parallel initialization is that each server must be
|
128
|
-
initialized in its own dedicated task - there's no way around this
|
129
|
-
|
130
|
-
|
127
|
+
initialized in its own dedicated task - there's no way around this as far
|
128
|
+
as I understand. However, this creates a challenge since we also need to
|
129
|
+
maintain long-lived sessions and handle cleanup properly.
|
131
130
|
|
132
131
|
The key insight is to keep the initialization tasks alive throughout the
|
133
132
|
session lifetime, rather than letting them complete after initialization.
|
File without changes
|
File without changes
|
File without changes
|
{langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{langchain_mcp_tools-0.0.8 → langchain_mcp_tools-0.0.9}/langchain_mcp_tools.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|