Skip to content

feat: add fallback for folder_key in mcp service#1484

Open
dianagrecu-uipath wants to merge 2 commits intomainfrom
feat/add-fallback-for-folder_key-mcp
Open

feat: add fallback for folder_key in mcp service#1484
dianagrecu-uipath wants to merge 2 commits intomainfrom
feat/add-fallback-for-folder_key-mcp

Conversation

@dianagrecu-uipath
Copy link
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 from d06a551 to a897686 Compare March 24, 2026 14:32
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.

1 participant