-
Notifications
You must be signed in to change notification settings - Fork 5
Fix: Use FpsContext slug if available #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,33 @@ class UiPathMcpRuntimeContext(UiPathRuntimeContext): | |||||
|
|
||||||
| config: Optional[McpConfig] = None | ||||||
| folder_key: Optional[str] = None | ||||||
| server_id: Optional[str] = None | ||||||
| server_slug: Optional[str] = None | ||||||
|
|
||||||
| @classmethod | ||||||
| def from_config(cls, config_path=None): | ||||||
| """Load configuration from uipath.json file with MCP-specific handling.""" | ||||||
| # Use the parent's implementation | ||||||
| instance = super().from_config(config_path) | ||||||
|
|
||||||
| # Convert to our type (since parent returns UiPathRuntimeContext) | ||||||
| mcp_instance = cls(**instance.model_dump()) | ||||||
|
|
||||||
| # Add AgentHub-specific configuration handling | ||||||
| import json | ||||||
|
||||||
| import os | ||||||
|
|
||||||
|
Comment on lines
+27
to
+29
|
||||||
| import json | |
| import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
config_pathparameter should have a type annotation. Consider addingconfig_path: Optional[str] = Nonefor better API clarity.