Skip to content

Commit 8b1aff1

Browse files
author
Nikodemas-Tuckus
committed
Fix server_url in the simple-auth example
1 parent 7267818 commit 8b1aff1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • examples/servers/simple-auth/mcp_simple_auth

‎examples/servers/simple-auth/mcp_simple_auth/server.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ResourceServerSettings(BaseSettings):
3131
# Server settings
3232
host: str = "localhost"
3333
port: int = 8001
34-
server_url: AnyHttpUrl = AnyHttpUrl("http://localhost:8001/mcp")
34+
server_url: AnyHttpUrl = AnyHttpUrl("http://localhost:8001")
3535

3636
# Authorization Server settings
3737
auth_server_url: AnyHttpUrl = AnyHttpUrl("http://localhost:9000")
@@ -128,7 +128,7 @@ def main(port: int, auth_server: str, transport: Literal["sse", "streamable-http
128128

129129
# Create settings
130130
host = "localhost"
131-
server_url = f"http://{host}:{port}/mcp"
131+
server_url = f"http://{host}:{port}"
132132
settings = ResourceServerSettings(
133133
host=host,
134134
port=port,

0 commit comments

Comments
 (0)