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

Function orgSelectorSegment

apps/cloud/src/mcp/mount.ts:38–39  ·  view source on GitHub ↗
(segment: string | undefined)

Source from the content-addressed store, hash-verified

36// reserves every routable root segment (`integrations`, `api-keys`, …), so an
37// unrelated `/<seg>/mcp` still falls through to routing.
38const orgSelectorSegment = (segment: string | undefined): string | null =>
39 segment && (segment.startsWith("org_") || isValidOrgSlug(segment)) ? segment : null;
40
41type MatchedMcpSuffix = {
42 readonly organizationId: string | null;

Callers 1

matchMcpSuffixFunction · 0.85

Calls 1

isValidOrgSlugFunction · 0.90

Tested by

no test coverage detected