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

Function normalizeSlug

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

Source from the content-addressed store, hash-verified

339const slugFrom = (slug: string): IntegrationSlug => IntegrationSlug.make(slug);
340
341const normalizeSlug = (input: McpServerInput): string =>
342 input.slug ??
343 deriveMcpNamespace({
344 name: input.name,
345 endpoint: input.transport === "stdio" ? undefined : input.endpoint,
346 command: input.transport === "stdio" ? input.command : undefined,
347 });
348
349/** Slug for a stdio server's secret-env auth method (one per integration). */
350const STDIO_ENV_TEMPLATE = "env";

Callers 1

addServerFunction · 0.85

Calls 1

deriveMcpNamespaceFunction · 0.90

Tested by

no test coverage detected