Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix logger
Signed-off-by: aaronzuo <anarionzuo@outlook.com>
  • Loading branch information
Anarion-zuo authored and ntkathole committed Apr 5, 2026
commit f9dec187e68c2c151f2be1c64a6bb60ccae9c1c2
8 changes: 4 additions & 4 deletions sdk/python/feast/infra/mcp_servers/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastAp
description="Feast Feature Store MCP Server - Access feature store data and operations through MCP",
)

transport: Literal["sse", "http"] = (
getattr(config, "mcp_transport", "sse")
)
transport: Literal["sse", "http"] = getattr(config, "mcp_transport", "sse")
if transport == "http":
mount_http = getattr(mcp, "mount_http", None)
if mount_http is None:
Expand All @@ -60,7 +58,9 @@ def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastAp
if mount_sse is not None:
mount_sse()
else:
logging.warning("transport sse not supported, fallback to the deprecated mount().")
logger.warning(
"transport sse not supported, fallback to the deprecated mount()."
)
mcp.mount()
Comment thread
franciscojavierarceo marked this conversation as resolved.
else:
# Code should not reach here
Expand Down