Add diagnostic logging for dispatch_workflow tool registration failures #12894
+269
−5
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.
Complete Solution: Missing dispatch_workflow Tools + Similar Tool Suggestions
Summary
Implemented a comprehensive solution for the issue where dispatch_workflow tools don't appear in the MCP server's available tools list, plus added intelligent tool suggestions when tools are missing.
Problems Addressed
Solutions Delivered
Part 1: Enhanced Diagnostic Logging ✅
Files:
actions/setup/js/safe_outputs_tools_loader.cjs,docs/troubleshooting-dispatch-workflow.mdFeatures:
Example Log Output:
Part 2: Similar Tool Suggestions ✅
Files:
actions/setup/js/mcp_server_core.cjs,actions/setup/js/mcp_server_core.test.cjsImplementation:
Example Error Messages:
Testing
Comprehensive Test Suite: ✅ 42/42 tests passing
New Tests Added:
Test Coverage:
Benefits
Files Changed
actions/setup/js/safe_outputs_tools_loader.cjs- Enhanced loggingactions/setup/js/mcp_server_core.cjs- Similarity matching + error messagesactions/setup/js/mcp_server_core.test.cjs- Comprehensive testsdocs/troubleshooting-dispatch-workflow.md- Complete troubleshooting guideCode Quality
✅ All tests passing (42/42)
✅ Code formatted
✅ No linting errors
✅ Well-documented functions
✅ Code review completed
Next Steps
When users report this issue:
gh aw compileOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.