Flutter Widget MCP Server
Flutter Widget MCP Server 是一个用于 Flutter Widget 组件库的 Model Context Protocol (MCP) 服务器。它提供了一个强大的 API 来查询和搜索 Flutter 组件的详细信息。
特性
- 组件查询:获取特定组件的详细信息
- 组件列表:获取所有可用组件的列表
- 组件搜索:根据关键词搜索组件
- 支持部分匹配和不区分大小写的查询
PYPI安装
推荐使用最新版本的pip来安装Flutter Widget MCP Server。
首先,更新pip:
python -m pip install --upgrade pip
然后,使用pip安装Flutter Widget MCP Server:
pip install flutter-widget-mcp-server
源码安装
- 确保你已经安装了 Python 3.7+。
- 安装依赖:
pip install -r requirements.txt
生成组件数据
在运行服务器之前,需要先生成组件数据:
定位到 mcp/flutter_widget_mcp_server 目录
python -m flutter_widget_mcp_server.gen_components_json
运行服务器
定位到 mcp/flutter_widget_mcp_server 目录
python -m flutter_widget_mcp_server.main
服务器将在 http://0.0.0.0:${port} 上运行。
注意事项
- 组件数据存储在
mcp/flutter_widget_mcp_server/flutter_widget_mcp_server/components.json文件中。 - 如果修改了组件文档,需要重新运行生成脚本来更新组件数据。
Metadata
Release files for flutter-widget-mcp-server 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flutter_widget_mcp_server-0.1.16.tar.gz | 49.9 kB | Without provenance | Details for flutter_widget_mcp_server-0.1.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flutter_widget_mcp_server-0.1.16-py3-none-any.whl | Python 3 | none | any | Details for flutter_widget_mcp_server-0.1.16-py3-none-any.whl |
Total release size: 101.4 kB
Release files / flutter_widget_mcp_server-0.1.16.tar.gz
| Download URL | flutter_widget_mcp_server-0.1.16.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33bd129027f77c1c9ec02cf452699adb0c3f935330ceae798d426ca57d88a094
|
|
BLAKE2b-256 checksum How to use checksums |
d67beece19d76a88c7b98adea6928bab0a54882878dc47dc72b6cd37e32fd6ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / flutter_widget_mcp_server-0.1.16-py3-none-any.whl
| Download URL | flutter_widget_mcp_server-0.1.16-py3-none-any.whl |
|---|---|
| Size | 51.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
265812ef599e880be22865b7f3e808f91acdd19ecc086b2e810812f4ebe83486
|
|
BLAKE2b-256 checksum How to use checksums |
e540e52426c45700bbe5dc5213f9d1d48ba3d8394817c749f7f2d1c95f93cb7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for flutter-widget-mcp-server 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.