tooluniverse 0.1.4__tar.gz → 0.2.0__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.

Potentially problematic release.


This version of tooluniverse might be problematic. Click here for more details.

Files changed (29) hide show
  1. {tooluniverse-0.1.4/src/tooluniverse.egg-info → tooluniverse-0.2.0}/PKG-INFO +21 -23
  2. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/README.md +11 -17
  3. tooluniverse-0.2.0/pyproject.toml +37 -0
  4. tooluniverse-0.2.0/setup.cfg +4 -0
  5. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/data/fda_drug_labeling_tools.json +543 -167
  6. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/data/opentarget_tools.json +81 -57
  7. tooluniverse-0.2.0/src/tooluniverse/generate_mcp_tools.py +113 -0
  8. tooluniverse-0.2.0/src/tooluniverse/mcp_server.py +3340 -0
  9. {tooluniverse-0.1.4 → tooluniverse-0.2.0/src/tooluniverse.egg-info}/PKG-INFO +21 -23
  10. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse.egg-info/SOURCES.txt +3 -1
  11. tooluniverse-0.2.0/src/tooluniverse.egg-info/entry_points.txt +4 -0
  12. tooluniverse-0.2.0/src/tooluniverse.egg-info/requires.txt +8 -0
  13. tooluniverse-0.1.4/pyproject.toml +0 -3
  14. tooluniverse-0.1.4/setup.cfg +0 -31
  15. tooluniverse-0.1.4/src/tooluniverse.egg-info/requires.txt +0 -3
  16. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/LICENSE +0 -0
  17. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/__init__.py +0 -0
  18. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/base_tool.py +0 -0
  19. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/data/__init__.py +0 -0
  20. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/data/fda_drugs_with_brand_generic_names_for_tool.py +0 -0
  21. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/data/monarch_tools.json +0 -0
  22. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/data/special_tools.json +0 -0
  23. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/execute_function.py +0 -0
  24. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/graphql_tool.py +0 -0
  25. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/openfda_tool.py +0 -0
  26. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/restful_tool.py +0 -0
  27. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse/utils.py +0 -0
  28. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse.egg-info/dependency_links.txt +0 -0
  29. {tooluniverse-0.1.4 → tooluniverse-0.2.0}/src/tooluniverse.egg-info/top_level.txt +0 -0
@@ -1,16 +1,20 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tooluniverse
3
- Version: 0.1.4
4
- Summary: A collection of biomedical tools designed for use by Agentic AI.
5
- Home-page: https://github.com/mims-harvard/TxAgent
6
- Author: Shanghua Gao
7
- Author-email: shanghuagao@gmail.com
8
- Requires-Python: >=3.6
3
+ Version: 0.2.0
4
+ Summary: A comprehensive collection of biomedical tools for Agentic AI, offering integration with the ToolUniverse SDK and MCP Server to support advanced biomedical workflows.
5
+ Author-email: Shanghua Gao <shanghuagao@gmail.com>
6
+ Project-URL: Homepage, https://github.com/mims-harvard/TxAgent
7
+ Requires-Python: >=3.10
9
8
  Description-Content-Type: text/markdown
10
9
  License-File: LICENSE
11
10
  Requires-Dist: requests
12
11
  Requires-Dist: numpy
13
12
  Requires-Dist: graphql-core
13
+ Requires-Dist: fastapi
14
+ Requires-Dist: uvicorn
15
+ Requires-Dist: fastmcp
16
+ Requires-Dist: pydantic
17
+ Requires-Dist: pyyaml
14
18
  Dynamic: license-file
15
19
 
16
20
  # ToolUniverse
@@ -22,6 +26,7 @@ Dynamic: license-file
22
26
  [![TxAgent](https://img.shields.io/badge/Code-TxAgent-purple)](https://github.com/mims-harvard/TxAgent)
23
27
  [![ToolUniverse](https://img.shields.io/badge/Code-ToolUniverse-purple)](https://github.com/mims-harvard/ToolUniverse)
24
28
  [![HuggingFace](https://img.shields.io/badge/HuggingFace-TxAgentT1-yellow)](https://huggingface.co/collections/mims-harvard/txagent-67c8e54a9d03a429bb0c622c)
29
+ [![Model context protocol (MCP)](https://img.shields.io/badge/Model_Context_Protocol_(MCP)_Supported-green)](README_USAGE.md#running-the-mcp-server)
25
30
 
26
31
  <body>
27
32
  <section class="hero">
@@ -102,26 +107,13 @@ pip install tooluniverse
102
107
 
103
108
  # Usage
104
109
 
105
- **Get all tools**
110
+ ToolUniverse supports both a Python SDK and an MCP server interface.
111
+ - You can use the Python SDK to interact with ToolUniverse programmatically in your Python projects.
112
+ - You can connect to the ToolUniverse MCP server for remote tool execution and integration with other agentic systems.
106
113
 
107
- ```
108
- from tooluniverse import ToolUniverse
109
- tooluni = ToolUniverse()
110
- tooluni.load_tools()
111
- tool_name_list, tool_desc_list = tooluni.refresh_tool_name_desc()
112
- print(tool_name_list)
113
- print(tool_desc_list)
114
- ```
114
+ For more detailed usage examples, see the [README_USAGE](README_USAGE.md) page.
115
115
 
116
- **Function call to a tool**
117
116
 
118
- ```
119
- from tooluniverse import ToolUniverse
120
- tooluni = ToolUniverse()
121
- tooluni.load_tools()
122
- query = {"name": "get_indications_by_drug_name", "arguments": {"drug_name": "KISUNLA"}}
123
- tooluni.run(query)
124
- ```
125
117
  ## Citation
126
118
 
127
119
  ```
@@ -139,3 +131,9 @@ tooluni.run(query)
139
131
  ## Contact
140
132
  If you have any questions or suggestions, please email [Shanghua Gao](mailto:shanghuagao@gmail.com) and [Marinka Zitnik](mailto:marinka@hms.harvard.edu).
141
133
 
134
+ ## Core contributors
135
+
136
+ [Shanghua Gao](https://shgao.site);
137
+ [Richard Zhu](https://www.linkedin.com/in/richard-zhu-4236901a7/);
138
+ [Zhenglun Kong](https://zlkong.github.io/homepage/);
139
+ [Sufian Aldogom](saldogom@mit.edu)
@@ -7,6 +7,7 @@
7
7
  [![TxAgent](https://img.shields.io/badge/Code-TxAgent-purple)](https://github.com/mims-harvard/TxAgent)
8
8
  [![ToolUniverse](https://img.shields.io/badge/Code-ToolUniverse-purple)](https://github.com/mims-harvard/ToolUniverse)
9
9
  [![HuggingFace](https://img.shields.io/badge/HuggingFace-TxAgentT1-yellow)](https://huggingface.co/collections/mims-harvard/txagent-67c8e54a9d03a429bb0c622c)
10
+ [![Model context protocol (MCP)](https://img.shields.io/badge/Model_Context_Protocol_(MCP)_Supported-green)](README_USAGE.md#running-the-mcp-server)
10
11
 
11
12
  <body>
12
13
  <section class="hero">
@@ -87,26 +88,13 @@ pip install tooluniverse
87
88
 
88
89
  # Usage
89
90
 
90
- **Get all tools**
91
+ ToolUniverse supports both a Python SDK and an MCP server interface.
92
+ - You can use the Python SDK to interact with ToolUniverse programmatically in your Python projects.
93
+ - You can connect to the ToolUniverse MCP server for remote tool execution and integration with other agentic systems.
91
94
 
92
- ```
93
- from tooluniverse import ToolUniverse
94
- tooluni = ToolUniverse()
95
- tooluni.load_tools()
96
- tool_name_list, tool_desc_list = tooluni.refresh_tool_name_desc()
97
- print(tool_name_list)
98
- print(tool_desc_list)
99
- ```
95
+ For more detailed usage examples, see the [README_USAGE](README_USAGE.md) page.
100
96
 
101
- **Function call to a tool**
102
97
 
103
- ```
104
- from tooluniverse import ToolUniverse
105
- tooluni = ToolUniverse()
106
- tooluni.load_tools()
107
- query = {"name": "get_indications_by_drug_name", "arguments": {"drug_name": "KISUNLA"}}
108
- tooluni.run(query)
109
- ```
110
98
  ## Citation
111
99
 
112
100
  ```
@@ -124,3 +112,9 @@ tooluni.run(query)
124
112
  ## Contact
125
113
  If you have any questions or suggestions, please email [Shanghua Gao](mailto:shanghuagao@gmail.com) and [Marinka Zitnik](mailto:marinka@hms.harvard.edu).
126
114
 
115
+ ## Core contributors
116
+
117
+ [Shanghua Gao](https://shgao.site);
118
+ [Richard Zhu](https://www.linkedin.com/in/richard-zhu-4236901a7/);
119
+ [Zhenglun Kong](https://zlkong.github.io/homepage/);
120
+ [Sufian Aldogom](saldogom@mit.edu)
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "tooluniverse"
7
+ version = "0.2.0"
8
+ description = "A comprehensive collection of biomedical tools for Agentic AI, offering integration with the ToolUniverse SDK and MCP Server to support advanced biomedical workflows."
9
+ authors = [
10
+ { name = "Shanghua Gao", email = "shanghuagao@gmail.com" }
11
+ ]
12
+ dependencies = [
13
+ "requests",
14
+ "numpy",
15
+ "graphql-core",
16
+ "fastapi",
17
+ "uvicorn",
18
+ "fastmcp",
19
+ "pydantic",
20
+ "pyyaml"
21
+ ]
22
+ requires-python = ">=3.10"
23
+ readme = "README.md"
24
+
25
+ [project.urls]
26
+ Homepage = "https://github.com/mims-harvard/TxAgent"
27
+
28
+ [project.scripts]
29
+ tooluniverse-mcp = "tooluniverse.mcp_server:run_server"
30
+ tooluniverse-mcp-claude = "tooluniverse.mcp_server:run_claude_desktop"
31
+ generate-mcp-tools = "tooluniverse.generate_mcp_tools:run_generate"
32
+
33
+ [tool.setuptools.packages.find]
34
+ where = ["src"]
35
+
36
+ [tool.setuptools.package-data]
37
+ tooluniverse = ["data/*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+