# Function isZodError

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- isZodError(error: unknown): error is ZodError<unknown>

  Type guard to check if a value is a Zod error.

  #### Parameters

  - error: unknown

    The value to check

  #### Returns error is ZodError<unknown>

  True if the value is a ZodError

  #### Example

      if (isZodError(error)) {
        console.error(formatZodError(error));
      }

  - Defined in packages/nexus-agents/src/core/zod-helpers.ts:97