(request: Request)
| 86 | * into a security-relevant URL. |
| 87 | */ |
| 88 | const 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 |
no test coverage detected