Skip to content

[PENDING] [WIP] Agent workflow to update Documentation#2550

Draft
anannya03 wants to merge 3 commits intomicrosoft:mainfrom
anannya03:agent_workflow_mcp_issue_labeler
Draft

[PENDING] [WIP] Agent workflow to update Documentation#2550
anannya03 wants to merge 3 commits intomicrosoft:mainfrom
anannya03:agent_workflow_mcp_issue_labeler

Conversation

@anannya03
Copy link
Copy Markdown
Contributor

What does this PR do?

DRAFT PR: Needs a bunch a clean up and .md file update

[Add additional context, screenshots, or information that helps reviewers]

GitHub issue number?

[Link to the GitHub issue this PR addresses]

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Created a changelog entry if the change falls among the following: new feature, bug fix, UI/UX update, breaking change, or updated dependencies. Follow the changelog entry guide
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes running the script ./eng/scripts/Process-PackageReadMe.ps1. See Package README
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json
    • For renamed tools, follow the Tool Rename Checklist and tag the PR with the breaking-change label
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated command list in servers/Azure.Mcp.Server/docs/azmcp-commands.md
    • Ran ./eng/scripts/Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • Updated test prompts in servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline
anannya03 and others added 3 commits April 29, 2026 13:17
Creates a GitHub Agentic Workflow that automatically triages new issues by:
- Analyzing issue content to determine the relevant service area
- Applying the correct service labels based on CODEOWNERS mapping
- Assigning the appropriate codeowners to the issue
- Posting a brief triage comment explaining the decision

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Creates a GitHub Agentic Workflow triggered on push to main that:
- Analyzes diffs for MCP tool name, metadata, or functionality changes
- Cross-references changes against azmcp-commands.md, e2eTestPrompts.md, and README.md
- Files GitHub issues for documentation gaps found
- Assigns issues to Copilot coding agent for implementation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@anannya03 anannya03 changed the title [PENDING] Agent workflow Documentation Update Apr 30, 2026
@anannya03 anannya03 changed the title [PENDING] [WIP] Agent workflow Documentation Update Apr 30, 2026
Copy link
Copy Markdown
Contributor

@jongio jongio left a comment

Choose a reason for hiding this comment

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

Early feedback on this draft. A few things to tighten up before it's ready.

The doc-gap-detector uses permissions: read-all which is broader than needed - the issue-triage workflow scopes permissions correctly and is a good pattern to follow. There's also a safe-outputs/prompt mismatch on issue creation limits (details inline).

Minor note: issue-triage doesn't set timeout-minutes while doc-gap-detector does (15 min). Worth adding for consistency and to cap runaway agent sessions.

branches: [main]
workflow_dispatch:

permissions: read-all
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

permissions: read-all grants read access to every permission scope. The issue-triage workflow scopes this correctly - consider doing the same here:

permissions:
  contents: read
  issues: write

The workflow only needs to read repo contents (for diffs) and write issues (for filing doc gap issues). read-all includes scopes like security-events and organization-administration that aren't needed here.

create-issue:
title-prefix: "[Docs]"
labels: ['documentation']
max: 1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

max: 1 here conflicts with rule #4 in the prompt below ("Max 3 issues per run"). The safe-output limit will silently cap the agent at 1 issue regardless of what the prompt says. Either bump this to max: 3 to match the prompt, or update the prompt rule to say max 1.

allowed:
- defaults
- github
- dotnet
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is dotnet network access needed here? This workflow analyzes diffs and creates issues - it doesn't build or run .NET code. If the agent doesn't need to reach NuGet or dotnet endpoints, dropping this tightens the network surface.

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

Labels

None yet

2 participants