Spaces:
Sleeping
Sleeping
Update server.py
Browse files14 unmodified lines151617181920212214 unmodified lines# Start the server with the transport's streamsasync def main():async with transport.connect(host="0.0.0.0", port=7860) as (read_stream, write_stream):await server.run(read_stream, write_stream, server.create_initialization_options())if __name__ == "__main__":anyio.run(main)14 unmodified lines1516171819202122232414 unmodified lines# Start the server with the transport's streamsasync def main():# Use a dummy scope and empty receive/send functions as placeholdersscope = {"type": "http", "method": "GET", "path": "/airtable/mcp"}async with transport.connect_sse(scope, lambda: None, lambda x: None) as (read_stream, write_stream):await server.run(read_stream, write_stream, server.create_initialization_options())if __name__ == "__main__":anyio.run(main, backend="asyncio")
server.py+4-2