Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

  • Understand current mcp.json structure and Serena configuration format
  • Learn about Serena MCP requirements from compiled workflows
  • Update .vscode/mcp.json to add Serena MCP server for Go and TypeScript
  • Install necessary toolchains (UV/uvx, Go, Node.js, language servers) in copilot-setup-steps.yml
  • Test the configuration with JSON validation
  • Fix Serena context parameter to use 'codex' instead of 'copilot'
  • Commit changes

Summary

Successfully updated the project to support Serena MCP for Go and TypeScript/JavaScript:

Changes Made

  1. Updated .vscode/mcp.json:

    • Added Serena MCP server configuration
    • Configured with uvx command to fetch from Serena GitHub repository
    • Set up PATH to include Go binaries (~/go/bin) and UV tools (~/.local/bin)
    • Used --context codex for proper Serena integration (fixed from initial copilot)
  2. Updated .github/workflows/copilot-setup-steps.yml:

    • Added UV (Python package manager) installation
    • Added gopls (Go language server) installation
    • Added TypeScript language server installation
    • These tools are necessary for Serena to provide IDE-like features

Configuration Details

The Serena MCP server is configured with:

  • Command: uvx --from git+https://github.com/oraios/serena serena start-mcp-server
  • Context: codex (Serena's internal context identifier)
  • Project: ${workspaceFolder} (current workspace)
  • Language Support: Go and TypeScript/JavaScript (via language servers)

This enables Serena to provide semantic code retrieval and editing tools directly to GitHub Copilot Agent.

Original prompt

Update project mcp.json to mount Serena MCP for Go and TypeScript/JavaScript.

  • update copilot steps to install Serena MCP, necessary toolchains
  • learn configuration format from the Serena tool in gh-aw cli

💡 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.

- Update .vscode/mcp.json to add Serena MCP server
- Configure Serena with uvx command from git repository
- Add PATH configuration for Go binaries and UV tools
- Update copilot-setup-steps.yml to install UV and language servers
- Install gopls (Go language server) and typescript-language-server
- Enable Go and TypeScript/JavaScript support for Serena

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update project mcp.json to configure Serena MCP for Go and TypeScript Add Serena MCP server configuration for Go and TypeScript Dec 20, 2025
Copilot AI requested a review from pelikhan December 20, 2025 14:14
.vscode/mcp.json Outdated
"serena",
"start-mcp-server",
"--context",
"copilot",
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot does not exist, use codex

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 259b267 - changed --context parameter from copilot to codex to match the configuration used in compiled workflows.

The --context parameter for Serena MCP should be 'codex', not 'copilot'.
This matches the configuration used in compiled workflows.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan December 20, 2025 14:35
@pelikhan pelikhan marked this pull request as ready for review December 20, 2025 14:38
@pelikhan pelikhan merged commit 5724d0b into main Dec 20, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/update-mcp-json-serena-mcp branch December 20, 2025 14:38
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