livewire-flux-mcp

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Uyari
  • network request — Outbound network request in index.js
Permissions Gecti
  • Permissions — No dangerous permissions requested
Purpose
This MCP server acts as a documentation scraper and search tool. It allows AI assistants to dynamically fetch, search, and read documentation for Livewire Flux components and Heroicons directly from the official Flux website.

Security Assessment
The overall risk is Low. The tool makes outbound network requests, but they are strictly limited to fetching public documentation from `https://fluxui.dev/`. It does not request dangerous system permissions, access local sensitive data, or execute shell commands. No hardcoded secrets were detected in the codebase. The only slight concern is that it relies on web scraping, which could break if the target website's structure changes, but this poses no security threat to the user.

Quality Assessment
The project demonstrates solid baseline health. It is actively maintained, with repository updates pushed as recently as today, and is legally protected under a standard MIT license. The creator has also implemented CodeQL security scanning and built-in caching to optimize performance. However, it is a personal, unofficial community project with very low visibility (only 6 GitHub stars). Because it is not affiliated with the official Livewire team, long-term maintenance depends entirely on the individual developer's continued involvement.

Verdict
Safe to use, though developers should keep in mind its unofficial status and reliance on web scraping.
SUMMARY

MCP server for Livewire Flux

README.md

Livewire Flux MCP

Npm
CodeQL
License
Downloads
Sponsor

An MCP (Model Context Protocol) server that provides access to Livewire Flux Components and Layouts from Livewire Flux. This server allows AI assistants to fetch and search through Flux component and layout documentation on demand.

⚠️ Disclaimer

This is a personal project and is not affiliated with Livewire Flux.

Support Me

Hey folks,

Do you like this package? Do you find it useful, and it fits well in your project?

I am glad to help you, and I would be so grateful if you considered supporting my work.

You can even choose 😃:

What it does

This MCP server scrapes and provides structured access to the Livewire Flux documentation, enabling AI assistants to:

  • Fetch documentation for specific Flux components from https://fluxui.dev/components/
  • Fetch documentation for specific Flux layouts from https://fluxui.dev/layouts/
  • Access component and layout reference sections with API details, props, and usage patterns
  • Search through component and layout documentation content
  • List all available Flux components
  • Browse and search all available Heroicons for use with flux:icon component
  • Access up-to-date documentation directly from the official Flux website
  • High-performance caching with 24-hour expiration for optimal response times

Available MCP Tools

The server provides four MCP tools:

  1. fetch_flux_docs - Fetches documentation for components or layouts

    • component (optional): Specific component name to fetch docs for
    • layout (optional): Specific layout name to fetch docs for (e.g., "header", "sidebar")
    • search (optional): Search term to filter content
    • Automatically includes reference sections when available
    • Fetches from https://fluxui.dev/components/{component} or https://fluxui.dev/layouts/{layout}
  2. list_flux_components - Lists all available Flux components

    • No parameters required
    • Returns components with https://fluxui.dev/components/ prefix
    • Provides component names and their documentation paths
  3. list_flux_layouts - Lists all available Flux layouts

    • No parameters required
    • Returns layouts with https://fluxui.dev/layouts/ prefix
    • Provides layout names and their documentation paths
  4. list_flux_component_icons - Lists all available Heroicons for flux:icon component

    • variant (optional): Filter by icon variant (outline, solid, mini, micro)
    • search (optional): Search term to filter icon names
    • Fetches actual icon names from Heroicons GitHub repository
    • Provides usage examples, dimensions, and GitHub links for each variant
    • Returns comprehensive list of all available icons with proper Flux syntax

Example Usage

Once the MCP server is running, AI assistants can use it to:

  • Get documentation for a specific component: "Show me the Button component docs"
  • Get documentation for a specific layout: "Show me the header layout docs"
  • Search for content: "Find all components related to forms"
  • List available components: "What Flux components are available?"
  • List available layouts: "What Flux layouts are available?"
  • Browse all available icons: "Show me all Heroicons available for flux:icon"
  • Search for specific icons: "Find all arrow icons in the outline variant"
  • Get icon usage examples: "How do I use the user icon in solid variant?"

The server automatically fetches the latest documentation from fluxui.dev/components, fluxui.dev/layouts, and Heroicons from GitHub, presenting everything in a structured format for easy consumption by AI assistants. When fetching component or layout documentation, it includes both the main content and the reference section with detailed API information.

Manually Registering the MCP Server

Sometimes you may need to manually register the Livewire Flux MCP server with your editor of choice.
You should register the MCP server using the following details:

Commandnpx
Argslivewire-flux-mcp
{
    "mcpServers": {
        "flux-docs": {
            "command": "npx",
            "args": ["livewire-flux-mcp"]
        }
    }
}

Performance & Caching

The MCP server includes intelligent caching to provide optimal performance:

  • 24-hour cache expiration - Content is cached for 1 day to balance freshness with performance
  • Automatic cache management - Expired entries are automatically cleaned up
  • Intelligent cache keys - Different cache entries for different parameters (component, layout, search, variant)
  • GitHub API rate limit protection - Prevents hitting GitHub API limits when fetching Heroicons
  • Instant responses - Cached requests return in milliseconds instead of seconds

Cache Behavior

  • Documentation requests: Cached per component/layout and search term combination
  • Component listings: Cached globally (refreshed daily)
  • Layout listings: Cached globally (refreshed daily)
  • Icon listings: Cached per variant and search combination
  • Cache storage: In-memory (resets when server restarts)

The caching system is particularly beneficial for the list_flux_component_icons tool, which can make up to 4 GitHub API calls per request without caching.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Yorumlar (0)

Sonuc bulunamadi