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 组件的详细信息。

特性

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

安装

推荐使用最新版本的pip来安装Flutter Widget MCP Server。首先,更新pip:

python -m pip install --upgrade pip

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

pip install flutter-widget-mcp-server

如果遇到安装问题,可以尝试以下命令:

pip install "flutter-widget-mcp-server[all]"

这将安装所有必要的依赖项。

故障排除

如果在安装过程中遇到"No matching distribution found for fastapi-mcp==0.3.4"错误,可以尝试以下步骤:

  1. 确保您的网络连接正常,可以访问PyPI。
  2. 尝试使用以下命令安装特定版本范围的fastapi-mcp:
pip install "fastapi-mcp>=0.3.4,<0.4.0"
  1. 如果问题仍然存在,请检查是否有更新的flutter-widget-mcp-server版本可用,并尝试安装最新版本。

快速开始

  1. 安装包后,首先需要生成组件数据:
from flutter_widget_mcp_server.app.gen_components_json import generate_components_json

generate_components_json('path/to/your/components/docs', 'path/to/output/components.json')
  1. 运行服务器:
from flutter_widget_mcp_server.app.main import run_server

run_server()

服务器将在 http://localhost:8000 上运行。

API 使用

查询特定组件

GET /components/{component_name}

示例:

GET /components/YLElevatedButton

列出所有组件

GET /components

搜索组件

GET /components/search?query={search_term}

示例:

GET /components/search?query=button

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.13.tar.gz (26.1 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.13-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.13.tar.gz
Algorithm Hash digest
SHA256 e9485de4160853aa57a09c6fc89be096a7c5e067ea5a3bfcb10c8755b89717ca
MD5 d84fc3628395c1439f6f3347933eb574
BLAKE2b-256 76d8668e07e9b4e1ae95d55c99dbc957719647e55a8e1debc9f1d35cecc1c6b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 23f37230cfa3ae8d8c422ded012a3ed772031ee40d1165ee3abf418db6e6b061
MD5 2b6fd72bc8598830a52d1a289dcdfb01
BLAKE2b-256 4b56dbea1bda22a5ab194a977d2fe14ad1af8726146af48846e958daf8695e8b

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