451
const cwd = typeof candidate['cwd'] === 'string' ? candidate['cwd'] : undefined;
452
const headers = candidate['headers'] && typeof candidate['headers'] === 'object'
453
>
? Object.fromEntries(Object.entries(candidate['headers'] as Record<string, unknown>)
pluginParsers.ts
454
>
.filter(([, value]) => typeof value === 'string')
455
>
.map(([key, value]) => [key, value as string]))
456
: undefined;
457
const dev = candidate['dev'] && typeof candidate['dev'] === 'object' ? candidate['dev'] as IMcpStdioServerConfiguration['dev'] : undefined;