-
Notifications
You must be signed in to change notification settings - Fork 227
Add a command listing all the tool names #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 adds a new command to list all available tool names in the Azure MCP server. The command provides a simple enumeration of tool names without descriptions or metadata, making it useful for quick discovery and automated tool enumeration, particularly when using the --tool
option to specify tools.
- Introduces a new
list-names
command under the tools area - Adds necessary infrastructure for JSON serialization and dependency injection
- Creates minimal options class as the command requires no additional parameters
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
core/Azure.Mcp.Core/src/Models/ModelsJsonContext.cs | Adds JSON serialization support for the new command's result type |
core/Azure.Mcp.Core/src/Areas/Tools/ToolsSetup.cs | Registers the new command in the dependency injection container and command group |
core/Azure.Mcp.Core/src/Areas/Tools/Options/ToolsListNamesOptions.cs | Creates empty options class for the new command |
core/Azure.Mcp.Core/src/Areas/Tools/Commands/ToolsListNamesCommand.cs | Implements the main command logic to list all tool names |
What does this PR do?
Add a command listing all the tool names. This will come handy when using
--tool
option to specify tools to be included.GitHub issue number?
N/A
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.md
and/orservers/Fabric.Mcp.Server/CHANGELOG.md
for product changes (features, bug fixes, UI/UX, updated dependencies
)servers/Azure.Mcp.Server/README.md
and/orservers/Fabric.Mcp.Server/README.md
documentation/servers/Azure.Mcp.Server/docs/azmcp-commands.md
and/or/docs/fabric-commands.md
ToolDescriptionEvaluator
and obtained a score of0.4
or more and a top 3 ranking for all related test prompts/servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
crypto mining, spam, data exfiltration, etc.
)/azp run mcp - pullrequest - live
to run Live Test Pipeline