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

Function originalOrgScopedPathFor

apps/host-selfhost/src/mcp/auth.ts:89–92  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

87 * into a security-relevant URL.
88 */
89const originalOrgScopedPathFor = (request: Request): string | null => {
90 const header = request.headers.get(MCP_ORIGINAL_PATH_HEADER);
91 return header ? mcpResourcePathFromOriginalPath(header) : null;
92};
93
94/** The pathname to derive the toolkit slug / resource path from: the
95 * org-scoped original when the client dialed org-scoped, else the request's

Callers 3

effectivePathnameForFunction · 0.85
mcpResourcePathForFunction · 0.85
resourceMetadataUrlForFunction · 0.85

Calls 2

getMethod · 0.65

Tested by

no test coverage detected