Fix observability workflow to use MCP server tools instead of shell commands #11702
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.
The daily observability workflow had
tools: agentic-workflows: trueconfigured but instructed agents to run shell commands (gh aw status,gh aw logs) instead of calling MCP server tools. This caused the workflow to report 0 runs analyzed and fail to collect any firewall or MCP gateway telemetry.Changes
Added MCP tool usage warning in Phase 1 to clarify these are tool calls, not shell commands
Converted shell commands to MCP tool format:
Before:
After:
Updated output paths throughout:
/tmp/gh-aw/observability-logs/→/tmp/gh-aw/aw-mcp/logs/(MCP tools output location)The workflow now correctly instructs agents to invoke MCP server tools with JSON parameters, restoring observability coverage for firewall access logs and MCP gateway telemetry.
Original prompt
This section details on the original issue you should resolve
<issue_title>Fix observability workflow to use MCP server tools</issue_title>
<issue_description># Q Workflow Optimization Report
Issues Found (from live data)
Daily Observability Report (daily-observability-report.md)
gh aw logs) instead of using MCP server toolsRoot Cause Analysis
The workflow is configured with
tools: agentic-workflows: truewhich sets up the gh-aw MCP server exposing tools likestatus,logs, andaudit. However, the workflow instructions contained shell command examples like:When the agent tried to execute these shell commands, they failed because:
/tmp/gh-aw/aw-mcp/logs/not/tmp/gh-aw/observability-logs/)Changes Made
.github/workflows/daily-observability-report.md
Added clear MCP tool guidance:
status,logs, andauditare MCP server toolsUpdated Phase 1 (Fetch Workflow Runs):
statusMCP tool with JSON parameterslogsMCP tool with JSON parameters/tmp/gh-aw/aw-mcp/logs/)Updated file paths throughout:
/tmp/gh-aw/observability-logs/→/tmp/gh-aw/aw-mcp/logs/(MCP tool output location)Example of changes:
Before:
After:
Expected Improvements
Validation
✅ Workflow compiled successfully with
gh aw compile daily-observability-reportNote: Lock file will be regenerated automatically after merge by the copilot agent.
References
status,logs,audit,compile, and other tools/tmp/gh-aw/aw-mcp/logs/Q Mission Summary: Investigated Daily Regulatory Report findings, identified MCP tool configuration issue, made surgical fix to workflow instructions, validated compilation. This fix should restore the Daily Observability Report functionality and prevent similar issues in other workflows using the agentic-workflows MCP server.
To apply the patch locally:
Show patch preview (149 of...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.