mcp-use 0.0.4__py3-none-any.whl → 0.0.5__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/__init__.py CHANGED
@@ -5,6 +5,8 @@ This library provides a unified interface for connecting different LLMs
5
5
  to MCP tools through existing LangChain adapters.
6
6
  """
7
7
 
8
+ from importlib.metadata import version
9
+
8
10
  from .agents.mcpagent import MCPAgent
9
11
  from .client import MCPClient
10
12
  from .config import create_session_from_config, load_config_file
@@ -12,7 +14,8 @@ from .connectors import BaseConnector, HttpConnector, StdioConnector, WebSocketC
12
14
  from .logging import logger
13
15
  from .session import MCPSession
14
16
 
15
- __version__ = "0.0.3"
17
+ __version__ = version("mcp-use")
18
+
16
19
  __all__ = [
17
20
  "MCPAgent",
18
21
  "MCPClient",
@@ -124,7 +124,9 @@ class MCPAgent:
124
124
  # Generate tool descriptions
125
125
  tool_descriptions = []
126
126
  for tool in tools:
127
- description = f"- {tool.name}: {tool.description}"
127
+ # Escape curly braces in the description by doubling them
128
+ # (sometimes e.g. blender mcp they are used in the description)
129
+ description = f"- {tool.name}: {tool.description.replace('{', '{{').replace('}', '}}')}"
128
130
  tool_descriptions.append(description)
129
131
 
130
132
  # Format the system prompt template with tool descriptions
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
- Name: mcp_use
3
- Version: 0.0.4
2
+ Name: mcp-use
3
+ Version: 0.0.5
4
4
  Summary: MCP Library for LLMs
5
5
  Author-email: Pietro Zullo <pietro.zullo@gmail.com>
6
6
  License: MIT
@@ -38,16 +38,20 @@ Requires-Dist: openai>=1.10.0; extra == 'openai'
38
38
  Description-Content-Type: text/markdown
39
39
 
40
40
  <picture>
41
- <source media="(prefers-color-scheme: dark)" srcset="./static/mcp-use-dark.png">
42
- <source media="(prefers-color-scheme: light)" srcset="./static/mcp-use.png">
43
- <img alt="Shows a black MCP-Use Logo in light color mode and a white one in dark color mode." src="./static/mcp-use.png" width="full">
41
+ <img alt="" src="./static/ghibli.png" width="full">
44
42
  </picture>
45
43
 
46
- <h1 align="center">Use MCPs directly from python 🤖</h1>
44
+ <h1 align="center">Open Source MCP CLient Library </h1>
47
45
 
46
+ [![](https://img.shields.io/pypi/dd/mcp_use.svg)](https://pypi.org/project/mcp_use/)
47
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/mcp_use.svg)](https://pypi.org/project/mcp_use/)
48
+ [![PyPI Version](https://img.shields.io/pypi/v/mcp_use.svg)](https://pypi.org/project/mcp_use/)
49
+ [![Python Versions](https://img.shields.io/pypi/pyversions/mcp_use.svg)](https://pypi.org/project/mcp_use/)
50
+ [![License](https://img.shields.io/github/license/pietrozullo/mcp-use)](https://github.com/pietrozullo/mcp-use/blob/main/LICENSE)
51
+ [![Code style: Ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
48
52
  [![GitHub stars](https://img.shields.io/github/stars/pietrozullo/mcp-use?style=social)](https://github.com/pietrozullo/mcp-use/stargazers)
49
53
 
50
- 🌐 MCP-Use is the easiest way to connect any LLM to MCP tools through a unified interface without using closed source or application clients.
54
+ 🌐 MCP-Use is the open source way to connect any LLM to MCP tools and build custom agents that have tool access, without using closed source or application clients.
51
55
 
52
56
  💡 Let developers easily connect any LLM to tools like web browsing, file operations, and more.
53
57
 
@@ -56,14 +60,14 @@ Description-Content-Type: text/markdown
56
60
  With pip:
57
61
 
58
62
  ```bash
59
- pip install mcp_use
63
+ pip install mcp-use
60
64
  ```
61
65
 
62
66
  Or install from source:
63
67
 
64
68
  ```bash
65
- git clone https://github.com/pietrozullo/mcp_use.git
66
- cd mcp_use
69
+ git clone https://github.com/pietrozullo/mcp-use.git
70
+ cd mcp-use
67
71
  pip install -e .
68
72
  ```
69
73
 
@@ -1,4 +1,4 @@
1
- mcp_use/__init__.py,sha256=wH2KewPklX8TjKnuECJhUCPL6BqOngmFjTtpleKi46s,699
1
+ mcp_use/__init__.py,sha256=fa-pzSVKzlR2W3UQ2C7DbbrSSLjPPc6DbkUBTUpI39s,751
2
2
  mcp_use/client.py,sha256=7dBjkRPqyUlp-8NuLcYbW-4ctLDp329DsAvRM1HlVus,7807
3
3
  mcp_use/config.py,sha256=ZoOdKX6qVR5SD7PfO-iqzKxXOb4NMcnpHpZquGgMas4,2578
4
4
  mcp_use/logging.py,sha256=2-hSB7ZWcHEx_OFHNg8GIbSGCZx3MW4mZGGWxi2Ew3E,2690
@@ -6,7 +6,7 @@ mcp_use/session.py,sha256=Z4EZTUnQUX0QyGMzkJIrMRTX4SDk6qQUoBld408LIJE,3449
6
6
  mcp_use/agents/__init__.py,sha256=ukchMTqCOID6ikvLmJ-6sldWTVFIzztGQo4BX6QeQr8,312
7
7
  mcp_use/agents/base.py,sha256=bfuldi_89AbSbNc8KeTiCArRT9V62CNxHOWYkLHWjyA,1605
8
8
  mcp_use/agents/langchain_agent.py,sha256=RaQEo-tm3b4SBeu3DxE9YYdTuTAHBqEd5vSZ6Qi3g5Q,10320
9
- mcp_use/agents/mcpagent.py,sha256=87NwMYr4gnAj-fEntAPo7AWbHI60JvnJM5dLIbls-i0,12260
9
+ mcp_use/agents/mcpagent.py,sha256=0iDbqmzKtj0k1Ge8bsddiwgNEN-YAUdpLItB7ldLYrE,12444
10
10
  mcp_use/agents/prompts/default.py,sha256=msFRqH5ZPlcpVh5lzT9Bq5gu5m9wH819KO-xYiFs01g,392
11
11
  mcp_use/connectors/__init__.py,sha256=jnd-7pPPJMb0UNJ6aD9lInj5Tlamc8lA_mFyG8RWJpo,385
12
12
  mcp_use/connectors/base.py,sha256=caUaTfsODUOik8JF9mPtcZDyZhoIz2X12I_BhAfZK10,1616
@@ -18,7 +18,7 @@ mcp_use/task_managers/base.py,sha256=ksNdxTwq8N-zqymxVoKGnWXq9iqkLYC61uB91o6Mh-4
18
18
  mcp_use/task_managers/http.py,sha256=XhrF73RGRnVctBVW2FlFrFTJR2pIGXhtNvfJFiW0Olw,1881
19
19
  mcp_use/task_managers/stdio.py,sha256=DEISpXv4mo3d5a-WT8lkWbrXJwUh7QW0nMT_IM3fHGg,2269
20
20
  mcp_use/task_managers/websocket.py,sha256=SVgTLFogiynb48eyi6ZioWIKLLWiVBCNE59rXi6GrCM,1943
21
- mcp_use-0.0.4.dist-info/METADATA,sha256=A63pM3FRoTjjjQl9zDGgUSls-_vX6N7Du4o5VfeuqXY,9141
22
- mcp_use-0.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
- mcp_use-0.0.4.dist-info/licenses/LICENSE,sha256=7Pw7dbwJSBw8zH-WE03JnR5uXvitRtaGTP9QWPcexcs,1068
24
- mcp_use-0.0.4.dist-info/RECORD,,
21
+ mcp_use-0.0.5.dist-info/METADATA,sha256=HmKqoj40OTDnhtswXP5-uNd0dayj1P_aAuzGbXrDyJE,9550
22
+ mcp_use-0.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
+ mcp_use-0.0.5.dist-info/licenses/LICENSE,sha256=7Pw7dbwJSBw8zH-WE03JnR5uXvitRtaGTP9QWPcexcs,1068
24
+ mcp_use-0.0.5.dist-info/RECORD,,