Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

The safeoutputs MCP server receives GITHUB_WORKSPACE as an environment variable but cannot access workspace files because the directory isn't mounted in the container.

Changes

  • Added workspace mount: New DefaultWorkspaceMount constant (${{ github.workspace }}:${{ github.workspace }}:rw) added to safeoutputs MCP server configuration
  • Updated renderers: Both JSON (renderSafeOutputsMCPConfigWithOptions) and TOML (renderSafeOutputsTOML) formats now include workspace mount
  • Fixed test expectations: Updated tests to reflect current MCP Gateway Specification v1.0.0 (type: "stdio" for containerized servers)

Result

{
  "safeoutputs": {
    "container": "node:lts-alpine",
    "mounts": [
      "/opt/gh-aw:/opt/gh-aw:ro",
      "/tmp/gh-aw:/tmp/gh-aw:rw",
      "${{ github.workspace }}:${{ github.workspace }}:rw"  // Added
    ]
  }
}

Follows the same pattern used by Serena MCP server. All 133 workflows recompiled with the new mount configuration.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 21, 2026 01:06
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot AI changed the title [WIP] Configure gateway to mount the directory for safeoutputs MCP server Add GITHUB_WORKSPACE volume mount to safeoutputs MCP server Jan 21, 2026
Copilot AI requested a review from lpcox January 21, 2026 01:20
@lpcox lpcox marked this pull request as ready for review January 21, 2026 01:27
@lpcox lpcox merged commit add0c3d into main Jan 21, 2026
143 checks passed
@lpcox lpcox deleted the copilot/configure-gateway-mount-directory branch January 21, 2026 01:27
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