mcp-fm-analyzer
The UVL Analyzer MCP is a server that processes feature models written in the Universal Variability Language. It provides various analytical tools to offer insights into feature model structure and configurations, aiding in effective model management and analysis.
UVL Analyzer MCP
The UVL Analyzer MCP is a Model Context Protocol (MCP) server designed to analyze feature models written in the Universal Variability Language (UVL). It provides a variety of tools to process and extract insights from feature models, such as identifying atomic sets, calculating average branching factors, and more.
Features
This MCP supports the following operations:
-
Atomic Sets
Identifies atomic sets in a feature model. An atomic set is a group of features that always appear together across all configurations of the model. -
Average Branching Factor
Calculates the average number of child features per parent feature in the feature model, providing insight into the model's complexity. -
Commonality
Measures how often a feature appears in the configurations of a product line, usually expressed as a percentage. -
Configurations
Generates all possible valid configurations of a feature model. Each configuration represents a valid product derivable from the model. -
Configurations Number
Returns the total number of valid configurations represented by the feature model. -
Core Features
Identifies features that are present in all valid configurations of the feature model (mandatory features). -
Count Leafs
Counts the number of leaf features in a feature model. Leaf features are those without any children. -
Dead Features
Identifies features that cannot be included in any valid product configuration due to constraints and dependencies in the model. -
Estimated Number of Configurations
Provides an estimate of the total number of different configurations that can be produced from a feature model. -
False Optional Features
Identifies features that appear optional but must be included in every valid product configuration due to constraints. -
Feature Ancestors
Identifies all ancestor features of a given feature in the feature model. -
Filter
Filters and selects a subset of configurations based on specified criteria. -
Leaf Features
Identifies all leaf features in the feature model. -
Max Depth
Finds the maximum depth of the feature tree in the model, indicating the longest path from the root to a leaf. -
Satisfiability
Checks whether a given model is valid according to the constraints defined in the feature model.
Usage with Claude Desktop
To use this with Claude Desktop, add the following to your claude_desktop_config.json
:
Docker
{
"mcpServers": {
"uvl_analyzer": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/uvlanalyzer"
]
}
}
}
NPX
{
"mcpServers": {
"uvl-analyzer": {
"command": "npx",
"args": [
"-y",
"@lbdudc/mcp-uvl-analyzer",
],
}
}
}
Build
Docker build:
docker build -t mcp/uvlanalyzer .
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.