Skip to content

Commit ea6358f

Browse files
Anarion-zuontkathole
authored andcommitted
resolve comments
Signed-off-by: aaronzuo <anarionzuo@outlook.com>
1 parent 4477742 commit ea6358f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/pr_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
-H "mcp-protocol-version: 2025-03-26" \
160160
-H "mcp-session-id: ${SESSION_ID}" \
161161
--data '{}' \
162-
http://127.0.0.1:6566/mcp || true
162+
http://127.0.0.1:6566/mcp
163163
164164
grep -Eq "^HTTP/.* 400" /tmp/mcp_headers2
165165
grep -Eiq "^content-type: application/json" /tmp/mcp_headers2

sdk/python/feast/infra/mcp_servers/mcp_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastAp
4444
description="Feast Feature Store MCP Server - Access feature store data and operations through MCP",
4545
)
4646

47-
transport = getattr(config, "mcp_transport", "sse") or "sse"
47+
transport = getattr(config, "mcp_transport", "sse")
4848
if transport == "http":
4949
mount_http = getattr(mcp, "mount_http", None)
5050
if mount_http is None:
@@ -63,6 +63,7 @@ def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastAp
6363
)
6464
mcp.mount()
6565
else:
66+
# Defensive guard for programmatic callers.
6667
raise McpTransportNotSupportedError(
6768
f"Unsupported mcp_transport={transport!r}. Expected 'sse' or 'http'."
6869
)

0 commit comments

Comments
 (0)