MCPcopy Create free account
hub / github.com/Microck/opencode-studio / normalizeCommand

Function normalizeCommand

client-next/src/components/add-mcp-dialog.tsx:23–27  ·  view source on GitHub ↗
(cmd: string | string[] | undefined)

Source from the content-addressed store, hash-verified

21}
22
23function normalizeCommand(cmd: string | string[] | undefined): string[] {
24 if (!cmd) return [];
25 if (Array.isArray(cmd)) return cmd;
26 return [cmd];
27}
28
29function parseInput(input: string): { name: string; config: MCPConfig } | null {
30 const trimmed = input.trim();

Callers 1

parseInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected