MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / projectedMcpAuthMethods

Function projectedMcpAuthMethods

packages/plugins/mcp/src/sdk/plugin.ts:439–453  ·  view source on GitHub ↗
(config: McpIntegrationConfigType)

Source from the content-addressed store, hash-verified

437 * catalog validation and runtime rendering must see the same synthetic
438 * method until reconciliation canonicalizes the row. */
439const 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

Callers 2

selectAuthMethodFunction · 0.85
describeMcpAuthMethodsFunction · 0.85

Calls 1

Tested by

no test coverage detected