Skip to content

Add MCP tools list to action logs#5813

Merged
pelikhan merged 6 commits intomainfrom
copilot/add-mcp-tools-to-action-log
Dec 8, 2025
Merged

Add MCP tools list to action logs#5813
pelikhan merged 6 commits intomainfrom
copilot/add-mcp-tools-to-action-log

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

The "Available Tools" section was only written to GitHub Step Summary, not to action logs (stdout), making it harder to see which tools were available when reviewing execution logs.

Changes

Modified generatePlainTextSummary() in log_parser_shared.cjs:

  • Extracts tools from init entry and categorizes by type (Builtin, Safe Outputs, Git/GitHub, Playwright, Custom Agents, etc.)
  • Adds formatted tools list to plain text summary written via core.info()
  • Handles pluralization (singular "tool" vs plural "tools")

Added tests:

  • Coverage for tools list rendering with various tool configurations
  • Edge cases: empty tools lists, missing init entries

Recompiled workflows:

  • All 103 workflow lock.yml files updated with embedded JavaScript changes

Output

Action logs now include:

=== Copilot Execution Summary ===
Model: gpt-4

Available Tools:

Builtin: 4 tools
bash, view, create, edit
Safe Outputs: 2 tools
create_issue, add_comment
Git/GitHub: 2 tools
github::search_issues, github::create_issue
Playwright: 1 tool
playwright::navigate
Custom Agents: 2 tools
create-agentic-workflow, debug-agentic-workflow

Statistics:
  Turns: 3
Original prompt

Write mcp tools list in action log when rendering agent logs (currently only show in step sumkary):

Available Tools:

Builtin: 12 tools
bash, write_bash, read_bash, stop_bash, list_bash, grep, glob, view, create, edit, report_intent, fetch_copilot_cli_documentation
Safe Outputs: 5 tools
create_issue, add_comment, add_labels, missing_tool, noop
Git/GitHub: 22 tools
github::get_commit, github::get_file_contents, github::get_label, github::get_latest_release, github::get_me, github::get_release_by_tag, github::get_tag, github::get_team_members, github::get_teams, github::issue_read, github::list_branches, github::list_commits, github::list_issue_types, github::list_issues, github::list_pull_requests, github::list_releases, github::list_tags, github::pull_request_read, github::search_code, github::search_issues, github::search_pull_requests, github::search_repositories
Custom Agents: 6 tools
create-agentic-workflow, create-shared-agentic-workflow, debug-agentic-workflow, interactive-agent-designer, speckit-dispatcher, technical-doc-writer

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


Changeset

  • Type: patch
  • Description: Add MCP tools list to action logs. generatePlainTextSummary() now writes a formatted list of available MCP tools to action logs (via core.info()), improving visibility when reviewing execution logs. Tests were added and workflows were recompiled.

🏴‍☠️ Ahoy! This treasure was crafted by Changeset Generator


Smoke Test Summary (2025-12-08T04:44:00Z)

Status: PASS
Summary: Copilot engine validated - GitHub MCP, file operations, bash, playwright, cache memory, and safe-input gh tool all functional.

🤖 DIAGNOSTIC REPORT GENERATED BY Smoke Copilot No Firewall

Copilot AI self-assigned this Dec 8, 2025
Copilot AI and others added 4 commits December 8, 2025 04:16
- Modified generatePlainTextSummary() in log_parser_shared.cjs to include tools list
- Tools are categorized by type (Builtin, Safe Outputs, Git/GitHub, Custom Agents, etc.)
- Added comprehensive tests for the new functionality
- All log parser tests passing (Copilot, Claude, Codex)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- All lock.yml files updated with new generatePlainTextSummary() function
- JavaScript code properly embedded in workflow files

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Use singular "tool" when count is 1, "tools" otherwise
- Updated tests to match corrected output

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- All lock.yml files updated with corrected pluralization logic
- Singular "tool" used when count is 1, "tools" when count is > 1

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add MCP tools list to action log Add MCP tools list to action logs Dec 8, 2025
Copilot AI requested a review from pelikhan December 8, 2025 04:33
@pelikhan pelikhan marked this pull request as ready for review December 8, 2025 04:41
@pelikhan pelikhan added the smoke label Dec 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

🤖 SYSTEM_INIT: Smoke Copilot No Firewall ACTIVATED. PROCESSING pull request. ALL SUBSYSTEMS ONLINE.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request...

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...]

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

📰 BREAKING: Smoke Copilot Playwright is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP Testing (retrieved PRs)
  • ✅ File Writing Testing (created test file)
  • ✅ Bash Tool Testing (verified file contents)
  • ✅ GitHub MCP Default Toolset (confirmed get_me not available)
  • ✅ Cache Memory Testing (created and verified cache file)
  • ✅ Safe Input gh Tool (listed issues successfully)

Overall Status: PASS

📰 BREAKING: Report filed by Smoke Copilot fer issue #5813 🗺️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Smoke Test Summary (2025-12-08T04:43:41Z)

Status: PASS

Recent PRs:

Test Results:
✅ GitHub MCP (fetched recent PRs)
✅ File operations (agent temp file)
✅ Bash tool (verified file creation)
✅ Playwright (navigated to github.com, verified title)
✅ Cache memory (created and verified test file)
✅ Safe-input gh tool (listed issues)

🤖 DIAGNOSTIC REPORT GENERATED BY Smoke Claude

💥 [THE END] — Illustrated by Smoke Claude fer issue #5813 🗺️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Smoke Test Results - Run 20016937078

Playwright MCP: Navigated to https://github.com - title contains "GitHub"
Cache Memory: File created at /tmp/gh-aw/cache-memory/smoke-test-20016937078.txt
GitHub Safe Input: Retrieved 3 issues from repository

Status: PASS

📰 BREAKING: Report filed by Smoke Copilot Playwright fer issue #5813 🗺️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

GitHub MCP recent PRs:

  • Fix test failures: update expected domains and file lists
  • Update Claude Code CLI from 2.0.60 to 2.0.61
    GitHub MCP test ✅
    File write + cat ✅
    Playwright title check ✅
    Cache memory write ✅
    gh issues list (safe input) ❌ (gh not authenticated)
    Overall: FAIL

🔮 The oracle has spoken through Smoke Codex fer issue #5813 🗺️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Smoke Test Results: Copilot Engine

Last 2 Merged PRs:

  • Fix test failures: update expected domains and file lists
  • Update Claude Code CLI from 2.0.60 to 2.0.61

Test Results:

Overall Status: PASS

📰🔥📋 https://github.com/githubnext/gh-aw/actions/runs/20016937059 fer issue #5813 🗺️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Smoke Test Results (2025-12-08T04:44:00Z)

PR Titles:

Test Results:

  • ✅ GitHub MCP Testing
  • ✅ File Writing Testing
  • ✅ Bash Tool Testing
  • ✅ Playwright MCP Testing (GitHub page title verified)
  • ✅ Cache Memory Testing
  • ✅ Safe Input gh Tool Testing

Overall Status: PASS

🤖 DIAGNOSTIC REPORT GENERATED BY Smoke Copilot No Firewall fer issue #5813 🗺️

@pelikhan pelikhan merged commit c52308b into main Dec 8, 2025
14 of 15 checks passed
@pelikhan pelikhan deleted the copilot/add-mcp-tools-to-action-log branch December 8, 2025 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants