-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path__init__.py
More file actions
30 lines (22 loc) · 826 Bytes
/
__init__.py
File metadata and controls
30 lines (22 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""UiPath MCP Runtime package."""
from uipath.runtime import (
UiPathRuntimeContext,
UiPathRuntimeFactoryProtocol,
UiPathRuntimeFactoryRegistry,
)
from uipath_mcp._cli._runtime._factory import UiPathMcpRuntimeFactory
from uipath_mcp._cli._runtime._runtime import UiPathMcpRuntime
def register_runtime_factory() -> None:
"""Register the MCP factory. Called automatically via entry point."""
def create_factory(
context: UiPathRuntimeContext | None = None,
) -> UiPathRuntimeFactoryProtocol:
return UiPathMcpRuntimeFactory(
context=context if context else UiPathRuntimeContext(),
)
UiPathRuntimeFactoryRegistry.register("mcp", create_factory, "mcp.json")
__all__ = [
"register_runtime_factory",
"UiPathMcpRuntimeFactory",
"UiPathMcpRuntime",
]