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

Function defaultMcpAuthSlug

packages/plugins/mcp/src/sdk/types.ts:176–182  ·  view source on GitHub ↗
(method: McpCanonicalAuthMethodInput)

Source from the content-addressed store, hash-verified

174 * methods have always had — so the shorthand, UI, and migration paths all
175 * converge on the same names. */
176const defaultMcpAuthSlug = (method: McpCanonicalAuthMethodInput): string => {
177 if (method.kind !== "apikey") return method.kind;
178 if (method.placements.length === 1) {
179 return method.placements[0]!.carrier === "header" ? "header" : "query";
180 }
181 return "apikey";
182};
183
184/** Expand request-shaped dialect entries into canonical placements; canonical
185 * entries pass through. Slug backfill is the caller's concern

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected