Skip to content

Conversation

@tembleking
Copy link
Member

@tembleking tembleking commented Nov 21, 2025

No description provided.

@tembleking tembleking self-assigned this Nov 21, 2025
@tembleking tembleking requested a review from a team as a code owner November 21, 2025 14:56
@tembleking tembleking requested a review from Copilot November 21, 2025 14:56
Copy link
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 refactors the MCP tools codebase by moving tool implementations from the mcp package to a separate tools sub-package, improving code organization and package structure.

Key Changes:

  • Tool implementation files moved from package mcp to package tools
  • Test files updated to use package tools_test with proper import aliases
  • References updated throughout the codebase to use the new tools package

Reviewed changes

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

Show a summary per file
File Description
internal/infra/mcp/tools/utils.go Updated package declaration from mcp to tools
internal/infra/mcp/tools/tools_suite_test.go Added new test suite file for the tools package
internal/infra/mcp/tools/tool_run_sysql_test.go Updated test package and added imports for separated packages
internal/infra/mcp/tools/tool_run_sysql.go Updated package declaration from mcp to tools
internal/infra/mcp/tools/tool_list_runtime_events_test.go Updated test package and added imports for separated packages
internal/infra/mcp/tools/tool_list_runtime_events.go Updated package declaration from mcp to tools
internal/infra/mcp/tools/tool_get_event_process_tree_test.go Updated test package and added imports for separated packages
internal/infra/mcp/tools/tool_get_event_process_tree.go Updated package declaration from mcp to tools
internal/infra/mcp/tools/tool_get_event_info_test.go Updated test package and added imports for separated packages
internal/infra/mcp/tools/tool_get_event_info.go Updated package declaration from mcp to tools
internal/infra/mcp/tools/tool_generate_sysql_test.go Updated test package and added imports for separated packages
internal/infra/mcp/tools/tool_generate_sysql.go Updated package declaration from mcp to tools
internal/infra/mcp/mcp_handler_test.go Updated reference to use tools.WithRequiredPermissions
internal/infra/mcp/mcp_handler.go Updated references to use tools package for utility functions
cmd/server/main.go Updated tool constructor calls to use tools package

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

@tembleking tembleking merged commit ca84c32 into main Nov 21, 2025
5 checks passed
@tembleking tembleking deleted the refactor-move-tools-to-folder branch November 21, 2025 15:00
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