Replace mcp-inspect with mcp inspect command and automatic server spawning#835
Replace mcp-inspect with mcp inspect command and automatic server spawning#835
Conversation
…onality Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
…ect syntax Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Both changes completed in commit c31f8c1:
The command structure is now clean with only Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot always generate configuration in memory and launch servers from that configuration. Remove legacy code that used to launch servers. Remove new flags. |
…code and flags Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed all requested changes in commit e872f84:
The command now provides streamlined functionality where MCP configuration generation is automatic without requiring separate flags. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…nagement Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Implemented server spawning from generated Claude configuration in commit 46562df:
The command now spawns live MCP servers and keeps them running until interrupted with Ctrl+C. |
This PR replaces the
mcp-inspectcommand with a newmcp inspectsubcommand structure while adding automatic MCP server configuration generation and live server spawning capabilities.Changes Made
New Command Structure
mcp-inspect→mcp inspectas a subcommand under newmcpparent commandmcp-inspectcommand has been completely removedAutomatic MCP Server Management
Claude Engine Integration with Live Server Spawning
The command now automatically generates MCP server configurations using the Claude agentic engine and spawns actual MCP servers:
This automatically:
Template Variable Resolution
${{ env.GITHUB_AW_SAFE_OUTPUTS }}→/tmp/safe-outputs.jsonl${{ toJSON(env.GITHUB_AW_SAFE_OUTPUTS_CONFIG) }}→"{}"${{ secrets.GITHUB_TOKEN }}→ Environment GITHUB_TOKEN or GH_TOKENProcess Management
Simplified Command Interface
--generate-config,--launch-servers, and--inspectorflags--server,--tool,--verboseDocumentation Updates
mcp-inspecttomcp inspectacross:Technical Implementation
New Files:
pkg/cli/mcp.go: Parent MCP command with subcommandspkg/cli/mcp_test.go: Comprehensive test coverageEnhanced Files:
pkg/cli/mcp_inspect.go: Refactored with automatic configuration generation and server spawningcmd/gh-aw/main.go: Updated to include only the new command structureServer Spawning Logic:
Usage Examples
Testing
This enhancement provides an end-to-end MCP workflow: inspection → configuration generation → live server spawning → process management, making MCP server development and testing significantly more streamlined.
💡 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.