Skip to content

fix: add checks tool to MCP server tool tests#24818

Merged
pelikhan merged 1 commit intomainfrom
copilot/fix-tests-for-checks
Apr 6, 2026
Merged

fix: add checks tool to MCP server tool tests#24818
pelikhan merged 1 commit intomainfrom
copilot/fix-tests-for-checks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

The checks tool was added to the MCP server but the tests weren't updated, causing TestMCPServer_ToolIcons to fail with Expected 8 tools with icons, got 9 tools.

Changes

  • mcp_server_tools_test.go: Added "checks" to expectedTools slice and "checks": "✅" to expectedIcons map to match the registered tool count and icon.

@pelikhan pelikhan marked this pull request as ready for review April 6, 2026 03:41
Copilot AI review requested due to automatic review settings April 6, 2026 03:41
@pelikhan pelikhan merged commit e9da712 into main Apr 6, 2026
52 checks passed
@pelikhan pelikhan deleted the copilot/fix-tests-for-checks branch April 6, 2026 03:41
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

Updates MCP server integration tests to account for the newly registered checks tool so tool listing and icon assertions match the server’s current tool set.

Changes:

  • Added checks to the expected tool name list in TestMCPServer_ListTools.
  • Added the expected checks icon () to TestMCPServer_ToolIcons.
Show a summary per file
File Description
pkg/cli/mcp_server_tools_test.go Aligns expected tool names and icon map with the MCP server’s registered tools (includes checks).

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

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.

3 participants