Skip to main content

MCP server exposing Flyte V2 SDK knowledge (symbols, patterns, examples) to AI assistants.

Project description

Flyte

flyte-mcp

Flyte V2 knowledge, patterns, plugins, and runtime — exposed to every AI coding assistant via the Model Context Protocol.

PyPI Python MCP License Stars

Claude Code using flyte-mcp

Install in one click

Install in Cursor   Install in VS Code   Install in VS Code Insiders

Claude Code

claude mcp add flyte -- uvx flyte-mcp

Claude Desktop / any MCP client

{
  "mcpServers": {
    "flyte": {
      "command": "uvx",
      "args": ["flyte-mcp"]
    }
  }
}

Add this to ~/.claude.json, ~/.cursor/mcp.json, or your client's config file.


Why it exists

Ask any AI assistant "write a Flyte V2 task with caching and 4 GPUs" and you get confidently wrong code: V1 imports, invented decorators, hallucinated resource kwargs. The assistant has no reliable channel into the Flyte ecosystem, so it fills the gap with training-data guesses.

flyte-mcp is that channel. It ships a versioned knowledge pack built directly from the flyte-sdk source tree and the Flyte Plugin Registry, plus a thin runtime bridge for executing tasks when a cluster is configured. The assistant stops guessing and starts answering.

What your assistant can do

Capability Tools
Learn the V2 API get_flyte_symbol · search_flyte_api · list_flyte_symbols
Find canonical examples find_flyte_example_for · get_flyte_pattern · list_flyte_patterns
Pick the right plugin suggest_flyte_plugin_for · list_flyte_plugins · get_flyte_plugin
Port V1 code to V2 migrate_v1_to_v2
Get oriented get_flyte_overview · get_flyte_features · get_flyte_install_guide · get_flyte_version
Run on a cluster run_flyte_task · get_flyte_execution_status · list_flyte_recent_runs

All tools are pure Python, stdio transport, zero network calls unless you explicitly use the runtime bridge.

Example prompts that just work

  • How do I cache a task and invalidate on input change?
  • Show me a distributed PyTorch training example with A100s.
  • Which Flyte plugin do I use for Snowflake, and what's the import?
  • Migrate this flytekit V1 workflow to V2.
  • What's the signature of TaskEnvironment?

Your assistant picks the right tools and assembles accurate answers.

Rebuilding the knowledge pack

Contributors and release automation can regenerate the pack from source:

python scripts/build_knowledge.py \
  --sdk-path /path/to/flyte-sdk \
  --registry /path/to/flyte-plugin-registry/src/data/plugins.json \
  --out src/flyte_mcp/data/flyte-v2-knowledge.json

Sources used:

  • flyte-sdk/src/flyte/__init__.py — public symbols via AST
  • flyte-sdk/examples/* — canonical patterns by theme
  • flyte-sdk/README.md, FEATURES.md, CONTRIBUTING.md — meta docs
  • flyte-plugin-registry — curated plugin catalog

flytesnacks is intentionally excluded: V2 consolidated examples in-tree.

Relationship to other Flyte MCP projects

  • wherobots/flyte-mcp — runtime-only. Discovers and executes tasks on a deployed Flyte instance via API key. Complementary, not competing.
  • unionai/claude-agents-public — Claude Code custom agents (system prompts, not an MCP server). Compose freely.

This project focuses on authoring: the moment a developer types a prompt asking about Flyte.

Roadmap

  • GitHub Action to auto-rebuild the knowledge pack on every flyte-sdk release
  • Listing in the official MCP Registry
  • Local semantic search via small sentence-transformer model
  • AST-based migration codemod (replacing the current regex pass)
  • Log streaming tool (get_flyte_execution_logs) with tail support

License

Apache-2.0 — same license as Flyte itself.

Disclaimer

Independent community project. Not officially affiliated with or endorsed by Flyte or Union.ai. The Flyte name and logo are trademarks of their respective owners.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flyte_mcp-0.1.1.tar.gz (143.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flyte_mcp-0.1.1-py3-none-any.whl (99.4 kB view details)

Uploaded Python 3

File details

Details for the file flyte_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: flyte_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 143.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flyte_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5b0e2ad5770442be55358517902b47650c94d7736f4de93531c8c910eeb5287
MD5 058cc2d43e05d60f08c7a0e4e49837c6
BLAKE2b-256 62f3b44801198323fde41b54726b9b0cb0c15154c005ff6c0a49d5b68bbf948f

See more details on using hashes here.

File details

Details for the file flyte_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flyte_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 99.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flyte_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9a81ee474256938b1cb9af09a38e0cf494f682ca62b98c05b406f1032278723
MD5 22e86fe4e4ae54c06ffbf4ad18a594c5
BLAKE2b-256 4e5a94ee728c863a6d39ad5dbd174fa876194b0e37e58f2ee3bdf5ad3f0d3e26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page