(config: McpIntegrationConfigType)
| 437 | * catalog validation and runtime rendering must see the same synthetic |
| 438 | * method until reconciliation canonicalizes the row. */ |
| 439 | const projectedMcpAuthMethods = (config: McpIntegrationConfigType): readonly McpAuthMethod[] => { |
| 440 | if (config.transport === "stdio" && config.authenticationTemplate === undefined) { |
| 441 | const credentials = legacyStdioInlineCredentials(config); |
| 442 | return credentials === null |
| 443 | ? [{ slug: "none", kind: "none" }] |
| 444 | : [ |
| 445 | { |
| 446 | slug: STDIO_ENV_TEMPLATE, |
| 447 | kind: "stdio_env", |
| 448 | vars: credentials.vars, |
| 449 | }, |
| 450 | ]; |
| 451 | } |
| 452 | return config.authenticationTemplate ?? []; |
| 453 | }; |
| 454 | |
| 455 | /** The secret env var NAMES a stdio add declares: the explicit `envVars` |
| 456 | * declaration plus the keys of any one-shot `env` values, de-duplicated and |
no test coverage detected