Skip to content
Open
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
5 changes: 3 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.0.102"
version = "0.0.103"
description = "UiPath MCP SDK"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"mcp==1.11.0",
"pysignalr==1.3.0",
"uipath>=2.1.0, <2.2.0",
"uipath>=2.1.14, <2.2.0",
]
classifiers = [
"Development Status :: 3 - Alpha",
Expand Down Expand Up @@ -47,6 +47,7 @@ dev = [
[tool.ruff]
line-length = 88
indent-width = 4
exclude = ["samples/**"]

[tool.ruff.lint]
select = ["E", "F", "B", "I"]
Expand Down
5 changes: 1 addition & 4 deletions src/uipath_mcp/_cli/_runtime/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ class UiPathMcpRuntimeContext(UiPathRuntimeContext):
server_slug: Optional[str] = None

@classmethod
def from_config(cls, config_path=None):
def from_config(cls, config_path=None, **kwargs):
"""Load configuration from uipath.json file with MCP-specific handling."""
# Use the parent's implementation
instance = super().from_config(config_path)

# Convert to our type (since parent returns UiPathRuntimeContext)
mcp_instance = cls(**instance.model_dump())

# Add AgentHub-specific configuration handling
import json
import os

Expand Down
2 changes: 1 addition & 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,6 @@ version = "0.0.1"
description = "Description for $project_name project"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath-mcp>=0.0.101",
"uipath-mcp>=0.0.103",
]
requires-python = ">=3.11"
18 changes: 1 addition & 17 deletions src/uipath_mcp/_cli/cli_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,13 @@
from typing import List, Optional, Tuple

import click
from uipath._cli._utils._common import clean_directory
from uipath._cli._utils._console import ConsoleLogger
from uipath._cli.middlewares import MiddlewareResult

console = ConsoleLogger()


def clean_directory(directory: str) -> None:
"""Clean up Python files in the specified directory.

Args:
directory (str): Path to the directory to clean.

This function removes all Python files (*.py) from the specified directory.
It's used to prepare a directory for new MCP server template files.
"""
for file_name in os.listdir(directory):
file_path = os.path.join(directory, file_name)

if os.path.isfile(file_path) and file_name.endswith(".py"):
# Delete the file
os.remove(file_path)


def write_template_file(
target_directory: str,
file_path: str,
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

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