Skip to content

Feature (all agents): Add selection field for popular MCP servers with auto-configuration #888

Open

Description

@Harsh9485

Overview

When users create a template with any agent (Claude Code, Gemini CLI, etc.), an MCP server selection field should appear (similar to JetBrains IDE integrations). This field would list popular MCP servers like microsoft/playwright-mcp and GitHub MCP Server, allowing users to select servers based on their use case.

This feature aligns with Coder's goal of reducing project setup time by eliminating the need for users to manually configure each MCP server.

Proposed Implementation

  • Add an mcp-servers/ folder within each agent's template directory
  • Store individual .sh setup scripts in this folder (e.g., playwright-mcp.sh, github-mcp.sh)
  • In main.tf, reference the selected MCP server scripts and inject them into the coder_script or coder_utils post_install_script resource's startup script
  • Execute the configuration automatically during workspace provisioning

Activity

  1. matifali commented on May 12, 2026

    @matifali
    Collaborator

    What about publishing a new module using something like https://github.com/paoloricciuti/mcp-add to add mcp for any agent?
    Then users can use this new module along with any agent modules to configure MCP servers.

  2. Harsh9485 commented on May 13, 2026

    @Harsh9485
    ContributorAuthor

    What about publishing a new module using something like https://github.com/paoloricciuti/mcp-add to add mcp for any agent? Then users can use this new module along with any agent modules to configure MCP servers.

    @matifali
    A practical solution that solves the problem is that we don’t need separate scripts for every MCP server configuration. However, this mcp-add project currently can’t configure multiple MCP servers with a single command, so we need to run it once for each MCP server. That’s not a big issue in my opinion.

    Also, I think this module should mainly support official MCP servers, not custom MCP servers, because the modules already provide variables for configuring custom MCPs.

  3. DevelopmentCats commented on May 13, 2026

    @DevelopmentCats
    Collaborator

    What about publishing a new module using something like https://github.com/paoloricciuti/mcp-add to add mcp for any agent? Then users can use this new module along with any agent modules to configure MCP servers.

    @matifali A practical solution that solves the problem is that we don’t need separate scripts for every MCP server configuration. However, this mcp-add project currently can’t configure multiple MCP servers with a single command, so we need to run it once for each MCP server. That’s not a big issue in my opinion.

    Also, I think this module should mainly support official MCP servers, not custom MCP servers, because the modules already provide variables for configuring custom MCPs.

    I think the move might even be to plan to use this for all mcp server installs on any agent, and this could even be referenced inside of the other modules in the future if we wanted to drop the individual support for mcp servers in the modules.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions