Skip to content

fix: expose MCP mock tools to Copilot CLI#441

Merged
spboyer merged 1 commit into
mainfrom
spboyer-investigate-neha-issue
Jul 17, 2026
Merged

fix: expose MCP mock tools to Copilot CLI#441
spboyer merged 1 commit into
mainfrom
spboyer-investigate-neha-issue

Conversation

@spboyer

@spboyer spboyer commented Jul 17, 2026

Copy link
Copy Markdown
Member

Closes #440

Summary

  • configure generated mcp_mocks stdio servers with the explicit Copilot CLI tools: ["*"] allowlist
  • add a regression assertion for the generated SDK configuration
  • document automatic mock tool exposure and prepare the v0.38.3 changelog entry

Validation

  • go test ./...
  • cd site && npm ci --no-audit --no-fund && npm run build

Rubber-duck review: no blocking concerns.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 6a31c0d0-d139-415f-9f2b-33de69a5b011
Copilot AI review requested due to automatic review settings July 17, 2026 16:02
@spboyer
spboyer enabled auto-merge (squash) July 17, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes Copilot SDK evaluations that use mcp_mocks by ensuring the generated Copilot CLI MCP server configuration includes an explicit tool allowlist, preventing the bundled CLI from skipping otherwise-valid mock servers (per #440).

Changes:

  • Add tools: ["*"] to the generated Copilot SDK stdio server config for mcp_mocks.
  • Add a regression test asserting the generated mock server config includes the tool allowlist.
  • Update docs (README + eval-yaml guide) and prepare the 0.38.3 changelog entry describing the behavior.
Show a summary per file
File Description
site/src/content/docs/guides/eval-yaml.mdx Documents that mcp_mocks automatically expose their declared tools to the Copilot CLI (no separate allowlist needed).
README.md Mirrors the mcp_mocks tool exposure documentation in the main README.
internal/copilotconfig/mcp.go Ensures mock stdio server configs include Tools: []string{"*"} so the bundled CLI accepts them.
internal/copilotconfig/mcp_test.go Adds regression coverage asserting stdio.Tools is set to ["*"] for mocks.
CHANGELOG.md Adds a 0.38.3 entry and updates compare links accordingly.

Review details

  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Low

@spboyer
spboyer merged commit cf05e48 into main Jul 17, 2026
10 of 11 checks passed
@spboyer
spboyer deleted the spboyer-investigate-neha-issue branch July 17, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: enable MCP tools for mcp_mocks with the copilot-sdk executor

3 participants