aeonshift commited on
Commit
9c74566
·
verified ·
1 Parent(s): 8dd92e6

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +4 -2
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
- async with transport.connect(host="0.0.0.0", port=7860) as (read_stream, write_stream):
 
 
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")