Skip to content

Commit 98dc651

Browse files
Ayush TiwariAyush Tiwari
authored andcommitted
Improved docs for better clarity on mounting ASGI apps
1 parent 4173a64 commit 98dc651

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,15 +506,14 @@ app = Starlette(
506506
]
507507
)
508508

509-
# To mount a specific path, provide the path in the mount_path argument or you can set it in the config
509+
# To mount a specific path, provide the path in the mount_path argument or you can set it in the config. The server will now connect on "/weather/sse"
510510
'''
511511
app = Starlette(
512512
routes=[
513513
Mount('/weather', app=mcp.sse_app(mount_path="/weather")),
514514
]
515515
)
516516
'''
517-
518517
# or dynamically mount as host
519518
app.router.routes.append(Host('mcp.acme.corp', app=mcp.sse_app()))
520519
```

0 commit comments

Comments
 (0)