Skip to main content
Use client.Server before calling workspace APIs — especially on self-hosted servers where workspace support may be disabled. Read next: Handling server capabilities

Methods

Task<bool> IsWorkspaceEnabled(CancellationToken cancellationToken = default)
Returns whether the connected server has the workspaces module enabled. Use this to guard calls to client.Workspace and workspace-scoped methods on client.ActiveUser.

Usage

Example

FAQ

The connected server does not have workspaces enabled (arrives wrapped in an AggregateException). Call IsWorkspaceEnabled() and use client.ActiveUser.GetProjects() for servers without workspace features.

Next Steps

Core concepts

Projects, models, and versions

Handling server capabilities

Check-before-call patterns

WorkspaceResource

Workspace queries this check gates
Last modified on October 19, 2026