Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
@@ -15,8 +15,10 @@ print(f"Using Airtable base ID: {base_id}")
|
|
15 |
|
16 |
# Start the server with the transport's streams
|
17 |
async def main():
|
18 |
-
|
|
|
|
|
19 |
await server.run(read_stream, write_stream, server.create_initialization_options())
|
20 |
|
21 |
if __name__ == "__main__":
|
22 |
-
anyio.run(main)
|
|
|
15 |
|
16 |
# Start the server with the transport's streams
|
17 |
async def main():
|
18 |
+
# Use a dummy scope and empty receive/send functions as placeholders
|
19 |
+
scope = {"type": "http", "method": "GET", "path": "/airtable/mcp"}
|
20 |
+
async with transport.connect_sse(scope, lambda: None, lambda x: None) as (read_stream, write_stream):
|
21 |
await server.run(read_stream, write_stream, server.create_initialization_options())
|
22 |
|
23 |
if __name__ == "__main__":
|
24 |
+
anyio.run(main, backend="asyncio")
|