Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

Refactor runtime detection to skip containerized MCP servers

Since all MCP servers now run in containers, the runtime manager should not scan them for runtime requirements.

Plan

  • Understand the issue
    • All MCP servers (github, playwright, serena, etc.) now run in Docker containers
    • Serena uses uvx command but gets auto-containerized via getWellKnownContainer()
    • Runtime detection still scans MCP Command fields and adds unnecessary runtime setup steps
    • Need to skip MCP servers that are containerized
  • Modify detectFromMCPConfigs in runtime_detection.go
    • Check if MCP server has Container field set or Type is "docker"
    • Skip runtime detection for containerized MCP servers
    • Keep runtime detection only for non-containerized custom MCP servers
  • Remove special Serena language detection
    • Modified detectSerenaLanguages() to return immediately with log message
    • Modified GenerateSerenaLanguageServiceSteps() to return empty slice
    • Language services are now inside the container, not on the host
  • Update related tests
    • Updated tests that expected runtime detection from Serena
    • Updated MCP config tests to match new containerized format
    • Verified tests for custom MCP servers still work correctly
  • Recompile workflow lock files
    • Ran make recompile to regenerate all workflow lock files
    • Updated 16 workflow lock files with new compiled output
  • Merge main branch
    • Merged origin/main into feature branch
    • Resolved conflicts in workflow lock files
    • Recompiled to ensure consistency
  • Run make agent-finish before final commit
Original prompt

Since all mcps are now running in tbe containers, the runtime manager does not need to scan them to determine which actions is needed to setup.

For example, serena runs from a docker container so it does not need uvx, and setup-uv anymore.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Modified detectFromMCPConfigs to skip MCP servers that are containerized
  (have Container field set or Type is "docker")
- Updated detectSerenaLanguages to return immediately since Serena now runs in container
- Updated GenerateSerenaLanguageServiceSteps to return empty slice since services are in container
- Fixed tests that expected language service installation steps for Serena
- Updated MCP config test expectations to match new containerized format

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove unnecessary scanning of mcps for setup actions Skip runtime detection for containerized MCP servers Jan 11, 2026
Copilot AI requested a review from pelikhan January 11, 2026 04:28
@pelikhan
Copy link
Contributor

@copilot recompile

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 11, 2026

@copilot recompile

Recompiled workflow files in bf49900. Updated 16 workflow lock files to reflect the removal of unnecessary runtime setup steps for containerized MCP servers.

@pelikhan pelikhan marked this pull request as ready for review January 11, 2026 05:35
@pelikhan
Copy link
Contributor

@copilot merge main

…tup-dependencies

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Copy link
Contributor Author

Copilot AI commented Jan 11, 2026

@copilot merge main

Merged main branch in e028cf5. All workflow lock files were automatically merged and recompiled successfully with no conflicts.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

💀 Blimey! Changeset Generator failed and walked the plank! No treasure today, matey! ☠️

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

Smoke Test Results - Claude Engine (Run #20891059098)

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Successfully fetched recent PRs
  • ✅ Serena Go: Tool initialized successfully
  • ✅ Playwright: Navigated to github.com (page title contains "GitHub")
  • ❌ Safe Input gh Tool: Command not found (safeinputs-gh not available)
  • ✅ File Writing: Created test file successfully
  • ✅ Bash Tool: Read file back successfully

Status: PARTIAL PASS (5/6 tests passed)

AI generated by Smoke Claude

@pelikhan pelikhan merged commit 4d6215c into main Jan 11, 2026
35 of 36 checks passed
@pelikhan pelikhan deleted the copilot/remove-uvx-setup-dependencies branch January 11, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants