Skip to content

Commit 3f551f7

Browse files
authored
Merge pull request #115 from UiPath/fix/update_server_types
fix: update server types
2 parents 00e4554 + a16e377 commit 3f551f7

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/uipath_mcp/_cli/_runtime/_context.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class UiPathServerType(Enum):
2020
2121
Attributes:
2222
UiPath (0): Standard UiPath server for Processes, Agents, and Activities
23-
External (1): External server types like npx, uvx
24-
Local (2): Local MCP server (PackageType.MCPServer)
25-
Hosted (3): Tunnel to externally hosted server
23+
Command (1): Command server types like npx, uvx
24+
Coded (2): Coded MCP server (PackageType.MCPServer)
25+
SelfHosted (3): Tunnel to externally hosted server
2626
"""
2727

2828
UiPath = 0 # type: int # Processes, Agents, Activities
29-
External = 1 # type: int # npx, uvx
30-
Local = 2 # type: int # PackageType.MCPServer
31-
Hosted = 3 # type: int # tunnel to externally hosted server
29+
Command = 1 # type: int # npx, uvx
30+
Coded = 2 # type: int # PackageType.MCPServer
31+
SelfHosted = 3 # type: int # tunnel to externally hosted server
3232

3333
@classmethod
3434
def from_string(cls, name: str) -> "UiPathServerType":
@@ -43,8 +43,8 @@ def get_description(cls, server_type: "UiPathServerType") -> str:
4343
"""Get description for a server type."""
4444
descriptions = {
4545
cls.UiPath: "Standard UiPath server for Processes, Agents, and Activities",
46-
cls.External: "External server types like npx, uvx",
47-
cls.Local: "Local MCP server (PackageType.MCPServer)",
48-
cls.Hosted: "Tunnel to externally hosted server",
46+
cls.Command: "Command server types like npx, uvx",
47+
cls.Coded: "Coded MCP server (PackageType.MCPServer)",
48+
cls.SelfHosted: "Tunnel to externally hosted server",
4949
}
5050
return descriptions.get(server_type, "Unknown server type")

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ async def _register(self) -> None:
286286
server_stderr_output = ""
287287
env_vars = self._server.env
288288

289-
# if server is Local, include environment variables
290-
if self.server_type is UiPathServerType.Local:
289+
# if server is Coded, include environment variables
290+
if self.server_type is UiPathServerType.Coded:
291291
for name, value in os.environ.items():
292292
# config env variables should have precedence over system ones
293293
if name not in env_vars:
@@ -553,12 +553,12 @@ def server_type(self) -> UiPathServerType:
553553
UiPathServerType: The appropriate server type enum value based on the runtime configuration.
554554
"""
555555
if self.packaged:
556-
# If it's a packaged runtime (has a process_key), it's a Local server
556+
# If it's a packaged runtime (has a process_key), it's a Coded server
557557
# Packaged runtimes are also sandboxed
558-
return UiPathServerType.Local
558+
return UiPathServerType.Coded
559559
elif self.sandboxed:
560-
# If it's sandboxed but not packaged, it's an External server
561-
return UiPathServerType.External
560+
# If it's sandboxed but not packaged, it's a Command server
561+
return UiPathServerType.Command
562562
else:
563-
# If it's neither packaged nor sandboxed, it's a Hosted server
564-
return UiPathServerType.Hosted
563+
# If it's neither packaged nor sandboxed, it's a SelfHosted server
564+
return UiPathServerType.SelfHosted

0 commit comments

Comments
 (0)