Skip to content

Commit 4deaa83

Browse files
Remove empty filter.go and document OAuth scope challenges
1 parent f14f507 commit 4deaa83

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

docs/scope-filtering.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ When the server starts with a classic PAT, it makes a lightweight HTTP HEAD requ
2222

2323
With OAuth, the remote server can dynamically request additional scopes as needed. With PATs, scopes are fixed at token creation, so the server proactively hides tools you can't use.
2424

25+
## OAuth Scope Challenges (Remote Server)
26+
27+
When using the [remote MCP server](./remote-server.md) with OAuth authentication, the server uses a different approach called **scope challenges**. Instead of hiding tools upfront, all tools are available, and the server requests additional scopes on-demand when you try to use a tool that requires them.
28+
29+
**How it works:**
30+
1. You attempt to use a tool (e.g., creating an issue)
31+
2. If your current OAuth token lacks the required scope, the server returns an OAuth scope challenge
32+
3. Your MCP client prompts you to authorize the additional scope
33+
4. After authorization, the operation completes successfully
34+
35+
This provides a smoother user experience for OAuth users since you only grant permissions as needed, rather than requesting all scopes upfront.
36+
2537
## Checking Your Token's Scopes
2638

2739
To see what scopes your token has, you can run:

pkg/scopes/filter.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)