Flet changes faster than model training data. Controls get renamed, deprecated
and removed (ft.ElevatedButton → ft.Button, and Button(text=...) is now
Button(content=...)), properties change types, icon names get hallucinated.
The only reliable reference is the flet source code actually installed in
your environment — this server ships with flet as a dependency, gives your AI
tools to read it directly, and — uniquely — can before you ever see it.
Model Context Protocol (MCP) server that dynamically fetches and serves official Flet resources to AI agents, including documentation, controls, packages, and ecosystem components.
스타
17
도구
—
가동 시간
—
run and verify AI-written
Flet code against that installed flet
Upgrading from v0.2.x? The plain command below works again — no
--with mcp<2 --with typing_extensions flags needed anymore. v0.2.x broke
because the mcp SDK 2.0 removed mcp.server.fastmcp; v1.0.0 is built on the
new MCPServer API and pins mcp>=2.
uvx flet-mcp-server
Verify your Flet code (the killer feature)
verify_flet_code(code) checks AI-generated Flet code against the installed
flet in two passes and reports every problem with line numbers and hints:
Dynamic: the code runs in a sandboxed subprocess (app launchers are
neutralized — nothing opens, nothing starts) while flet's own validators
fire on every constructed control, catching errors that normally only appear
at runtime — like Slider(min=10, max=5).
{
"status": "errors",
"flet_version": "0.86.5",
"controls_verified": 6,
"diagnostics": [
{"severity": "warning", "code": "deprecated", "line": 4,
"message": "'ElevatedButton' is deprecated in flet 0.86.5.",
"hint": "Did you mean 'FilledButton'?"},
{"severity": "error", "code": "bad-kwarg", "line": 4,
"message": "'ElevatedButton' has no property 'text' in flet 0.86.5."},
{"severity": "error", "code": "runtime", "line": null,
"message": "ValueError: Slider: min (10) must be less than or equal to max (5)"}
]
}
The server's instructions tell AI clients to verify before delivering and
fix-and-reverify until the report is passed — plus three ready-made prompts
(verify_flet_code_prompt, migrate_flet_prompt, build_flet_ui_prompt)
that encode the full workflow.
What your AI gets
Verify (new in v1.0.0) — confidence that AI-written code is actually valid:
verify_flet_code(code) — static + sandboxed dynamic verification against
the installed flet, structured diagnostics with line numbers and hints.
Resources: flet://version and flet-source://<module> (browsable installed
source, path-traversal safe).
Source of truth — reads the flet package installed alongside the server,
so every answer matches the exact version your app runs:
inspect_flet_control(control_name) — every property with type, default and
origin class (inherited fields marked), on_* events, deprecation warnings,
the class hierarchy, and the full class source with per-property docstrings.
get_flet_version() — which flet version the tools are reading, and from where.
search_flet_source(query) — grep the installed flet sources; definitions
rank first.
read_flet_source(module, symbol?) — numbered source of any module, or a
single class/function extracted by AST.
list_flet_api() — the true flet.__all__ of the installed version, grouped
by category (Material / Cupertino / Core controls, Services, Components & hooks).
search_flet_icons(query, icon_set) — valid ft.Icons.* /
ft.CupertinoIcons.* names, so the AI never invents one again.
search_flet_colors(query) — valid ft.Colors.* constants, including shades
like AMBER_500.
Docs & examples — official guides and runnable apps:
Every tool response then reports e.g. [flet 0.86.5 — FLET_MCP_VENV=…/project/.venv],
and inspect_flet_control shows deprecations relative to that version.
Read flet from this project venv instead of the bundled one (Local Mode).
FLET_MCP_TRANSPORT
stdio
stdio, sse, or streamable-http (uses the bundled uvicorn).
FLET_MCP_HOST
127.0.0.1
Bind host for HTTP transports.
FLET_MCP_PORT
8000
Bind port for HTTP transports.
GITHUB_TOKEN
(unset)
Authenticated GitHub API access — higher rate limits.
FLET_REPO
flet-dev/flet
Docs source repo.
FLET_BRANCH
main
Docs source branch.
FLET_MCP_CACHE_DIR
~/.cache/flet-mcp
HTTP cache location (XDG-aware).
Docker / remote deployments: run with FLET_MCP_TRANSPORT=streamable-http FLET_MCP_HOST=0.0.0.0 — a GET /health liveness endpoint is included.
OpenTelemetry traces are emitted automatically by the MCP SDK; configure any
standard OTEL_* environment variables to export them.
Development
git clone https://github.com/Nwokike/flet-mcp-server.git
cd flet-mcp-server
uv sync
uv run pytest # unit tests (75)
uv run ruff check src/ tests/ scripts/ # lint
uv run python scripts/smoke_stdio.py # full MCP handshake from a fresh uvx env
The smoke script is the regression test for the v0.2.0 outage: it installs the
server into a clean ephemeral environment (exactly what end users get) and
verifies the handshake plus one call per tool group.
Model Context Protocol (MCP) server that dynamically fetches and serves official Flet resources to AI agents, including documentation, controls, packages, and ecosystem components.
이 페이지에서 Cursor, Claude Desktop, Claude Code 또는 VS Code용 stdio 설정을 복사합니다. PlugMCP 프록시가 아니라 게시자의 설치 방식을 사용합니다.
Flet에 API 키가 필요한가요?
이 레코드에는 필수 환경 변수가 등록되어 있지 않습니다.
Flet은(는) 어떤 전송 방식을 사용하나요?
Flet은(는) stdio를 통해 로컬에서 실행됩니다.
Flet은(는) 마지막으로 언제 확인되었나요?
마지막 확인: 2026-10-27. Model Context Protocol (MCP) server that dynamically fetches and serves official Flet resources to AI agents, including documentation, controls, packages, and ecosystem components.