Skip to main content

Flutter Widget MCP Server for YL AI-enhanced Flutter component library

Project description

Flutter Widget MCP Server

Flutter Widget MCP Server 是一个用于 Flutter Widget 组件库的 Model Context Protocol (MCP) 服务器。它提供了一个强大的 API 来查询和搜索 Flutter 组件的详细信息。

特性

  • 组件查询:获取特定组件的详细信息
  • 组件列表:获取所有可用组件的列表
  • 组件搜索:根据关键词搜索组件
  • 支持部分匹配和不区分大小写的查询

PYPI安装

推荐使用最新版本的pip来安装Flutter Widget MCP Server。

https://pypi.org/project/flutter-widget-mcp-server/

首先,更新pip:

python -m pip install --upgrade pip

然后,使用pip安装Flutter Widget MCP Server:

pip install flutter-widget-mcp-server

源码安装

  1. 确保你已经安装了 Python 3.7+。
  2. 安装依赖:
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 文件中。
  • 如果修改了组件文档,需要重新运行生成脚本来更新组件数据。

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

flutter_widget_mcp_server-0.1.15.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

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

flutter_widget_mcp_server-0.1.15-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file flutter_widget_mcp_server-0.1.15.tar.gz.

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.15.tar.gz
Algorithm Hash digest
SHA256 ea4505d23b555133606319f3081629551bdf5951a636db37ea387141e5d5b159
MD5 302ef5c4cbb3f653aa09d5a187fde98b
BLAKE2b-256 db190bc338ebdaf4eb2e8a29579a8fcb4d85fbdd42848356a15e9b5fa4571480

See more details on using hashes here.

File details

Details for the file flutter_widget_mcp_server-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3ac0c80df9292919c278be3e4c0b1f8d1c8468e41ba554a0720fef86b5763c66
MD5 662702deefbb2360d545a7d10171be12
BLAKE2b-256 5d5fac7fe64dbeda1e7a113f2e3bbeefb67e93d613217decbeac1509574cb70f

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