{"id":51529074,"url":"https://github.com/Nwokike/flet-mcp-server","last_synced_at":"2026-07-23T03:00:44.736Z","repository":{"id":353754062,"uuid":"1220773489","full_name":"Nwokike/flet-mcp-server","owner":"Nwokike","description":"Model Context Protocol (MCP) server that dynamically fetches and serves official Flet resources to AI agents, including documentation, controls, packages, and ecosystem components.","archived":false,"fork":false,"pushed_at":"2026-06-02T11:20:24.000Z","size":133,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T13:18:13.121Z","etag":null,"topics":["ai-agents","ai-assistants","antigravity","claude-desktop","cursor-ide","developer-tools","documentation-generator","flet","flet-app","flet-components","llm-tools","mcp","model-context-protocol","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/flet-mcp-server/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nwokike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-25T10:07:57.000Z","updated_at":"2026-06-02T11:20:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Nwokike/flet-mcp-server","commit_stats":null,"previous_names":["nwokike/flet-mcp-server"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Nwokike/flet-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fflet-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fflet-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fflet-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fflet-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nwokike","download_url":"https://codeload.github.com/Nwokike/flet-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nwokike%2Fflet-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35785916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-23T02:00:06.683Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","ai-assistants","antigravity","claude-desktop","cursor-ide","developer-tools","documentation-generator","flet","flet-app","flet-components","llm-tools","mcp","model-context-protocol","python"],"created_at":"2026-07-09T01:00:30.567Z","updated_at":"2026-07-23T03:00:44.735Z","avatar_url":"https://github.com/Nwokike.png","language":"Python","funding_links":[],"categories":["ai-agents","Tools"],"sub_categories":["Community Extensions"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Nwokike/flet-mcp-server\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/flet-dev/flet/refs/heads/main/media/logo/flet-logo.svg\" height=\"150\" alt=\"Flet MCP Server logo\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eFlet MCP Server\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eModel Context Protocol that serves official Flet resources to AI agents.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/flet-mcp-server/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/flet-mcp-server?color=%2334D058\u0026label=PyPI\" alt=\"PyPI version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pepy.tech/projects/flet-mcp-server\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://static.pepy.tech/personalized-badge/flet-mcp-server?period=total\u0026units=INTERNATIONAL_SYSTEM\u0026left_color=BLACK\u0026right_color=GREEN\u0026left_text=Users\" alt=\"Total users\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Nwokike/flet-mcp-server/actions/workflows/ci.yml\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/Nwokike/flet-mcp-server/actions/workflows/ci.yml/badge.svg\" alt=\"CI status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/flet-mcp-server/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/python-%3E%3D3.10-%2334D058\" alt=\"Python \u003e= 3.10\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://glama.ai/mcp/servers/Nwokike/flet-mcp-server\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://glama.ai/mcp/servers/Nwokike/flet-mcp-server/badges/score.svg\" alt=\"MCP server score\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nFlet MCP Server dynamically fetches and serves official Flet documentation, controls, packages, and ecosystem resources for AI agents and MCP-compatible clients.\n\u003cdiv align=\"center\"\u003e\n\n[![Nwokike/flet-mcp-server MCP server](https://glama.ai/mcp/servers/Nwokike/flet-mcp-server/badges/card.svg)](https://glama.ai/mcp/servers/Nwokike/flet-mcp-server)\n\n\u003c/div\u003e\n\n## Features\n\n* **GitHub Tree Sync**: Maps documentation in real-time from the Flet repository.\n* **Intelligent Caching**: Uses `diskcache` for fast responses with 24-hour TTL.\n* **Smart Search**: Fuzzy matching, keyword aliases, and direct path search over documentation.\n* **Ecosystem Discovery**: Finds and verifies official and community Flet packages via PyPI metadata.\n* **AI-Optimized**: Tool definitions designed for LLM understanding with clear usage guidance.\n* **Configurable**: Supports custom Flet repo/branch via environment variables.\n* **Resource Safe**: Shared HTTP client with proper lifecycle management and graceful shutdown.\n\n## Tools Included\n\n### 1. `list_flet_controls`\nList all available Flet UI controls.\n\n### 2. `search_flet_docs(query)`\nSearch the documentation index with fuzzy matching and keyword aliases.\n\n### 3. `get_flet_doc(doc_path)`\nGet raw Markdown for a specific doc file.\n\n### 4. `list_official_packages()`\nList official Flet extension packages from the monorepo.\n\n### 5. `search_flet_ecosystem(query)`\nSearch for verified community Flet components on GitHub.\n\n### 6. `get_package_details(package_name)`\nFetch version, type classification, and installation info from PyPI.\n\n## Client Configuration Examples\n\n### VSCode\nAdd this to your `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"flet-mcp-server\": {\n      \"command\": \"uvx\",\n      \"args\": [\"flet-mcp-server\"]\n    }\n  }\n}\n\n```\n\n### Antigravity\n\nAdd this to your `mcp_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"flet-mcp-server\": {\n      \"command\": \"uvx\",\n      \"args\": [\"flet-mcp-server\"]\n    }\n  }\n}\n\n```\n\n### Claude Desktop\n\nAdd this to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"flet-mcp-server\": {\n      \"command\": \"uvx\",\n      \"args\": [\"flet-mcp-server\"]\n    }\n  }\n}\n\n```\n\n### Cursor / Windsurf\n\nIn your IDE's MCP settings, add a new server:\n\n* **Name**: Flet MCP\n* **Type**: Command\n* **Command**: `uvx flet-mcp-server`\n\n### Zed\n\nAdd this to your `settings.json` file inside the `context_servers` object:\n\n```jsonc\n{\n  \"flet\": {\n    \"command\": \"uvx\",\n    \"args\": [\"flet-mcp-server\"],\n    \"env\": {}\n  }\n}\n```\n\n### OpenCode\n\nAdd this to your `~/.config/opencode/opencode.json` or project-level `.opencode/opencode.json`:\n\n```json\n{\n  \"$schema\": \"[https://opencode.ai/config.json](https://opencode.ai/config.json)\",\n  \"mcp\": {\n    \"flet-mcp\": {\n      \"type\": \"local\",\n      \"command\": [\"uvx\", \"flet-mcp-server\"],\n      \"enabled\": true\n    }\n  }\n}\n\n```\n\nFor authenticated GitHub API access (higher rate limits), set `GITHUB_TOKEN` in your environment:\n\n```json\n{\n  \"$schema\": \"[https://opencode.ai/config.json](https://opencode.ai/config.json)\",\n  \"mcp\": {\n    \"flet-mcp\": {\n      \"type\": \"local\",\n      \"command\": [\"uvx\", \"flet-mcp-server\"],\n      \"enabled\": true,\n      \"env\": {\n        \"GITHUB_TOKEN\": \"your-github-token\"\n      }\n    }\n  }\n}\n\n```\n\n## Development\n\n### Directory Structure\n\n```text\nflet-mcp-server/\n├── .github/\n│   └── workflows/\n│       ├── ci.yml\n│       └── publish.yml\n├── docs/\n│   ├── ARCHITECTURE.md\n│   └── CONTRIBUTING.md\n├── src/\n│   └── flet_mcp/\n│       ├── services/\n│       │   ├── github_docs.py\n│       │   ├── packages.py\n│       │   └── __init__.py\n│       ├── __init__.py\n│       ├── exceptions.py\n│       ├── http.py\n│       ├── main.py\n│       └── server.py\n├── tests/\n│   └── test_fetcher.py\n├── LICENSE\n├── README.md\n├── pyproject.toml\n└── uv.lock\n\n```\n\n### Install\n\n```bash\ngit clone https://github.com/Nwokike/flet-mcp-server.git\ncd flet-mcp-server\nuv sync\n\n```\n\n### Test\n\n```bash\nuv run pytest\n\n```\n\n### Lint\n\n```bash\nuv run ruff check .\n\n```\n\n## Changelog\n\n### v0.2.0\n- **Smart Search**: Added fuzzy matching, keyword alias index, and multi-strategy search (direct \u003e alias \u003e fuzzy)\n- **Shared HTTP Client**: Single `httpx.AsyncClient` with proper lifecycle management via server lifespan\n- **Custom Exceptions**: `DocNotFoundError`, `PackageNotFoundError`, `FetchError`, `TreeFetchError` for better error handling\n- **Configurable Repo/Branch**: `FLET_REPO` and `FLET_BRANCH` environment variables for version pinning\n- **Robust Control Parsing**: Set-based deduplication with safer path parsing\n- **Concurrent Verification**: Batched PyPI verification with semaphore-based rate limiting for ecosystem search\n- **Graceful Shutdown**: Server lifespan handler cleans up HTTP connections\n- **Better Error Handling**: All tools catch and format errors gracefully for LLM consumption\n- **Mocked Tests**: Full test suite with mocked HTTP responses for fast, reliable CI\n- **OpenCode Support**: Added OpenCode MCP configuration example to README\n- **Expanded Fallback**: Added `flet`, `flet-cli`, `flet-desktop`, `flet-web` to fallback package list\n\n\u003cdetails\u003e\n\u003csummary\u003ev0.1.1\u003c/summary\u003e\n\n- Initial release with 6 MCP tools\n- GitHub Tree API integration with diskcache\n- PyPI verification for ecosystem packages\n\n\u003c/details\u003e\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNwokike%2Fflet-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNwokike%2Fflet-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNwokike%2Fflet-mcp-server/lists"}