fix(mcp): Adding error handling for generate keys panel#8795
Merged
preetriti1 merged 3 commits intomainfrom Feb 6, 2026
Merged
fix(mcp): Adding error handling for generate keys panel#8795preetriti1 merged 3 commits intomainfrom
preetriti1 merged 3 commits intomainfrom
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | Use imperative tense: fix(mcp): Add error handling for Generate Keys panel and update tests |
| Commit Type | ✅ | No change needed |
| Risk Level | ✅ | Label matches body; keep risk:low |
| What & Why | Expand to list key files and clarify purpose | |
| Impact of Change | Clarify standalone appId/location changes and error-shape impact on consumers | |
| Test Plan | ✅ | Add filenames and brief coverage summary |
| Contributors | ✅ | OK (add more if relevant) |
| Screenshots/Videos | ✅ | OK |
Final message:
Please update the PR body with the clarifications above (especially What & Why and Impact of Change). Specific suggestions to include in the PR body:
- A short list of changed areas/files (e.g., libs/designer/src/lib/core/mcp/utils/server.ts, generatekeys UI and tests, localization strings.json, apps/Standalone/src/mcp/app/McpServer.tsx, create.tsx link changes).
- Explicitly state whether the McpServer appId/location change is test/demo-only and confirm it won't affect production resources or include secrets.
- Note the new error shaping behavior: we now extract nested error messages via getObjectPropertyValue and format them with {errorMessage} — call out any possible consumer impact.
- In Test Plan, mention the test files added/updated and what they assert, and why E2E tests were not added (if applicable).
Once you add those clarifications, this PR body will be clear and well-aligned with the code changes. Thank you for the thorough unit tests and the localization/template consistency updates — these make the change robust and easier to review.
Last updated: Thu, 05 Feb 2026 23:54:11 GMT
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds error handling to the MCP generate keys panel to display error messages when key generation fails, along with minor fixes to documentation links in the create server panel.
Changes:
- Added error state management and display in the generate keys panel
- Improved error message extraction from API responses using
getObjectPropertyValue - Updated unit tests to cover success and error scenarios
- Updated documentation URLs to use forwarding links
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/designer/src/lib/ui/mcp/panel/server/generatekeys.tsx | Added error state, try-catch block, and error message bar rendering |
| libs/designer/src/lib/core/mcp/utils/server.ts | Enhanced error extraction logic using getObjectPropertyValue for both generateKeys and updateAuthSettings functions |
| libs/designer/src/lib/ui/mcp/panel/server/test/generatekeys.spec.tsx | Added tests for success and error scenarios, introduced setupService helper for mocking service behavior |
| libs/designer/src/lib/ui/mcp/panel/server/create.tsx | Updated documentation URLs to use go.microsoft.com forwarding links |
| Localize/lang/strings.json | Updated localization string placeholders from {error} to {errorMessage} |
| apps/Standalone/src/mcp/app/McpServer.tsx | Changed test configuration (appId and location) |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesigner.tsx | Removed invokeWorkflow operation from client-supported operations list |
|
📊 Coverage check completed. See workflow run for details. |
1 similar comment
|
📊 Coverage check completed. See workflow run for details. |
|
📊 Coverage check completed. See workflow run for details. |
lambrianmsft
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Type
Risk Level
What & Why
Adding error handling in generate keys panel to show errors when Generate keys fail
Minor fix on forward links on create server panel
Impact of Change
Test Plan
Contributors
@kewear
Screenshots/Videos