langchain-mcp-tools 0.1.2__py3-none-any.whl → 0.1.4__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 +3 -3
- {langchain_mcp_tools-0.1.2.dist-info → langchain_mcp_tools-0.1.4.dist-info}/METADATA +24 -2
- langchain_mcp_tools-0.1.4.dist-info/RECORD +8 -0
- langchain_mcp_tools-0.1.2.dist-info/RECORD +0 -8
- {langchain_mcp_tools-0.1.2.dist-info → langchain_mcp_tools-0.1.4.dist-info}/LICENSE +0 -0
- {langchain_mcp_tools-0.1.2.dist-info → langchain_mcp_tools-0.1.4.dist-info}/WHEEL +0 -0
- {langchain_mcp_tools-0.1.2.dist-info → langchain_mcp_tools-0.1.4.dist-info}/top_level.txt +0 -0
@@ -64,8 +64,8 @@ async def spawn_mcp_server_and_get_transport(
|
|
64
64
|
Exception: If server spawning fails
|
65
65
|
"""
|
66
66
|
try:
|
67
|
-
logger.info(f'MCP server "{server_name}":
|
68
|
-
server_config)
|
67
|
+
logger.info(f'MCP server "{server_name}": '
|
68
|
+
f'initializing with: {server_config}')
|
69
69
|
|
70
70
|
# NOTE: `uv` and `npx` seem to require PATH to be set.
|
71
71
|
# To avoid confusion, it was decided to automatically append it
|
@@ -163,7 +163,7 @@ async def get_mcp_server_tools(
|
|
163
163
|
Logs input/output and handles errors.
|
164
164
|
"""
|
165
165
|
logger.info(f'MCP tool "{server_name}"/"{tool.name}"'
|
166
|
-
f' received input:
|
166
|
+
f' received input: {kwargs}')
|
167
167
|
result = await session.call_tool(self.name, kwargs)
|
168
168
|
if result.isError:
|
169
169
|
raise ToolException(result.content)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: langchain-mcp-tools
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.4
|
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
|
@@ -28,11 +28,33 @@ This package is intended to simplify the use of
|
|
28
28
|
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/)
|
29
29
|
server tools with LangChain / Python.
|
30
30
|
|
31
|
+
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/),
|
32
|
+
introduced by
|
33
|
+
[Anthropic](https://www.anthropic.com/news/model-context-protocol),
|
34
|
+
extends the capabilities of LLMs by enabling interaction with external tools and resources,
|
35
|
+
such as web search and database access.
|
36
|
+
Thanks to its open-source nature, MCP has gained significant traction in the developer community,
|
37
|
+
with over 400 MCP servers already developed and shared:
|
38
|
+
|
39
|
+
- [Glama’s list of Open-Source MCP servers](https://glama.ai/mcp/servers)
|
40
|
+
- [Smithery: MCP Server Registry](https://smithery.ai/)
|
41
|
+
- [awesome-mcp-servers](https://github.com/hideya/awesome-mcp-servers#Server-Implementations)
|
42
|
+
- [MCP Get Started/Example Servers](https://modelcontextprotocol.io/examples)
|
43
|
+
|
44
|
+
In the MCP framework, external features are encapsulated in an MCP server,
|
45
|
+
which typically runs in a separate process and communicates
|
46
|
+
via `stdio` using the open standard protocol.
|
47
|
+
This clean decoupling makes it easy to adopt and reuse any of
|
48
|
+
the significant collections of MCP servers listed above.
|
49
|
+
|
50
|
+
To make it easy for LangChain users to take advantage of such a vast resource base,
|
51
|
+
this package offers quick and seamless access from LangChain to MCP servers.
|
52
|
+
|
31
53
|
It contains a utility function `convert_mcp_to_langchain_tools()`.
|
32
54
|
This async function handles parallel initialization of specified multiple MCP servers
|
33
55
|
and converts their available tools into a list of LangChain-compatible tools.
|
34
56
|
|
35
|
-
A typescript equivalent of this utility
|
57
|
+
A typescript equivalent of this utility is available
|
36
58
|
[here](https://www.npmjs.com/package/@h1deya/langchain-mcp-tools)
|
37
59
|
|
38
60
|
## Requirements
|
@@ -0,0 +1,8 @@
|
|
1
|
+
langchain_mcp_tools/__init__.py,sha256=Xtv2VphhrWB_KlxTIofHZqtCIGtNEl0MxugnrNXTERA,94
|
2
|
+
langchain_mcp_tools/langchain_mcp_tools.py,sha256=-kzxOhYUaieWngSSYk0kUZw6SeBNmxjnXm6Ed2rStz8,9627
|
3
|
+
langchain_mcp_tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
langchain_mcp_tools-0.1.4.dist-info/LICENSE,sha256=CRC91e8v116gCpnp7h49oIa6_zjhxqnHFTREeoZFJwA,1072
|
5
|
+
langchain_mcp_tools-0.1.4.dist-info/METADATA,sha256=-JPzwr4567fPMFq9caElQjQ2BorchdeXyf_TDje-bwo,4794
|
6
|
+
langchain_mcp_tools-0.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
+
langchain_mcp_tools-0.1.4.dist-info/top_level.txt,sha256=aR_9V2A1Yt-Bca60KmndmGLUWb2wiM5IOG-Gkaf1dxY,20
|
8
|
+
langchain_mcp_tools-0.1.4.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=hdlCAAwy7xVHzBNq-t5K91uqfieqeMXJcdr3ZoUcDGo,9621
|
3
|
-
langchain_mcp_tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
langchain_mcp_tools-0.1.2.dist-info/LICENSE,sha256=CRC91e8v116gCpnp7h49oIa6_zjhxqnHFTREeoZFJwA,1072
|
5
|
-
langchain_mcp_tools-0.1.2.dist-info/METADATA,sha256=HVDvbhb2bOiVDNAl3Y-Fd-4moVMD4RbhCSSEZiBIDvk,3599
|
6
|
-
langchain_mcp_tools-0.1.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
-
langchain_mcp_tools-0.1.2.dist-info/top_level.txt,sha256=aR_9V2A1Yt-Bca60KmndmGLUWb2wiM5IOG-Gkaf1dxY,20
|
8
|
-
langchain_mcp_tools-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|