Add mcp-inspect tool to mcp-server command with automatic secret validation#1771
Merged
Add mcp-inspect tool to mcp-server command with automatic secret validation#1771
Conversation
- Added new mcp-inspect tool to MCP server exposing the 'mcp inspect' CLI command - Tool supports workflow_file, server, and tool parameters - Updated documentation in command help text - Added comprehensive unit tests for the new tool - All existing tests continue to pass Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add mcp-inspect tool to mcp-server command
Add mcp-inspect tool to mcp-server command
Oct 16, 2025
Collaborator
|
@copilot add --check-secrets to default flags (and ignore if the github_token is not present or has no permissions) |
- Add --check-secrets flag to all mcp-inspect tool invocations - Secret checking is silently ignored if GitHub token is unavailable - Updated tool description to reflect automatic secret validation - All tests pass Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Added |
Copilot
AI
changed the title
Add mcp-inspect tool to mcp-server command
Add mcp-inspect tool to mcp-server command with automatic secret validation
Oct 16, 2025
Collaborator
|
@copilot update mcp-server docs, concisely and briefly. |
Contributor
|
Agentic Changeset Generator triggered by this pull request |
- Add mcp-inspect to list of available tools - Update tool descriptions and examples - Keep changes concise and brief Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan: Add mcp-inspect tool to mcp-server command
Summary
Successfully added a new
mcp-inspecttool to themcp-servercommand that exposes themcp inspectCLI functionality through the MCP protocol.Latest Update (documentation)
Updated mcp-server documentation: Added
mcp-inspecttool to the documentation, including:Changes were kept concise and brief as requested.
Implementation Details
New Tool:
mcp-inspectgh aw mcp inspectcommand as an MCP toolworkflow_file(optional): Workflow file to inspect MCP servers fromserver(optional): Filter to inspect only a specific MCP servertool(optional): Show detailed information about a specific toolFiles Modified
pkg/cli/mcp_server.go
mcpInspectArgsstruct with proper JSON schema annotationsmcp-inspecttool handler with--check-secretsflagpkg/cli/mcp_server_test.go
mcp-inspectpkg/cli/mcp_server_inspect_test.go (new file)
TestMCPServer_InspectTool: Verifies tool is exposed and has proper descriptionTestMCPServer_InspectToolInvocation: Tests actual tool invocation with workflowdocs/src/content/docs/tools/mcp-server.md
Testing Results
✅ All unit tests pass (11 MCP server tests total)
✅ Code formatted and linted successfully
✅ Documentation updated concisely and briefly
✅ Integration tests verify tool works with real workflows
Example Usage
Through the MCP protocol:
{ "name": "mcp-inspect", "arguments": { "workflow_file": "ci-doctor", "server": "github", "tool": "get_repository" } }The tool will automatically check for GitHub Actions secrets and display their availability status if a GitHub token is available.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.