You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: fix simple-auth README references to non-existent scripts
The client README referenced a non-existent 'mcp-simple-auth' script.
Updated both server and client READMEs to correctly reference:
- mcp-simple-auth-as (Authorization Server)
- mcp-simple-auth-rs (Resource Server)
- mcp-simple-auth-legacy (Legacy combined server)
Also aligned port numbers between examples and fixed minor formatting issues.
Github-Issue:#1202
Claude-Generated-By: Claude Code (cli/claude-opus-4-5=100%)
Claude-Steers: 3
Claude-Permission-Prompts: 10
Claude-Escapes: 1
Copy file name to clipboardExpand all lines: examples/clients/simple-auth-client/README.md
+45-21Lines changed: 45 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,63 +12,87 @@ A demonstration of how to use the MCP Python SDK with OAuth authentication over
12
12
13
13
```bash
14
14
cd examples/clients/simple-auth-client
15
-
uv sync --reinstall
15
+
uv sync --reinstall
16
16
```
17
17
18
18
## Usage
19
19
20
20
### 1. Start an MCP server with OAuth support
21
21
22
+
The simple-auth server example provides three server configurations. See [examples/servers/simple-auth/README.md](../../servers/simple-auth/README.md) for full details.
23
+
24
+
#### Option A: New Architecture (Recommended)
25
+
26
+
Separate Authorization Server and Resource Server:
27
+
28
+
```bash
29
+
# Terminal 1: Start Authorization Server on port 9000
30
+
cd examples/servers/simple-auth
31
+
uv run mcp-simple-auth-as --port=9000
32
+
33
+
# Terminal 2: Start Resource Server on port 8001
34
+
cd examples/servers/simple-auth
35
+
uv run mcp-simple-auth-rs --port=8001 --auth-server=http://localhost:9000 --transport=streamable-http
36
+
```
37
+
38
+
#### Option B: Legacy Server (Backwards Compatibility)
39
+
22
40
```bash
23
-
#Example with mcp-simple-auth
24
-
cdpath/to/mcp-simple-auth
25
-
uv run mcp-simple-auth --transport streamable-http --port 3001
41
+
#Single server that acts as both AS and RS (port 8000)
42
+
cdexamples/servers/simple-auth
43
+
uv run mcp-simple-auth-legacy --port=8000 --transport=streamable-http
26
44
```
27
45
28
46
### 2. Run the client
29
47
30
48
```bash
31
-
uv run mcp-simple-auth-client
49
+
# Connect to Resource Server (new architecture, default port 8001)
50
+
MCP_SERVER_PORT=8001 uv run mcp-simple-auth-client
32
51
33
-
#Or with custom server URL
34
-
MCP_SERVER_PORT=3001 uv run mcp-simple-auth-client
52
+
#Connect to Legacy Server (port 8000)
53
+
uv run mcp-simple-auth-client
35
54
36
55
# Use SSE transport
37
-
MCP_TRANSPORT_TYPE=sse uv run mcp-simple-auth-client
56
+
MCP_SERVER_PORT=8001 MCP_TRANSPORT_TYPE=sse uv run mcp-simple-auth-client
38
57
```
39
58
40
59
### 3. Complete OAuth flow
41
60
42
61
The client will open your browser for authentication. After completing OAuth, you can use commands:
43
62
44
63
-`list` - List available tools
45
-
-`call <tool_name> [args]` - Call a tool with optional JSON arguments
64
+
-`call <tool_name> [args]` - Call a tool with optional JSON arguments
46
65
-`quit` - Exit
47
66
48
67
## Example
49
68
50
69
```markdown
51
-
🔐 Simple MCP Auth Client
52
-
Connecting to: http://localhost:3001
70
+
🚀 Simple MCP Auth Client
71
+
Connecting to: http://localhost:8001/mcp
72
+
Transport type: streamable-http
53
73
54
-
Please visit the following URL to authorize the application:
0 commit comments