Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.
Python aecai-agentsautodeskautomationbimclaudeifcmcpmcp-servermodel-context-protocolnavisworksrevitrevit-addinrevit-apirhino
<Window x:Class="RevitBridge.UI.ModernDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="AEC Model Bridge"
Height="680"
Width="780"
MinHeight="500"
MinWidth="620"
MaxHeight="860"
MaxWidth="960"
WindowStartupLocation="CenterOwner"
ResizeMode="CanResizeWithGrip"
Background="Transparent"
WindowStyle="None"
AllowsTransparency="True"
UseLayoutRounding="True"
SnapsToDevicePixels="True"
TextOptions.TextFormattingMode="Display"
FontFamily="Segoe UI">
<Window.Resources>
<!-- Modern Button Style -->
<Style x:Key="ModernButton" TargetType="Button">
<Setter Property="Background" Value="{DynamicResource AccentBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource OnAccentBrush}"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Padding" Value="24,10"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.9"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" Value="0.8"/>
</Trigger>
</Style.Triggers>
</Style>
<!-- Secondary Button Style -->
<Style x:Key="SecondaryButton" TargetType="Button" BasedOn="{StaticResource ModernButton}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
<!-- Stat Card Style with Elegant Shadows and Hover Effects -->
<Style x:Key="StatCard" TargetType="Border">
<Setter Property="Background" Value="{DynamicResource CardBgBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="10"/>
<Setter Property="Padding" Value="16"/>
<Setter Property="Margin" Value="6"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#000000" Opacity="0.06" BlurRadius="8" ShadowDepth="1"/>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#000000" Opacity="0.12" BlurRadius="12" ShadowDepth="3"/>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Border x:Name="MainWindowBorder"
CornerRadius="10"
Background="{DynamicResource CardBgBrush}"
BorderBrush="{DynamicResource BorderBrush}"
BorderThickness="1">
<Border.Effect>
<DropShadowEffect Color="#000000" Opacity="0.25" BlurRadius="20" ShadowDepth="5"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="64"/>
<RowDefinition Height="*"/>
<RowDefinition Height="76"/>
</Grid.RowDefinitions>
<!-- Header -->
<Border x:Name="HeaderBorder" Grid.Row="0" Background="{DynamicResource HeaderBrush}" CornerRadius="9,9,0,0" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="0,0,0,2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image x:Name="HeaderLogo" Grid.Column="0" Width="36" Height="36" Margin="15,0,10,0" Stretch="Uniform" SnapsToDevicePixels="True" AutomationProperties.Name="AEC Model Bridge logo"/>
<!-- Title -->
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock x:Name="DialogTitle"
Text="AEC Model Bridge Status"
FontSize="17"
FontWeight="SemiBold"
Foreground="#E9EEF5"/>
<TextBlock x:Name="DialogSubtitle"
Text="MCP automation for Revit software"
FontSize="11"
Foreground="#9BA8B9"/>
</StackPanel>
<!-- Close Button -->
<Button Grid.Column="2"
x:Name="CloseButton"
Width="40"
Height="40"
Margin="0,0,10,0"
Background="Transparent"
BorderThickness="0"
Cursor="Hand"
AutomationProperties.Name="Close dialog"
Click="CloseButton_Click">
<Path Fill="#C9D4E2" Data="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/>
</Button>
</Grid>
</Border>
<!-- Content -->
<ScrollViewer Grid.Row="1"
Background="{DynamicResource BgBrush}"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Disabled"
CanContentScroll="False"
Margin="22,18">
<StackPanel x:Name="ContentPanel">
<!-- Content will be dynamically added -->
</StackPanel>
</ScrollViewer>
<!-- Footer -->
<Border x:Name="FooterBorder" Grid.Row="2" Background="{DynamicResource FooterBgBrush}" CornerRadius="0,0,9,9" BorderBrush="{DynamicResource FooterBorderBrush}" BorderThickness="0,1,0,0">
<Grid Margin="24,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" VerticalAlignment="Center">
<TextBlock Text="Maintained by A. Sam Mohammad"
FontSize="12"
FontWeight="SemiBold"
Foreground="{DynamicResource TextPrimaryBrush}"/>
<TextBlock Text="Independent MCP integration for Revit software"
Margin="0,4,0,0"
FontSize="11"
Foreground="{DynamicResource TextSecondaryBrush}"
TextTrimming="CharacterEllipsis"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<Button x:Name="ActionButton"
Content="OK"
Style="{StaticResource ModernButton}"
Click="ActionButton_Click"
Margin="0,0,10,0"/>
<Button x:Name="CancelButton"
Content="Cancel"
Style="{StaticResource SecondaryButton}"
Click="CancelButton_Click"
Visibility="Collapsed"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Border>
</Window>