+def add_item(name: str) -> str:
+ return '\n'.join(Data().add_item(name))
+
+# Define custom middleware
+custom_middleware = [
+ Middleware(CORSMiddleware, allow_origins=["*"],
+ allow_methods=["*"],
+ allow_headers=["*"],),
+]
+
+if __name__ == "__main__":
+ http_app = mcp.http_app(transport="streamable-http",path="/",middleware=custom_middleware)
+ uvicorn.run(http_app, host=MY_IP, port=9000)
+
+