Fix MCP Inspector timeout by removing unnecessary server imports#11728
Fix MCP Inspector timeout by removing unnecessary server imports#11728
Conversation
The MCP Inspector workflow was failing due to timeout when trying to initialize 17 different MCP servers, many of which had missing credentials (DD_API_KEY, CONTEXT7_API_KEY, etc.). Root cause: The workflow's purpose is to READ and DOCUMENT MCP config files, not to USE those servers. The imports were causing: - 2+ minute timeout in "Start MCP gateway" step - Multiple 401 Unauthorized errors (datadog, sentry, context7, etc.) - Unnecessary installation of Node.js, Python, Go, and 9 Docker images Fix: Removed all 15 shared/mcp/*.md imports, keeping only shared/reporting.md for creating the discussion output. The workflow now only uses: - edit/bash tools (for reading files) - serena (for code navigation - already configured via tools) - cache-memory (for storing inspection results) This reduces the lock file by 780 lines and eliminates all MCP server startup overhead. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot MCP-inspector should start servers concurrently |
The MCP gateway currently starts servers sequentially, and there's no configuration option in the workflow frontmatter or MCP gateway config schema to enable concurrent startup. This would require changes to the MCP gateway container itself (ghcr.io/githubnext/gh-aw-mcpg:v0.0.78). The current fix in this PR removes the unnecessary MCP server imports (reducing from 17 to 3 servers), which eliminates the timeout issue for this specific workflow. However, if you'd like concurrent server startup as a general improvement, that would need to be implemented in the MCP gateway codebase and then a new configuration option added to the schema in |
Problem
MCP Inspector workflow failing for 20 days with 0% success rate. "Start MCP gateway" step times out after 2 minutes trying to initialize 17 MCP servers, several with missing credentials (DD_API_KEY, CONTEXT7_API_KEY, etc.) causing 401 errors.
Root Cause
Workflow purpose: READ and DOCUMENT MCP config files in
.github/workflows/shared/mcp/*.md.Actual behavior: Importing and initializing all 15 MCP servers (arxiv, ast-grep, brave, context7, datadog, deepwiki, fabric-rti, gh-aw, markitdown, microsoft-docs, notion, sentry, server-memory, slack, tavily) unnecessarily.
Changes
Removed unnecessary MCP server imports
Impact:
Workflow retains all tools needed for its actual purpose:
edit,bash,serena(Go navigation),cache-memory.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.