mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
chore: revert doc changes
This commit is contained in:
committed by
David Soria Parra
parent
6f108f7f7c
commit
34a257147b
@@ -135,7 +135,14 @@ async def run():
|
||||
await server.run(
|
||||
read_stream,
|
||||
write_stream,
|
||||
server.create_initialization_options("0.1.0") # user visible version number
|
||||
InitializationOptions(
|
||||
server_name="example",
|
||||
server_version="0.1.0",
|
||||
capabilities=server.get_capabilities(
|
||||
notification_options=NotificationOptions(),
|
||||
experimental_capabilities={},
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -19,9 +19,8 @@ Example usage:
|
||||
async with sse.connect_sse(
|
||||
request.scope, request.receive, request._send
|
||||
) as streams:
|
||||
# Pass user visible version string, egs. 0.1.0
|
||||
await app.run(
|
||||
streams[0], streams[1], app.create_initialization_options("0.1.0")
|
||||
streams[0], streams[1], app.create_initialization_options()
|
||||
)
|
||||
|
||||
async def handle_messages(request):
|
||||
|
||||
Reference in New Issue
Block a user