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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
Expand Down
11 changes: 4 additions & 7 deletions src/uipath_mcp/_cli/cli_init.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -28,7 +28,6 @@ async def mcp_init_middleware_async(
entrypoints = []

for server in config.get_servers():

if entrypoint and server.name != entrypoint:
continue

Expand All @@ -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)
Expand All @@ -66,6 +63,7 @@ async def mcp_init_middleware_async(
should_include_stacktrace=True,
)


@overload
def mcp_init_middleware(entrypoint: str) -> MiddlewareResult: ...

Expand All @@ -78,7 +76,6 @@ def mcp_init_middleware(
) -> MiddlewareResult: ...



def mcp_init_middleware(
entrypoint: str,
options: dict[str, Any] | None = None,
Expand Down