Skip to content

Add Serena as built-in MCP tool for listing and inspection#7055

Merged
pelikhan merged 3 commits intomainfrom
copilot/list-serena-tools
Dec 20, 2025
Merged

Add Serena as built-in MCP tool for listing and inspection#7055
pelikhan merged 3 commits intomainfrom
copilot/list-serena-tools

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 20, 2025

The gh aw mcp list-tools serena command was not recognizing Serena as an MCP server, despite 16+ workflows using it. Serena was configured in workflows but excluded from the built-in MCP tool detection logic.

Changes

  • pkg/parser/mcp.go: Added Serena to processBuiltinMCPTool() alongside GitHub and Playwright

    • Configures as stdio MCP server using uvx command
    • Default args: uvx --from git+https://github.com/oraios/serena serena start-mcp-server --context codex --project ${GITHUB_WORKSPACE}
    • Allows all tools (*) by default unless explicitly restricted
  • pkg/cli/mcp_list_tools.go: Added "serena" to commonMCPServerNames for shell completion

Result

$ gh aw mcp list-tools serena
Found MCP server 'serena' in 16 workflow(s): archie, cloclo, daily-file-diet...

$ gh aw mcp list glossary-maintainer
MCP servers in glossary-maintainer.md
┌───────────┬──────┐
│Name       │Type  │
├───────────┼──────┤
│safeoutputs│stdio │
│serena     │stdio │  # Now detected
│github     │docker│
└───────────┴──────┘

Serena now appears in mcp list, mcp list-tools, mcp inspect, and shell completion alongside other built-in MCP servers.

Original prompt

Liste serena tools


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot there should already be support for Serena, double check

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] List available Serena tools Add Serena as built-in MCP tool for listing and inspection Dec 20, 2025
Copilot AI requested a review from pelikhan December 20, 2025 15:02
@pelikhan pelikhan marked this pull request as ready for review December 20, 2025 15:06
@pelikhan pelikhan merged commit 9ea73c6 into main Dec 20, 2025
4 of 5 checks passed
@pelikhan pelikhan deleted the copilot/list-serena-tools branch December 20, 2025 15:06
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.

2 participants