( reason: McpUnauthorizedReason, description?: string, )
| 126 | }); |
| 127 | |
| 128 | export const mcpUnauthorized = ( |
| 129 | reason: McpUnauthorizedReason, |
| 130 | description?: string, |
| 131 | ): McpUnauthorizedResult => ({ |
| 132 | _tag: "Unauthorized", |
| 133 | reason, |
| 134 | description, |
| 135 | }); |
| 136 | |
| 137 | /** |
| 138 | * Reason-sensitive RFC 9728 challenge for an Unauthorized auth result. The |
no outgoing calls
no test coverage detected