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
Copy file name to clipboardExpand all lines: examples/servers/simple-auth/README.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,31 @@ uv run mcp-simple-auth
44
44
45
45
The server will start on `http://localhost:8000`.
46
46
47
+
### Transport Options
48
+
49
+
This server supports multiple transport protocols that can run on the same port:
50
+
51
+
#### SSE (Server-Sent Events) - Default
52
+
```bash
53
+
uv run mcp-simple-auth
54
+
# or explicitly:
55
+
uv run mcp-simple-auth --transport sse
56
+
```
57
+
58
+
SSE transport provides endpoint:
59
+
-`/sse`
60
+
61
+
#### Streamable HTTP
62
+
```bash
63
+
uv run mcp-simple-auth --transport streamable-http
64
+
```
65
+
66
+
Streamable HTTP transport provides endpoint:
67
+
-`/mcp`
68
+
69
+
70
+
This ensures backward compatibility without needing multiple server instances. When using SSE transport (`--transport sse`), only the `/sse` endpoint is available.
71
+
47
72
## Available Tool
48
73
49
74
### get_user_profile
@@ -61,5 +86,6 @@ If the server fails to start, check:
61
86
1. Environment variables `MCP_GITHUB_GITHUB_CLIENT_ID` and `MCP_GITHUB_GITHUB_CLIENT_SECRET` are set
62
87
2. The GitHub OAuth app callback URL matches `http://localhost:8000/github/callback`
63
88
3. No other service is using port 8000
89
+
4. The transport specified is valid (`sse` or `streamable-http`)
64
90
65
91
You can use [Inspector](https://github.com/modelcontextprotocol/inspector) to test Auth
0 commit comments