You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2026. It is now read-only.
The runMCPServer() function in cli/src/cmd/exec/commands/mcp.go (lines 49-126) initializes the MCP server, registers all tool handlers, configures rate limiting, and starts the stdio transport. This function has zero direct test coverage.
Impact
Server initialization logic (tool registration order, rate limit config, capability flags) is untested
Regressions in server setup would only surface during manual or integration testing
The function contains ~75 lines of non-trivial setup logic including error handling branches
Details
What is tested:
Individual tool handlers (handleExecScript, handleExecInline, handleListShells, handleGetEnvironment) are well-tested in mcp_test.go
buildShellArgs and marshalExecResult have thorough table-driven tests
What is NOT tested:
Server builder configuration (lines 68-90): capability flags, server name/version
Summary
The runMCPServer() function in cli/src/cmd/exec/commands/mcp.go (lines 49-126) initializes the MCP server, registers all tool handlers, configures rate limiting, and starts the stdio transport. This function has zero direct test coverage.
Impact
Details
What is tested:
What is NOT tested:
Recommendation