-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Support HTTP in MCP #6109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
fc7974c
3b517b2
e69098e
2725f43
82bb408
26a01a2
d0c2832
58cddeb
face1ed
f9dec18
18fedfe
4477742
ea6358f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Signed-off-by: aaronzuo <anarionzuo@outlook.com>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | ||
|
|
@@ -63,6 +63,7 @@ def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastAp | |
| ) | ||
| mcp.mount() | ||
| else: | ||
| # Defensive guard for programmatic callers. | ||
| raise McpTransportNotSupportedError( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This branch is unreachable —
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Anarion-zuo u didn't solve it btw :)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Anarion-zuo any update on this one?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry. Missed this one. Will look at it ASAP.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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'." | ||
| ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.