Skip to content

Add gh-aw MCP server to python-data-charts workflow#3533

Merged
pelikhan merged 2 commits intomainfrom
copilot/add-gh-aw-mcp-server
Nov 9, 2025
Merged

Add gh-aw MCP server to python-data-charts workflow#3533
pelikhan merged 2 commits intomainfrom
copilot/add-gh-aw-mcp-server

Conversation

Copy link
Contributor

Copilot AI commented Nov 9, 2025

Enables workflow introspection capabilities (status, logs, audit, compile) for the python-data-charts workflow by adding the agentic-workflows MCP server.

Changes

  • Added agentic-workflows: tool to workflow frontmatter
 engine: copilot
 tools:
+  agentic-workflows:
   edit:

This follows the pattern established in dev-hawk.md, craft.md, daily-firewall-report.md, and example-workflow-analyzer.md.

Impact

The workflow can now analyze its own execution history and debug failures using gh-aw MCP tools. Python library installation remains handled by the existing shared/python-dataviz.md import.

Original prompt

This section details on the original issue you should resolve

<issue_title>[q] Add gh-aw MCP server to python-data-charts workflow</issue_title>
<issue_description># Q Workflow Optimization Report

Context

This PR addresses the request: "/q fix workflow to pre install python libraries and configure gh-aw mcp"

Investigation Summary

Trigger Analysis

  • Request: Add gh-aw MCP server configuration to python-data-charts workflow
  • Current State: Workflow imports shared/python-dataviz.md which handles Python library installation
  • Issue: Missing gh-aw MCP server for workflow introspection capabilities

Python Library Installation Status ✅

Already Configured - The workflow imports shared/python-dataviz.md which includes:

  • Step: Install Python scientific libraries (line 42-53)
    • NumPy, Pandas, Matplotlib, Seaborn, SciPy
    • Uses pip install --user for local installation
    • Includes verification checks for all libraries
  • Directory structure setup for data, charts, and artifacts
  • Automatic artifact upload for generated charts and source files

No changes needed for Python library pre-installation - this is already working correctly via the shared import.

Changes Made

python-data-charts.md (.github/workflows/python-data-charts.md)

Added gh-aw MCP server tool:

 tools:
+  agentic-workflows:
   edit:

Why this change?

  • Enables workflow introspection using gh-aw MCP server tools (status, logs, audit, compile)
  • Allows the agent to analyze workflow performance and execution history
  • Provides debugging capabilities for workflow runs
  • Follows the pattern used in other workflows (dev-hawk.md, craft.md, daily-firewall-report.md, example-workflow-analyzer.md)

Expected Improvements

Workflow introspection enabled - Agent can now analyze workflow runs and performance
Python libraries already pre-installed - No changes needed (handled by shared/python-dataviz.md)
Debugging capabilities - Agent can use gh-aw tools to investigate issues
Performance analysis - Agent can review logs and metrics from past runs
Consistent patterns - Aligns with other workflows using gh-aw MCP server

Validation

Workflow compiled successfully using gh aw compile python-data-charts:

  • Output: .github/workflows/python-data-charts.lock.yml (243.3 KB)
  • No compilation errors or warnings
  • All configurations validated

No .lock.yml files included - Will be generated automatically after merge

Pattern Consistency

This change follows the established pattern from 4 other workflows already using agentic-workflows: tool:

  • dev-hawk.md - Development workflow monitor
  • craft.md - Workflow creation agent
  • daily-firewall-report.md - Firewall analysis
  • example-workflow-analyzer.md - Weekly workflow analysis

Technical Details

MCP Server Configuration

The agentic-workflows: tool enables these capabilities:

  • status - View workflow file status in repository
  • logs - Download and analyze workflow run logs
  • audit - Investigate specific workflow run failures
  • compile - Validate workflow compilation

No Impact on Existing Functionality

  • Python library installation unchanged (still via shared/python-dataviz.md)
  • Workflow trigger (workflow_dispatch) unchanged
  • Safe outputs configuration unchanged
  • Permissions unchanged
  • Timeout unchanged

Security & Best Practices

Minimal changes - Only added one tool configuration line
Validated compilation - Workflow compiles without errors
Follows established patterns - Matches other workflows in the repository
No new permissions needed - Existing permissions sufficient
No lock files - Let automation handle .lock.yml generation


Q Mission Complete - Workflow optimized with minimal, surgical changes based on established patterns and validated compilation.

AI generated by Q


[!NOTE]
This was originally intended as a pull request, but the git push operation failed.

Workflow Run: View run details and download patch artifact

The patch file is available as an artifact (aw.patch) in the workflow run linked above.
To apply the patch locally:

# Download the artifact from the workflow run https://github.com/githubnext/gh-aw/actions/runs/19210427486
# (Use GitHub MCP tools if gh CLI is not available)
gh run download 19210427486 -n aw.patch
# Apply the patch
git am aw.patch
Show patch (48 lines)
From 9808b97ae8ad5e2757d59f15cd7b025f74514a08 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Sun, 9 Nov 2025 15:22:29 +0000
Subject: [PATCH] Add gh-aw MCP server to python-data-charts workflow
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Co...

</details>

- Fixes githubnext/gh-aw#3531

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add gh-aw MCP server to python-data-charts workflow Add gh-aw MCP server to python-data-charts workflow Nov 9, 2025
Copilot AI requested a review from pelikhan November 9, 2025 18:47
@pelikhan pelikhan marked this pull request as ready for review November 9, 2025 19:00
Copilot AI review requested due to automatic review settings November 9, 2025 19:00
@pelikhan pelikhan merged commit b2200d3 into main Nov 9, 2025
57 of 61 checks passed
@pelikhan pelikhan deleted the copilot/add-gh-aw-mcp-server branch November 9, 2025 19:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the agentic-workflows MCP server to the python-data-charts workflow, enabling AI agents to analyze workflow execution history, download logs, and audit failures. The change adds workflow introspection capabilities to the Python data visualization workflow.

Key changes:

  • Adds agentic-workflows: tool to workflow frontmatter
  • Installs gh-aw CLI extension in the compiled workflow
  • Configures agentic_workflows MCP server with GitHub token authentication

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/python-data-charts.md Adds agentic-workflows tool to the tools configuration
.github/workflows/python-data-charts.lock.yml Adds gh-aw extension installation step and agentic_workflows MCP server configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants