MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isCCRMode

Function isCCRMode

src/services/api/errors.ts:217–219  ·  view source on GitHub ↗

* Check if we're in CCR (Claude Code Remote) mode. * In CCR mode, auth is handled via JWTs provided by the infrastructure, * not via /login. Transient auth errors should suggest retrying, not logging in.

()

Source from the content-addressed store, hash-verified

215 * not via /login. Transient auth errors should suggest retrying, not logging in.
216 */
217function isCCRMode(): boolean {
218 return isEnvTruthy(process.env.CLAUDE_CODE_REMOTE)
219}
220
221// Temp helper to log tool_use/tool_result mismatch errors
222function logToolUseToolResultMismatch(

Callers 1

Calls 1

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected