Flux UI 组件引用的 MCP 服务器
这是一个基于 TypeScript 的 MCP 服务器,提供 Flux UI 组件的参考信息。它实现了一个模型上下文协议(MCP)服务器,帮助AI助手访问 Flux UI 组件的文档和示例。
list_flux_components - 获取所有可用的 Flux UI 组件列表get_flux_component_details - 获取特定组件的详细信息get_flux_component_examples - 获取特定组件的使用示例search_flux_components - 根据关键词搜索组件该服务器从以下来源抓取并缓存信息:
它提供了结构化的数据,包括:
安装依赖项:
npm install
构建服务器:
npm run build
开发时自动重建:
npm run watch
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fluxui-server": {
"command": "/path/to/fluxui-mcp-server/build/index.js"
}
}
}
{
"mcpServers": {
"fluxui-server": {
"command": "npx",
"args": ["-y", "fluxui-mcp-server"]
}
}
}
在你的 ./codeium/windsurf/model_config.json 中添加以下内容:
{
"mcpServers": {
"fluxui-server": {
"command": "npx",
"args": ["-y", "fluxui-mcp-server"]
}
}
}
在你的 .cursor/mcp.json 中添加以下内容:
{
"mcpServers": {
"fluxui-server": {
"command": "npx",
"args": ["-y", "fluxui-mcp-server"]
}
}
}
由于 MCP 服务器通过标准 I/O 进行通信,调试可能会比较困难。我们推荐使用 MCP Inspector,它作为一个包脚本提供:
npm run inspector
Inspector 将提供一个 URL,以便在浏览器中访问调试工具。