Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[project]
name = "uipath-mcp"
version = "0.3.1"
version = "0.3.2"
description = "UiPath MCP SDK"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"mcp==1.30.0",
"pysignalr==1.3.0",
"uipath>=2.14.16, <2.15.0",
"uipath>=2.14.41, <2.15.0",
Comment thread
eduard-dumitru marked this conversation as resolved.
"uipath-runtime>=0.13.1, <0.14.0",
]
classifiers = [
Expand Down Expand Up @@ -118,6 +118,8 @@ uipath-mcp = false
uipath-core = false
uipath-platform = false
uipath-runtime = false
uipath-langchain = false
uipath-llm-client = false

[[tool.uv.index]]
name = "testpypi"
Expand Down
2 changes: 1 addition & 1 deletion samples/github-helper-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "An automated agent that reviews GitHub pull requests and provides feedback"
authors = [{ name = "Cristi Pufu", email = "cristian.pufu@uipath.com" }]
dependencies = [
"uipath-langchain>=0.17.0",
"uipath-langchain>=0.18.46",
"langgraph>=1.0.10",
]
requires-python = ">=3.11"
3,589 changes: 1,913 additions & 1,676 deletions samples/github-helper-agent/uv.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion samples/github-slack-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "An automated agent that reviews GitHub pull requests and provides feedback on Slack"
authors = [{ name = "Cristi Pufu", email = "cristian.pufu@uipath.com" }]
dependencies = [
"uipath-langchain>=0.17.0",
"uipath-langchain>=0.18.46",
"langgraph>=1.0.10",
]
requires-python = ">=3.11"
3,589 changes: 1,913 additions & 1,676 deletions samples/github-slack-agent/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion samples/mcp-datetime-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "DateTime Operations MCP Server"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.1.1",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
3 changes: 2 additions & 1 deletion samples/mcp-dynamic-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "Dynamic MCP Server with self-extending tools"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.0.101",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
2,802 changes: 1,715 additions & 1,087 deletions samples/mcp-dynamic-server/uv.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion samples/mcp-functions-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "A coder agent that implements and tests Python functions using a dynamic MCP server"
authors = [{ name = "Cristi Pufu", email = "cristian.pufu@uipath.com" }]
dependencies = [
"uipath-langchain>=0.17.0",
"uipath-langchain>=0.18.46",
"langgraph>=1.0.10",
]
requires-python = ">=3.11"
3,589 changes: 1,913 additions & 1,676 deletions samples/mcp-functions-agent/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion samples/mcp-functions-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "MCP Server that allows dynamic code functions creation and executions"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.0.101",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
2,802 changes: 1,715 additions & 1,087 deletions samples/mcp-functions-server/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion samples/mcp-longrunning-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "Long Running Operations MCP Server"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.0.78",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
2,782 changes: 1,701 additions & 1,081 deletions samples/mcp-longrunning-server/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion samples/mcp-math-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "Advanced Math Operations MCP Server"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.0.101",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
2,769 changes: 1,725 additions & 1,044 deletions samples/mcp-math-server/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion samples/mcp-sdk-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "Python SDK MCP Server"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.0.101",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
2,802 changes: 1,715 additions & 1,087 deletions samples/mcp-sdk-server/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion samples/mcp-string-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "String Operations MCP Server"
authors = [{ name = "John Doe" }]
dependencies = [
"uipath-mcp>=0.1.1",
"uipath-mcp>=0.3.1",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
3 changes: 2 additions & 1 deletion src/uipath_mcp/_cli/_templates/pyproject.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
description = "Description for $project_name project"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath-mcp>=0.0.107",
"uipath-mcp>=$uipath_mcp_version",
"uipath>=$uipath_version",
]
requires-python = ">=3.11"
10 changes: 9 additions & 1 deletion src/uipath_mcp/_cli/cli_new.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import importlib.metadata
import os
import shutil
from typing import List, Optional, Tuple
Expand Down Expand Up @@ -84,7 +85,14 @@ def generate_files(target_directory: str, server_name: str):
target_directory,
"_templates/pyproject.toml.template",
"pyproject.toml",
[("$project_name", server_name)],
[
("$project_name", server_name),
# Floors at the installed releases: a Robot refuses a project on older
# uipath packages than it supports, so a scaffold never asks for less
# than the CLI that wrote it.
("$uipath_mcp_version", importlib.metadata.version("uipath-mcp")),
("$uipath_version", importlib.metadata.version("uipath")),
],
)


Expand Down
12 changes: 12 additions & 0 deletions tests/test_cli_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ def test_write_template_file_with_replacements(
assert (target / "result.txt").read_text() == "name=svc; v=1"


def test_generate_files_floors_at_the_installed_releases(tmp_path: Path):
"""A Robot refuses a project on older uipath packages than it supports, so the
scaffold never asks for less than the CLI that wrote it."""
from importlib.metadata import version

cli_new.generate_files(str(tmp_path), "svc")
content = (tmp_path / "pyproject.toml").read_text()
assert f'"uipath-mcp>={version("uipath-mcp")}"' in content, content
assert f'"uipath>={version("uipath")}"' in content, content
assert "$" not in content, content


def test_generate_files_calls_write_three_times(tmp_path: Path):
with patch.object(cli_new, "write_template_file") as wtf:
cli_new.generate_files(str(tmp_path), "svc")
Expand Down
46 changes: 29 additions & 17 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading