Skip to content

Flyte MCP: native MCP to access flyte remote commands and more.#1036

Open
cosmicBboy wants to merge 8 commits intomainfrom
nielsb/mcp
Open

Flyte MCP: native MCP to access flyte remote commands and more.#1036
cosmicBboy wants to merge 8 commits intomainfrom
nielsb/mcp

Conversation

@cosmicBboy
Copy link
Copy Markdown
Contributor

@cosmicBboy cosmicBboy commented May 6, 2026

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:

  • Added FlyteMCPAppEnvironment and MCPAppEnvironment classes 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]
  • Added comprehensive examples for deploying MCP servers:

CLI and Packaging Updates:

  • Added a new CLI entrypoint flyte-mcp for serving a Flyte MCP server, with options for tool selection, search paths, and HTTP configuration. (src/flyte/_bin/mcp.py [1] pyproject.toml [2]
  • Updated pyproject.toml to include a new mcp optional dependency group for examples and to register the new CLI. [1] [2]

Test Coverage:

cosmicBboy added 8 commits May 8, 2026 16:22
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>
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>
from flyte.ai.mcp._mcp_app import MCPAppEnvironment

if TYPE_CHECKING:
from mcp.server.fastmcp import FastMCP
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i feel this is dangerous. but i guess you will not import it till we import flyte.ai.mcp right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants