Repository navigation
Add five new analysis tools to drain3 shared agentic workflow and PR diagnostic reporting - #1963
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| @@ -23,6 +23,7 @@ safe-outputs: | |||
|
|
|||
| imports: | |||
| - shared/mcp/jupyter.md | |||
There was a problem hiding this comment.
Removed Jupyter import from dev.md and recompiled the workflow successfully. The workflow now only imports mcp-debug.md for testing drain3 tools.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot add a custom safe output job to mcp-debug.md called "report_diagnostics_to_pull_request" This tool/job takes a input message: string that will be posted as a comment on the pull request associated with the triggering branch. The job should checkout sources, and use JavaScript actions/github-script to resolve the PR and post the comment. Setup permissions accordingly. The purpose of the tool is to allow the mcp-debug findings to be posted on the pull request being worked on. |
|
@copilot update dev.md to analyze .go source files using drain3. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added the The job:
Agent output format: {
"items": [{
"type": "report_diagnostics_to_pull_request",
"message": "## Diagnostic Report\n\n..."
}]
} |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated dev.md to analyze Go source files using drain3 in commit Changes:
|
| - Access to mcp-inspect tool for MCP server diagnostics | ||
| - Documentation for MCP debugging procedures | ||
| - Reference for common issues and solutions | ||
| - Safe-output job for posting diagnostic reports to pull requests |
There was a problem hiding this comment.
- remove integration with workflows
- rewrite the markdown as prompt, not a user manual.
Insist on using the safe output with any diagnostics results.
There was a problem hiding this comment.
Rewrote mcp-debug.md as an AI agent prompt in commit 7c5a8e7.
Changes:
- Removed "Integration with Workflows" section
- Rewritten as prompt: Changed from user manual to direct AI agent instructions ("You are an expert MCP server debugger...")
- Emphasized safe-output: Added "CRITICAL" requirement stating agent MUST use
report_diagnostics_to_pull_requestfor diagnostic findings - Streamlined: Reduced from 407 to ~280 lines, focusing on actionable debugging workflow
- Structured output template: Provides clear JSON format for diagnostic reports with required sections (Issue, Root Cause, Evidence, Impact, Fix, Workaround)
… safe-output Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Agentic Changeset Generator triggered by this pull request. |
Implementation Complete ✅
Successfully added 5 new tools to the drain3 MCP server and configured dev.md to demonstrate Go source code pattern analysis using drain3.
MCP Debug Enhancement
Added custom safe-output job
report_diagnostics_to_pull_requestto mcp-debug.md and rewrote the documentation as an AI agent prompt:Safe-Output Job: Enables AI agents to post MCP diagnostic findings directly to pull requests
messagestring parameter containing the diagnostic reportcontents: readandpull-requests: writepermissionsPrompt-Oriented Documentation: Rewrote mcp-debug.md from user manual to AI agent instructions
report_diagnostics_to_pull_requestsafe-output for all diagnostic findingsDev Workflow Enhancement
Updated dev.md to demonstrate drain3 capabilities with Go source code analysis:
index_filelist_clustersfind_anomaliessearch_patternThis workflow serves as a practical demonstration of using drain3 for code pattern analysis and anomaly detection in software projects.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.