mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
Merge pull request #7066 from Kilo-Org/mark/fix-mcp-command-display
fix: handle array-format MCP command in settings display
This commit is contained in:
@@ -372,7 +372,10 @@ const AgentBehaviourTab: Component = () => {
|
||||
>
|
||||
<Show when={mcp.command}>
|
||||
<div>
|
||||
command: {mcp.command} {(mcp.args ?? []).join(" ")}
|
||||
command:{" "}
|
||||
{Array.isArray(mcp.command)
|
||||
? mcp.command.join(" ")
|
||||
: `${mcp.command} ${(mcp.args ?? []).join(" ")}`}
|
||||
</div>
|
||||
</Show>
|
||||
<Show when={mcp.url}>
|
||||
|
||||
Reference in New Issue
Block a user