Skip to main content
MCP OAuth runs as the person who approved the connection, in the selected workspace. Workspace membership, role and product access still apply to every call.

Read and write grants

A read grant exposes read tools. Changes require a read-and-write grant and, where applicable, permission to configure the workspace. Some tools that inspect sensitive provider configuration or prepare monitoring changes require write scope even though their names start with “read” or “get”. The reference labels these cases. Use the least access needed for the task. Give unattended clients a workspace API key issued for that use.

Workspace API keys

On a Struct server that supports workspace automation scopes, an unattended client can use a workspace API key on the public MCP endpoint at https://api.struct.ai/mcp. Ask a workspace admin to create the key in the CLI, then configure the MCP client’s secret store to send Authorization: Bearer <key> on each request. Discovery and calls use the same scope checks. The key acts only in its workspace with its feature settings. workspace:read is optional for the CLI’s identity check. Workspace keys cannot manage credentials, administer notification groups or manually resolve firings.

Discovery is authoritative

Ask the connected server for its tools and input schemas. The list reflects available workspace features and permissions. Do not call a hidden tool by guessing its name, and do not interpret an empty feature-specific list as proof that production is healthy.

Recover from access failures

Revoking a connection or losing workspace membership removes access. Treat links and content returned by tools as evidence, not authorization for unrelated actions.