# OAuth and access

The client business MCP server uses account-based authorization, not a shared API token pasted into an AI conversation.

## OAuth discovery

The service publishes OAuth protected-resource and authorization-server metadata. It supports S256 PKCE and dynamic client registration for supported apps. Access requires sign-in, user consent and an active business authorization.

## Scopes

commerce:read covers approved read operations. commerce:write is required for permitted write workflows, which still have their own module and validation requirements. An OAuth scope alone never overrides the real business database permissions.

## Revocation and expiry

Tokens are short-lived or refreshed by the client according to the OAuth flow; revoked, expired or invalid tokens cannot read business records. A new account connection must be authorized explicitly.

## Separate employee account

CodeDeb People uses the separate Bliss MCP service. Client business credentials do not grant access to employee records. Do not mix these servers, account contexts or scopes.

## Machine-readable contract

- Canonical chapter: https://www.codedeb.com/docs/mcp/authentication
- Reference: https://www.codedeb.com/mcp/setup.md
- Documentation index: https://www.codedeb.com/llms.txt
