diff --git a/pyproject.toml b/pyproject.toml index 9191062..b56823c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,9 +13,9 @@ classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Topic :: Software Development :: Build Tools", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] maintainers = [ { name = "Marius Cosareanu", email = "marius.cosareanu@uipath.com" }, diff --git a/src/uipath_mcp/_cli/cli_init.py b/src/uipath_mcp/_cli/cli_init.py index 5652674..f8f8860 100644 --- a/src/uipath_mcp/_cli/cli_init.py +++ b/src/uipath_mcp/_cli/cli_init.py @@ -1,7 +1,7 @@ import asyncio import json -from typing import Any, Callable, overload import uuid +from typing import Any, Callable, overload from uipath._cli.middlewares import MiddlewareResult @@ -28,7 +28,6 @@ async def mcp_init_middleware_async( entrypoints = [] for server in config.get_servers(): - if entrypoint and server.name != entrypoint: continue @@ -37,14 +36,12 @@ async def mcp_init_middleware_async( "uniqueId": str(uuid.uuid4()), "type": "mcpserver", "input": {}, - "output": {} + "output": {}, } entrypoints.append(entrypoint_data) - uipath_data = { - "entryPoints": entrypoints - } + uipath_data = {"entryPoints": entrypoints} if write_config: config_path = write_config(uipath_data) @@ -66,6 +63,7 @@ async def mcp_init_middleware_async( should_include_stacktrace=True, ) + @overload def mcp_init_middleware(entrypoint: str) -> MiddlewareResult: ... @@ -78,7 +76,6 @@ def mcp_init_middleware( ) -> MiddlewareResult: ... - def mcp_init_middleware( entrypoint: str, options: dict[str, Any] | None = None,