-
Couldn't load subscription status.
- Fork 257
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-namescommand 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 |
core/Azure.Mcp.Core/src/Areas/Tools/Commands/ToolsListNamesCommand.cs
Outdated
Show resolved
Hide resolved
core/Azure.Mcp.Core/src/Areas/Tools/Options/ToolsListNamesOptions.cs
Outdated
Show resolved
Hide resolved
core/Azure.Mcp.Core/src/Areas/Tools/Commands/ToolsListNamesCommand.cs
Outdated
Show resolved
Hide resolved
core/Azure.Mcp.Core/src/Areas/Tools/Options/ToolsListOptionDefinitions.cs
Outdated
Show resolved
Hide resolved
core/Azure.Mcp.Core/src/Areas/Tools/Commands/ToolsListCommand.cs
Outdated
Show resolved
Hide resolved
|
Since the PR doesn't pass CI, let's hold this until after the October stabilization period |
What does this PR do?
Add a command listing all the tool names. This will come handy when using
--tooloption to specify tools to be included.GitHub issue number?
N/A
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentation/servers/Azure.Mcp.Server/docs/azmcp-commands.mdand/or/docs/fabric-commands.mdToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test prompts/servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline