Skip to content
Merged
Show file tree
Hide file tree
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
resolve comments
Signed-off-by: aaronzuo <anarionzuo@outlook.com>
  • Loading branch information
Anarion-zuo authored and ntkathole committed Apr 5, 2026
commit ea6358fda9fe0de85ca1a4b0451801a24cec5954
2 changes: 1 addition & 1 deletion .github/workflows/pr_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
-H "mcp-protocol-version: 2025-03-26" \
-H "mcp-session-id: ${SESSION_ID}" \
--data '{}' \
http://127.0.0.1:6566/mcp || true
http://127.0.0.1:6566/mcp

grep -Eq "^HTTP/.* 400" /tmp/mcp_headers2
grep -Eiq "^content-type: application/json" /tmp/mcp_headers2
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/feast/infra/mcp_servers/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +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 = getattr(config, "mcp_transport", "sse") or "sse"
transport = getattr(config, "mcp_transport", "sse")
if transport == "http":
mount_http = getattr(mcp, "mount_http", None)
if mount_http is None:
Expand All @@ -63,6 +63,7 @@ def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastAp
)
mcp.mount()
Comment thread
franciscojavierarceo marked this conversation as resolved.
else:
# Defensive guard for programmatic callers.
raise McpTransportNotSupportedError(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch is unreachable — Literal["sse", "http"] in the config rejects anything else at parse time. Either remove it or add a comment that it's a defensive guard for programmatic callers.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Anarion-zuo u didn't solve it btw :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Anarion-zuo any update on this one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. Missed this one. Will look at it ASAP.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YassinNouh21 Made some changes. Is this aligned with what you intended?

f"Unsupported mcp_transport={transport!r}. Expected 'sse' or 'http'."
)
Expand Down
Loading