Skip to content

Server-Controlled rules_wasm_component Integration #47

@avrabe

Description

@avrabe

Overview

Integrate our server with rules_wasm_component to provide automated Bazel workspace management and BUILD file generation directly from our visual component designs.

Current State

  • Excellent ComponentGroupInfo with Bazel BUILD generation
  • Manual Bazel workspace setup required
  • Strong WAC configuration generation
  • Missing: Server-controlled workspace automation

Proposed Enhancements

Automated Workspace Management

  • Server creates and manages Bazel workspaces
  • Automatic rules_wasm_component setup
  • Dependency resolution and management
  • CI/CD pipeline integration

BUILD File Generation

  • Generate BUILD.bazel from visual component designs
  • Support for different build profiles (debug/release)
  • Optimization flags and configurations
  • Validation target generation

Component Registry

  • Server-hosted component repository
  • Version management and tracking
  • Dependency graph visualization
  • Security scanning integration

Technical Implementation

  • Extend mcp/tools.rs with workspace management
  • Add Bazel workspace creation APIs
  • Integrate with existing ComponentGroup system
  • Create component registry backend

Success Criteria

  • One-click workspace creation from designs
  • Automatic BUILD file generation and updates
  • Zero-configuration Bazel builds
  • Integrated dependency management

Priority: High - Estimated effort: 2-3 weeks, 1-2 developers

Related Components

  • glsp-mcp-server/src/wasm/mod.rs (ComponentGroup)
  • rules_wasm_component integration
  • workspace/ directory management

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions