fix: MCP migrator ignores servers using 'transport' field (VS Code extension format)#7860
Open
OzMan21 wants to merge 1 commit intoKilo-Org:mainfrom
Open
fix: MCP migrator ignores servers using 'transport' field (VS Code extension format)#7860OzMan21 wants to merge 1 commit intoKilo-Org:mainfrom
OzMan21 wants to merge 1 commit intoKilo-Org:mainfrom
Conversation
…tension format) The VS Code extension writes MCP server configs with 'transport' field (e.g., 'transport': 'sse'), but the CLI's mcp-migrator only checks for 'type' field. This causes all SSE/HTTP transport servers to be silently skipped with 'local MCP server missing command, skipping' warnings. Changes: - Add getTransportType() helper that checks both 'type' and 'transport' - Update isRemote() to use getTransportType() - Add 'transport' field to KilocodeMcpServer interface - Add regression tests for 'transport' field handling Fixes the issue where MCP servers configured via the VS Code extension UI (which writes 'transport') are not loaded by the CLI.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by gpt-5.4-20260305 · 436,857 tokens |
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.
Problem
The VS Code extension writes MCP server configs with
transportfield (e.g.,"transport": "sse"), but the CLI'smcp-migrator.tsonly checks for thetypefield. This field name mismatch causes all SSE/HTTP transport servers to be silently skipped with:This means MCP servers configured via the VS Code extension UI are never loaded by the CLI.
Root Cause
In
packages/opencode/src/kilocode/mcp-migrator.ts:Only checks
server.type, but the VS Code extension writesserver.transport.Fix
getTransportType()helper that checks bothtypeandtransportfields (withtypetaking precedence)isRemote()to usegetTransportType()transportfield toKilocodeMcpServerinterfaceConfig files affected
Any MCP config written by the VS Code extension UI uses
transportinstead oftype, including:mcp_settings.json.kilocode/mcp.json