Skip to content

feat: add fallback for folder_key in mcp service#1484

Merged
dianagrecu-uipath merged 3 commits intomainfrom
feat/add-fallback-for-folder_key-mcp
Mar 27, 2026
Merged

feat: add fallback for folder_key in mcp service#1484
dianagrecu-uipath merged 3 commits intomainfrom
feat/add-fallback-for-folder_key-mcp

Conversation

@dianagrecu-uipath
Copy link
Copy Markdown
Contributor

What changed?

UIPATH_FOLDER_KEY is properly populated by the container runtime, but UIPATH_FOLDER_PATH is not. This becomes an issue for services like MCP, where @resource_override handles folder_path — but when there's no resource override, the code falls through to retrieve_folder_key(folder_path), which throws a ValueError because folder_path is None.

Added a fallback for folder_key - in case folder_path is missing, then take folder_key value from FolderContext (since mcp service already inherited FolderContext).

@github-actions github-actions Bot added the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Mar 24, 2026
@dianagrecu-uipath dianagrecu-uipath force-pushed the feat/add-fallback-for-folder_key-mcp branch 2 times, most recently from bf70c61 to afeb361 Compare March 25, 2026 14:11
@dianagrecu-uipath dianagrecu-uipath force-pushed the feat/add-fallback-for-folder_key-mcp branch from 1063057 to 6fa7385 Compare March 27, 2026 08:22
@dianagrecu-uipath dianagrecu-uipath merged commit b9bcaab into main Mar 27, 2026
117 checks passed
@dianagrecu-uipath dianagrecu-uipath deleted the feat/add-fallback-for-folder_key-mcp branch March 27, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants