Skip to content

fix: don't set COPILOT_HOME, and provide MCP instructions instead#286

Open
wdconinc wants to merge 3 commits into
masterfrom
copilot-home
Open

fix: don't set COPILOT_HOME, and provide MCP instructions instead#286
wdconinc wants to merge 3 commits into
masterfrom
copilot-home

Conversation

@wdconinc
Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

Setting COPILOT_HOME to a read-only directory in the container interferes with copilot startup inside the container. Wrappers or startup commands were considered to be too fragile to implement, so we take an indirect approach instead and provide instructions to the client itself. This is also a more scalable approach for other types of instructions.

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue: copilot not operational without unsetting COPILOT_HOME first)
  • New feature (issue #__)
  • Optimization (issue #__)
  • Updated documentation
  • other: __

Please check if any of the following apply

  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
  • AI was used in preparing this PR. Please describe usage below.

Currently copilot is not operational by default inside eic-shell.

Copilot AI review requested due to automatic review settings May 14, 2026 19:37
Copy link
Copy Markdown
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 attempts to stop setting COPILOT_HOME in the EIC container and instead expose Copilot custom instructions that point users toward MCP server configuration.

Changes:

  • Replaces COPILOT_HOME setup with COPILOT_CUSTOM_INSTRUCTIONS_DIRS.
  • Adds a Copilot instructions Markdown file describing available EIC MCP servers and how to enable them.

Reviewed changes

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

File Description
containers/eic/profile.d/z23_copilot_mcp.sh Sets the Copilot custom instructions directory to /etc/copilot unless already configured.
containers/eic/copilot/mcp-config.instructions.md Adds instructions for enabling pre-installed MCP servers from user configuration.

Comment thread containers/eic/copilot/mcp-config.instructions.md
Comment thread containers/eic/copilot/mcp-config.instructions.md
Copilot AI review requested due to automatic review settings May 14, 2026 19:49
Removed specific MCP server configuration and updated the copy command to include the entire copilot directory.
Copy link
Copy Markdown
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

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

Comment thread containers/eic/copilot/mcp-config.instructions.md
Comment thread containers/eic/copilot/mcp-config.instructions.md
@wdconinc wdconinc requested a review from veprbl May 14, 2026 19:53
@wdconinc wdconinc enabled auto-merge (squash) May 14, 2026 21:28
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