Skip to content

Conversation

@gossion
Copy link
Member

@gossion gossion commented Jul 9, 2025

This pull request introduces significant changes to support Azure Monitor commands in the MCP toolset, including the addition of read-only, read-write, and admin commands, as well as utility functions for string manipulation. The changes also include extensive test coverage to validate functionality and integration.

Azure Monitor Command Support:

  • internal/components/monitor/registry.go: Added support for registering Azure Monitor commands (RegisterMonitorCommand) with categories for read-only, read-write, and admin commands. Includes predefined read-only commands such as az monitor metrics list, az monitor metrics list-definitions, and az monitor metrics list-namespaces.
  • internal/server/server.go: Integrated Azure Monitor commands into the MCP server by registering them at appropriate access levels (read-only, read-write, admin). [1] [2] [3]

Utility Functions:

  • internal/utils/strings.go: Added ReplaceSpacesWithUnderscores utility function to standardize tool names by replacing spaces with underscores.

Test Coverage:

Security Validation:

Code Cleanup:

Copy link
Contributor

@thomas1206 thomas1206 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gossion gossion merged commit e1283cc into main Jul 10, 2025
8 checks passed
@gossion gossion deleted the guwe/azmonitor branch July 21, 2025 03:12
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