universal-mcp-agents 0.1.23rc11__tar.gz → 0.1.23rc12__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 universal-mcp-agents might be problematic. Click here for more details.
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/PKG-INFO +1 -1
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/pyproject.toml +1 -1
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/agent.py +1 -1
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/prompts.py +36 -14
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/tools.py +5 -5
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/uv.lock +1 -1
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/evals.yml +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/lint.yml +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/release-please.yml +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/tests.yml +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.gitignore +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.pre-commit-config.yaml +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/GEMINI.md +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/PROMPTS.md +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/README.md +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/bump_and_release.sh +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/__init__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/dataset.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/datasets/exact.jsonl +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/datasets/tasks.jsonl +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/datasets/test.jsonl +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/evaluators.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/prompts.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/run.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/utils.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/tests/test_agents.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/tests/test_sandbox.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/__init__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/base.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/__init__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/__main__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/agent.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/context.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/graph.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/prompts.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/state.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/bigtool/tools.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/builder/__main__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/builder/builder.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/builder/helper.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/builder/prompts.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/builder/state.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/cli.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/__init__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/__main__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/config.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/langgraph_agent.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/llm_tool.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/sandbox.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/state.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/codeact0/utils.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/hil.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/llm.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/react.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/sandbox.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/shared/__main__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/shared/prompts.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/shared/tool_node.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/simple.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/utils.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/applications/filesystem/__init__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/applications/filesystem/app.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/applications/llm/__init__.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/applications/llm/app.py +0 -0
- {universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/applications/ui/app.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: universal-mcp-agents
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.23rc12
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Project-URL: Homepage, https://github.com/universal-mcp/applications
|
|
6
6
|
Project-URL: Repository, https://github.com/universal-mcp/applications
|
|
@@ -52,7 +52,7 @@ class CodeActPlaybookAgent(BaseAgent):
|
|
|
52
52
|
**kwargs,
|
|
53
53
|
)
|
|
54
54
|
self.model_instance = load_chat_model(model)
|
|
55
|
-
self.agent_builder_model_instance = load_chat_model("anthropic:claude-sonnet-4-5-20250929", thinking
|
|
55
|
+
self.agent_builder_model_instance = load_chat_model("anthropic:claude-sonnet-4-5-20250929", thinking=False)
|
|
56
56
|
self.registry = registry
|
|
57
57
|
self.agent_builder_registry = agent_builder_registry
|
|
58
58
|
self.agent = agent_builder_registry.get_agent() if agent_builder_registry else None
|
|
@@ -91,16 +91,23 @@ Note that the following tools are pre-loaded for the agent's use, and can be inl
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
AGENT_BUILDER_GENERATING_PROMPT = """
|
|
94
|
-
You are tasked with generating
|
|
95
|
-
|
|
94
|
+
You are tasked with generating granular, reusable Python code for an agent based on the final confirmed plan and the conversation history (user messages, assistant messages, and code executions).
|
|
95
|
+
|
|
96
|
+
Produce a set of small, single-purpose functions—typically one function per plan step—plus one top-level orchestrator function that calls the step functions in order to complete the task.
|
|
97
|
+
|
|
96
98
|
Rules-
|
|
97
|
-
- Do NOT include the searching and loading of functions. Assume
|
|
98
|
-
- Your response must be **ONLY Python code
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
99
|
+
- Do NOT include the searching and loading of functions. Assume required functions have already been loaded. Include imports you need.
|
|
100
|
+
- Your response must be **ONLY Python code**. No markdown or explanations.
|
|
101
|
+
- Define multiple top-level functions:
|
|
102
|
+
1) One small, clear function for each plan step (as granular as practical).
|
|
103
|
+
2) One top-level orchestrator function that calls the step functions in sequence to achieve the plan objectives.
|
|
104
|
+
- The orchestrator function's parameters **must exactly match the external variables** in the agent plan (the ones marked with backticks `` `variable_name` ``). Provide defaults exactly as specified in the plan when present. Variables in italics (i.e. enclosed in *...*) are internal and must not be orchestrator parameters.
|
|
105
|
+
- The orchestrator function MUST be declared with `def` or `async def` and be directly runnable with a single Python command (e.g., `image_generator(...)`). If it is async, assume the caller will `await` it.
|
|
106
|
+
- Step functions should accept only the inputs they need, return explicit outputs, and pass intermediate results forward via return values—not globals.
|
|
107
|
+
- Name functions in snake_case derived from their purpose/step. Use keyword arguments in calls; avoid positional-only calls.
|
|
108
|
+
- Keep the code self-contained and executable. Put imports at the top of the code. Do not nest functions unless strictly necessary.
|
|
109
|
+
- If previously executed code snippets exist, adapt and reuse their validated logic inside the appropriate step functions.
|
|
110
|
+
- Do not print the final output; return it from the orchestrator.
|
|
104
111
|
|
|
105
112
|
Example:
|
|
106
113
|
|
|
@@ -113,16 +120,31 @@ If the plan has:
|
|
|
113
120
|
"Upload *temp_file_path* to OneDrive folder onedrive_parent_folder(default = 'root')"
|
|
114
121
|
]
|
|
115
122
|
|
|
116
|
-
Then the
|
|
123
|
+
Then the functions should look like:
|
|
117
124
|
|
|
118
125
|
```python
|
|
119
|
-
|
|
120
|
-
|
|
126
|
+
from typing import Dict
|
|
127
|
+
|
|
128
|
+
def generate_image(image_prompt: str, style: str = "comic") -> Dict:
|
|
129
|
+
# previously validated code to call Gemini
|
|
130
|
+
...
|
|
131
|
+
|
|
132
|
+
def save_temp_image(image_result: Dict) -> str:
|
|
133
|
+
# previously validated code to write bytes to a temp file
|
|
134
|
+
...
|
|
121
135
|
|
|
122
|
-
|
|
136
|
+
def upload_to_onedrive(temp_file_path: str, onedrive_parent_folder: str = "root") -> Dict:
|
|
137
|
+
# previously validated code to upload
|
|
138
|
+
...
|
|
123
139
|
|
|
140
|
+
def image_generator(image_prompt: str, style: str = "comic", onedrive_parent_folder: str = "root") -> Dict:
|
|
141
|
+
image_result = generate_image(image_prompt=image_prompt, style=style)
|
|
142
|
+
temp_file_path = save_temp_image(image_result=image_result)
|
|
143
|
+
upload_result = upload_to_onedrive(temp_file_path=temp_file_path, onedrive_parent_folder=onedrive_parent_folder)
|
|
144
|
+
return upload_result
|
|
145
|
+
```
|
|
124
146
|
|
|
125
|
-
Use this convention consistently to generate the final
|
|
147
|
+
Use this convention consistently to generate the final code.
|
|
126
148
|
Note that the following tools are pre-loaded for the agent's use, and can be included in your code-\n
|
|
127
149
|
"""
|
|
128
150
|
|
|
@@ -203,10 +203,10 @@ def create_meta_tools(tool_registry: AgentrRegistry) -> dict[str, Any]:
|
|
|
203
203
|
)
|
|
204
204
|
|
|
205
205
|
result_parts.append("Call load_functions to select the required functions only.")
|
|
206
|
-
if 0
|
|
206
|
+
if 0 <= len(connected_apps_in_results) < len(apps_in_results):
|
|
207
207
|
result_parts.append(
|
|
208
|
-
"Unconnected app functions can also be loaded if
|
|
209
|
-
"but prefer connected ones. Ask the user to choose if none of the "
|
|
208
|
+
"Unconnected app functions can also be loaded if asked for by the user, they will generate a connection link"
|
|
209
|
+
"but prefer connected ones. Ask the user to choose the app if none of the "
|
|
210
210
|
"relevant apps are connected."
|
|
211
211
|
)
|
|
212
212
|
|
|
@@ -396,7 +396,7 @@ def create_meta_tools(tool_registry: AgentrRegistry) -> dict[str, Any]:
|
|
|
396
396
|
response = await markitdown.convert_to_markdown(uri)
|
|
397
397
|
return response
|
|
398
398
|
|
|
399
|
-
|
|
399
|
+
def save_file(file_name: str, content: str) -> dict:
|
|
400
400
|
"""
|
|
401
401
|
Saves a file to the local filesystem.
|
|
402
402
|
|
|
@@ -418,7 +418,7 @@ def create_meta_tools(tool_registry: AgentrRegistry) -> dict[str, Any]:
|
|
|
418
418
|
"file_path": Path(file_name).absolute(),
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
|
|
421
|
+
def upload_file(file_name: str, mime_type: str, base64_data: str) -> dict:
|
|
422
422
|
"""
|
|
423
423
|
Uploads a file to the server via the AgentrClient.
|
|
424
424
|
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/evals.yml
RENAMED
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/lint.yml
RENAMED
|
File without changes
|
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/.github/workflows/tests.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/datasets/exact.jsonl
RENAMED
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/datasets/tasks.jsonl
RENAMED
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/evals/datasets/test.jsonl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/tests/test_agents.py
RENAMED
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/tests/test_sandbox.py
RENAMED
|
File without changes
|
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/cli.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/hil.py
RENAMED
|
File without changes
|
{universal_mcp_agents-0.1.23rc11 → universal_mcp_agents-0.1.23rc12}/src/universal_mcp/agents/llm.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|