Skip to content

Comments

Fix Serena MCP tools configuration in smoke-copilot workflow#1200

Merged
lpcox merged 2 commits intomainfrom
claude/fix-serena-mcp-tools-issue
Feb 20, 2026
Merged

Fix Serena MCP tools configuration in smoke-copilot workflow#1200
lpcox merged 2 commits intomainfrom
claude/fix-serena-mcp-tools-issue

Conversation

@Claude
Copy link
Contributor

@Claude Claude AI commented Feb 20, 2026

The smoke-copilot workflow was reporting "Tools not available in this agent context" for Serena MCP tests (serena-activate_project, serena-find_symbol), causing a partial test failure (8/9 tests passing).

Root Cause

Incorrect tool configuration syntax:

# ❌ Non-standard nested format (broken)
tools:
  serena:
    languages:
      go: {}

This nested structure prevented the workflow compiler from properly registering Serena tools in the agent context.

Fix

Changed to standard array format used by all other workflows:

# ✅ Correct array format
tools:
  serena: ["go"]

Changes

  • smoke-copilot.md: Replace nested languages structure with array format (lines 44-46)
  • smoke-copilot.lock.yml: Regenerated via gh aw compile (frontmatter hash updated)

This aligns with duplicate-code-detector, smoke-codex, test-improver, and test-coverage-improver workflows which all use the array format and have working Serena tool access.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh pr view 1195 --json title,body,files /home/REDACTED/.nvm/install.sh /home/REDACTED/.nvm/nvm-exec /home/REDACTED/.nvm/nvm.sh /home/REDACTED/.nvm/package.json /home/REDACTED/.nvm/rename_test.sh /home/REDACTED/.nvm/test conf�� get --global cal/bin/git user.email (http block)
  • https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha d -n 10 HEAD /usr/bin/tail vailable ena-mcp-tests/MC-d ndor/bin/grep tail -1 /usr/bin/sed grep t vailable ena-mcp-tests/RE-d cal/bin/grep base64 (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq .object.sha d -n 10 HEAD /usr/bin/tail vailable ena-mcp-tests/MC-d cal/bin/grep tf "%s%s", sep, $0; sep=RS } -n 1 grep nfig/composer/vendor/bin/git vailable .md rgo/bin/grep base64 (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Smoke Test: Copilot - 22243401416</issue_title>
<issue_description>## Smoke Test Results

Test Status
GitHub MCP - Last 2 merged PRs ✅ PR #1195 "Fix Serena MCP test tool discovery in smoke test workflow", PR #1186 "Eliminate duplicate code in server HTTP endpoint registration"
Safe Inputs GH CLI - 2 PRs ✅ PR #1196 "[WIP] Refactor semantic function clustering for code organization"
Serena MCP - activate_project + find_symbol ❌ Tools not available in this agent context
Make Build make build succeeded, awmg binary produced
Playwright - github.com title ✅ Title contains "GitHub"
File Writing /tmp/gh-aw/agent/smoke-test-copilot-22243401416.txt created
Bash Tool ✅ File read back successfully
Discussion Interaction ✅ Comment added to discussion #45
Agentic Workflows MCP Status ✅ smoke-copilot: compiled=Yes, triggers=PR/reaction/schedule

Overall Status: ⚠️ PARTIAL PASS (8/9 tests passed, Serena tools unavailable)

Run URL: https://github.com/github/gh-aw-mcpg/actions/runs/22243401416
Timestamp: 2026-02-20T22:21 UTC

📰 BREAKING: Report filed by Smoke Copilot

  • expires on Feb 21, 2026, 12:23 AM UTC

<agent_instructions>Figure out why serena is not passing</agent_instructions>

Comments on the Issue (you are @claude[agent] in this section)

Change Serena tool configuration from incorrect nested format to correct array format:
- Before: serena: { languages: { go: {} } }
- After: serena: ["go"]

This aligns with all other workflows (duplicate-code-detector, smoke-codex, test-improver) and ensures Serena tools (serena-activate_project, serena-find_symbol) are available in the agent context.

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
@lpcox lpcox marked this pull request as ready for review February 20, 2026 22:30
Copilot AI review requested due to automatic review settings February 20, 2026 22:30
@Claude Claude AI changed the title [WIP] Fix Serena MCP tools not available in smoke test Fix Serena MCP tools configuration in smoke-copilot workflow Feb 20, 2026
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 fixes the Serena MCP tools availability issue in the smoke-copilot workflow by correcting the tool configuration format from an incorrect nested structure to the standard array format used throughout the codebase.

Changes:

  • Changed Serena tool configuration from nested format serena: { languages: { go: {} } } to array format serena: ["go"] in smoke-copilot.md
  • Recompiled the workflow to update the lock file with the new configuration hash

Reviewed changes

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

File Description
.github/workflows/smoke-copilot.md Fixed Serena tool configuration from nested format to array format, consistent with all other workflows
.github/workflows/smoke-copilot.lock.yml Updated frontmatter_hash to reflect the configuration change after recompilation

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

@lpcox lpcox merged commit e3e8080 into main Feb 20, 2026
6 checks passed
@lpcox lpcox deleted the claude/fix-serena-mcp-tools-issue branch February 20, 2026 22:59
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.

Smoke Test: Copilot - 22243401416

2 participants