Flyte MCP: native MCP to access flyte remote commands and more.#1036
Open
cosmicBboy wants to merge 8 commits intomainfrom
Open
Flyte MCP: native MCP to access flyte remote commands and more.#1036cosmicBboy wants to merge 8 commits intomainfrom
cosmicBboy wants to merge 8 commits intomainfrom
Conversation
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
kumare3
reviewed
May 8, 2026
| from flyte.ai.mcp._mcp_app import MCPAppEnvironment | ||
|
|
||
| if TYPE_CHECKING: | ||
| from mcp.server.fastmcp import FastMCP |
Contributor
There was a problem hiding this comment.
i feel this is dangerous. but i guess you will not import it till we import flyte.ai.mcp right
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for deploying and serving Model Context Protocol (MCP) servers within Flyte, enabling AI assistants and LLM-based clients to interact with Flyte via standardized MCP tools. It adds new example applications, a generic MCP app environment, a CLI entrypoint, and corresponding tests. The main themes are: new Flyte MCP app environments, CLI and packaging updates, and test coverage.
New Flyte MCP App Environments and Examples:
FlyteMCPAppEnvironmentandMCPAppEnvironmentclasses to allow serving Flyte-integrated MCP servers and generic FastMCP servers, respectively. These environments expose Flyte operations as MCP tools over HTTP with configurable endpoints, tool groups, and search paths. (src/flyte/ai/mcp/_mcp_app.py[1]src/flyte/ai/mcp/__init__.py[2]flyte_mcp_app.py: Deploys a full-featured MCP server with all Flyte tools.flyte_mcp_app_filtered.py: Shows how to restrict tool access and configure search paths with an allowlist.generic_mcp_app.py: Demonstrates serving a generic FastMCP server as a Flyte app.CLI and Packaging Updates:
flyte-mcpfor serving a Flyte MCP server, with options for tool selection, search paths, and HTTP configuration. (src/flyte/_bin/mcp.py[1]pyproject.toml[2]pyproject.tomlto include a newmcpoptional dependency group for examples and to register the new CLI. [1] [2]Test Coverage:
MCPAppEnvironment, verifying correct mounting, health checks, and error handling for invalid configurations. (tests/flyte/ai/mcp/test_mcp_app_environment.pytests/flyte/ai/mcp/test_mcp_app_environment.pyR1-R63)