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

Function slugify

packages/plugins/mcp/src/sdk/manifest.ts:144–148  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

142// ---------------------------------------------------------------------------
143
144const slugify = (value: string): string =>
145 value
146 .toLowerCase()
147 .replace(/[^a-z0-9]+/g, "_")
148 .replace(/^_+|_+$/g, "");
149
150const hostnameOf = (url: string): string | null => {
151 if (!URL.canParse(url)) return null;

Callers 1

deriveMcpNamespaceFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected