Web Component AI Tools

June 17, 2025 ยท View on GitHub

Supercharge your AI coding assistants with web component information from your workspace and dependencies. Generate accurate component code using your actual custom elements, properties, and APIs.

๐Ÿš€ Benefits

  • Accelerate UI development by facilitating AI agents to build using your custom elements and web component libraries
  • Expose documentation of your web components and libraries through AI chat

โœจ Features

๐Ÿ” Automatic Component Discovery

  • Discovers components from both local code and installed packages
  • Scans your workspace for custom-elements.json manifest files
  • Analyzes package.json files to find component libraries in dependencies

๐Ÿ“ก Model Context Protocol Server

  • Starts a local MCP server with multiple transport options (HTTP and SSE)
  • Provides real-time access to component information for AI assistants
  • Automatically generates configuration for easy AI assistant integration

๐Ÿค– AI Assistant Integration

  • Compatible with Copilot, Cursor, Windsurf, Claude Code, and other MCP-enabled AI tools
  • Provides rich component context for accurate code generation
  • Enables AI assistants to understand your specific component APIs

๐Ÿ› ๏ธ Powerful Component Tools

  • Search Components: Find components by name, tag, or description
  • Get Component Details: Retrieve complete component metadata including attributes, properties, methods, and events
  • List All Components: Browse all available components in your workspace
  • Component Resources: Access structured component data via MCP resources

๐Ÿš€ Getting Started

Installation

Install this extension by clicking Install on the banner above, or from the Extensions side bar in VS Code by searching for d13.vscode-web-components-ai.

Be sure to have VS Code 1.99.0 or higher installed.

AI Assistant Integration

See the Integrating with the MCP Server guide on how to integrate with your preferred AI assistants including Copilot, Cursor, Windsurf, Claude Code, and many more.

Have questions or concerns? Let's talk directly through the GitHub Discussions page. Having a positive experience? Feel free to write a review.

๐Ÿ› ๏ธ Available Tools & Resources

MCP Tools

  • search-components: Search for components by class name, tag name, or description
  • get-component-details-by-tag-name: Get detailed information about a specific component by tag name
  • get-component-details-by-class-name: Get detailed information about a specific component by class name
  • list-all-components: List all available components with optional detailed information

MCP Resources

  • manifest://components: Access to all component data in JSON format
  • manifest://components/{tag}: Access to specific component data by tag name

๐Ÿค Community

Discussions & Feedback

If you have any questions or want to share your experiences, please join-in on our GitHub Discussions page.

Issues & Feature Requests

If you encounter any issues or have feature requests, please report them on the GitHub Issues page.

Contributing

We welcome contributions! Please see our Contributing Guide for more information.

๐Ÿ“ License

See LICENSE file for details.