Skip to content

Commit c809766

Browse files
Mention OAuth scope challenges in server-configuration.md
1 parent 9aef435 commit c809766

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/server-configuration.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,15 @@ Lockdown mode ensures the server only surfaces content in public repositories fr
333333

334334
### Scope Filtering
335335

336-
**Automatic feature:** The server automatically detects your classic PAT's OAuth scopes and only shows tools you have permission to use.
336+
**Automatic feature:** The server handles OAuth scopes differently depending on authentication type:
337337

338-
This happens transparently at startup for classic PATs (`ghp_` prefix)—no configuration needed. If scope detection fails (e.g., network issues), the server logs a warning and continues with all tools available.
338+
- **Classic PATs** (`ghp_` prefix): Tools are filtered at startup based on token scopes—you only see tools you have permission to use
339+
- **OAuth** (remote server): Uses scope challenges—when a tool needs a scope you haven't granted, you're prompted to authorize it
340+
- **Other tokens**: No filtering—all tools shown, API enforces permissions
339341

340-
Each tool in the [README](../README.md#tools) lists its required and accepted OAuth scopes. See [Scope Filtering](./scope-filtering.md) for details on how filtering works with different token types.
342+
This happens transparently—no configuration needed. If scope detection fails for a classic PAT (e.g., network issues), the server logs a warning and continues with all tools available.
343+
344+
See [Scope Filtering](./scope-filtering.md) for details on how filtering works with different token types.
341345

342346
---
343347

0 commit comments

Comments
 (0)