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 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.8.tar.gz (25.4 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.8-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.8.tar.gz
Algorithm Hash digest
SHA256 2985b35f6b32310edc9f0a99d1d8a9a3ae8226ed65c74e3ff28f3d71055c7c31
MD5 77666a0c47f90081624bcbb88720a545
BLAKE2b-256 973438415ada34dad1c6b88bf1fca0852c692e51532ca0eb2f4f675c56dc6673

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flutter_widget_mcp_server-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 eb6e03131e6b106ab577e74a5dffa738dc00ab4920594105a8f9b79609ba6ecf
MD5 84a30e1d1caa0e0f479f000656041959
BLAKE2b-256 a38c333c492c112d713807bb5c7dd46b9db4bf874b129041c14278a1500117a8

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