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

Function normalizeSlug

packages/plugins/mcp/src/sdk/plugin.ts:325–331  ·  view source on GitHub ↗
(input: McpServerInput)

Source from the content-addressed store, hash-verified

323const slugFrom = (slug: string): IntegrationSlug => IntegrationSlug.make(slug);
324
325const normalizeSlug = (input: McpServerInput): string =>
326 input.slug ??
327 deriveMcpNamespace({
328 name: input.name,
329 endpoint: input.transport === "stdio" ? undefined : input.endpoint,
330 command: input.transport === "stdio" ? input.command : undefined,
331 });
332
333/** Slug for a stdio server's secret-env auth method (one per integration). */
334const STDIO_ENV_TEMPLATE = "env";

Callers 1

addServerFunction · 0.85

Calls 1

deriveMcpNamespaceFunction · 0.90

Tested by

no test coverage detected