evalstate HF Staff commited on
Commit
18eb9c2
·
verified ·
1 Parent(s): 2e3ca88

Fix FastMCP middleware wiring for gen-ui MCP initialize

Browse files
scripts/__pycache__/hub_search_prefab_server.cpython-313.pyc CHANGED
Binary files a/scripts/__pycache__/hub_search_prefab_server.cpython-313.pyc and b/scripts/__pycache__/hub_search_prefab_server.cpython-313.pyc differ
 
scripts/hub_search_prefab_server.py CHANGED
@@ -128,7 +128,6 @@ if _oauth_provider == "huggingface":
128
  mcp = FastMCP(
129
  "hub-search-prefab",
130
  auth=_auth_provider,
131
- middleware=_middleware,
132
  )
133
 
134
 
@@ -257,6 +256,7 @@ def main() -> None:
257
  port=PORT,
258
  path=PATH,
259
  stateless_http=True,
 
260
  )
261
 
262
 
 
128
  mcp = FastMCP(
129
  "hub-search-prefab",
130
  auth=_auth_provider,
 
131
  )
132
 
133
 
 
256
  port=PORT,
257
  path=PATH,
258
  stateless_http=True,
259
+ middleware=_middleware,
260
  )
261
 
262