Skip to content

Commit 5bef28c

Browse files
committed
fix: extract fpsContext from runtime config
1 parent 2f8547f commit 5bef28c

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-mcp"
3-
version = "0.0.99"
3+
version = "0.0.100"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath_mcp/_cli/_runtime/_context.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@ def from_config(cls, config_path=None):
2828
import os
2929

3030
path = config_path or "uipath.json"
31-
print("PATH:", path)
32-
print(os.path.exists(path))
3331
if os.path.exists(path):
3432
with open(path, "r") as f:
3533
config = json.load(f)
36-
print("CONFIG:")
37-
print(json.dumps(config, indent=2))
38-
if "fpsContext" in config:
39-
fps_context = config["fpsContext"]
34+
35+
config_runtime = config.get("runtime", {})
36+
if "fpsContext" in config_runtime:
37+
fps_context = config_runtime["fpsContext"]
4038
mcp_instance.server_id = fps_context.get("Id")
4139
mcp_instance.server_slug = fps_context.get("Slug")
42-
40+
print("MCP INSTANCE:")
41+
print(mcp_instance)
4342
return mcp_instance
4443

4544

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)