Skip to main content

Flutter Widget MCP Server for 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 install 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.11.tar.gz (25.5 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.11-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.11.tar.gz
Algorithm Hash digest
SHA256 6818d0a70b59b242ab5ca43394a4d77be87d6ceaa8a791ff08be18b64e6fa68e
MD5 8ba92c6bb4e92d5cb9acddfc6ff028d2
BLAKE2b-256 6bde520f422e53e0f571f919570063029a1ac4cc3b24a202e12096d22c9746c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4f08ea35d86b37020d1bc5a12737559ad8116e98bc3620588b35372150207b5d
MD5 67e9eb212d4038cf3d171c5a6c8c24ff
BLAKE2b-256 f54e86f501a5efdc21126b0ff351b585c359a7c7f52503972d61f32ea18c3282

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