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

Function unauthorized

packages/hosts/mcp/src/seams.ts:146–147  ·  view source on GitHub ↗
(challenge?: string)

Source from the content-addressed store, hash-verified

144});
145
146export const unauthorized = (challenge?: string): McpUnauthorized =>
147 challenge === undefined ? { _tag: "Unauthorized" } : { _tag: "Unauthorized", challenge };
148
149export const forbidden = (message: string, code?: number): McpForbidden =>
150 code === undefined ? { _tag: "Forbidden", message } : { _tag: "Forbidden", code, message };

Callers 1

envelope.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected