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

Function originalOrgScopedPathFor

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

Source from the content-addressed store, hash-verified

86 * into a security-relevant URL.
87 */
88const originalOrgScopedPathFor = (request: Request): string | null => {
89 const header = request.headers.get(MCP_ORIGINAL_PATH_HEADER);
90 return header ? mcpResourcePathFromOriginalPath(header) : null;
91};
92
93/** The pathname to derive the toolkit slug / resource path from: the
94 * 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