MMI Architecture Analyzer
Provides automated analysis of .NET and C# projects to assess architecture quality across dimensions such as layering, encapsulation, abstraction levels, and circular dependencies using the MMI framework.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MMI Architecture Analyzerrun a full MMI analysis on my C# project and show the interactive heatmap"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MMI Architecture Analyzer
Model Context Protocol (MCP) server for analyzing C# project architecture quality using the MMI (Modularity Maturity Index) framework by Carola Lilienthal.
Overview
This MCP server provides automated analysis of .NET/C# projects to assess architecture quality across four critical dimensions from Carola Lilienthal's MMI framework:
Dimension 2: Layering - Validates Clean Architecture layer dependencies
Dimension 5: Encapsulation - Analyzes public vs internal type visibility
Dimension 8: Abstraction Levels - Detects mixing of business logic with technical details
Dimension 9: Circular Dependencies - Identifies dependency cycles using Tarjan's algorithm
Related MCP server: Code-Oracle
Features
Token-Optimized Reports: Compact mode reduces token usage by 66%
Interactive Heatmap: D3.js visualization with cycle detection
Incremental Analysis: File-hash caching for 70% faster monitoring
Live Monitoring: Real-time analysis with trend tracking
Cycle Detection: Graph-based circular dependency analysis with visual highlighting
Installation
Prerequisites
Node.js 18 or higher
Cursor IDE
Setup
Clone this repository:
git clone https://github.com/lady-logic/mmi-analyzer.git
cd mmi-analyzerInstall dependencies:
npm installConfigure in Cursor:
Add to your Cursor MCP settings (~/.cursor/config.json or via Settings β MCP):
{
"mcpServers": {
"mmi-analyzer": {
"command": "node",
"args": ["C:/path/to/mmi-analyzer/src/server.js"]
}
}
}Note: Use absolute paths. On Windows, use forward slashes.
Restart Cursor
Usage
The MMI Analyzer provides seven tools accessible via Cursor's AI assistant:
1. Complete MMI Analysis
analyze_mmi(projectPath: "D:/Projects/MyApp")
analyze_mmi(projectPath: "D:/Projects/MyApp", mode: "detailed") // Full reportRuns all four dimension analyses and provides an overall architecture quality score.
2. Interactive Architecture Heatmap
visualize_architecture(projectPath: "D:/Projects/MyApp")Generates D3.js visualization showing:
Files as nodes colored by quality score (green=excellent, red=critical)
Dependencies as links (gray=normal, red=violations, pink=cycles)
Animated pulsing for circular dependencies
Interactive filtering by layer or cycles
Click nodes to see detailed issues
3. Circular Dependency Analysis
analyze_cycles(projectPath: "D:/Projects/MyApp")
analyze_cycles(projectPath: "D:/Projects/MyApp", mode: "detailed")Detects circular dependencies across the entire project:
Uses graphlib's Tarjan algorithm for cycle detection
Analyzes ALL C# dependencies (using statements)
Severity classification:
π΄ CRITICAL: Domain layer involved in cycle
π HIGH: 2-way circular dependency
π‘ MEDIUM: 3-4 files in cycle
π΅ LOW: 5+ files in cycle
Shows complete cycle paths
4. Live Monitoring
start_monitoring(projectPath: "D:/Projects/MyApp")
get_monitoring_status()
stop_monitoring(projectPath: "D:/Projects/MyApp")Watches .cs files and automatically analyzes changes with trend visualization.
5. Layering Analysis
analyze_layering(projectPath: "D:/Projects/MyApp")Detects Clean Architecture violations (e.g., Domain depending on Infrastructure).
6. Encapsulation Analysis
analyze_encapsulation(projectPath: "D:/Projects/MyApp")Identifies over-exposed types that should be internal.
7. Abstraction Level Analysis
analyze_abstraction(projectPath: "D:/Projects/MyApp")Finds mixing of business logic with technical details (SQL, HTTP, File I/O).
Report Modes
Compact Mode (Default)
Token-optimized output (~66% reduction)
Grouped violations
Concise recommendations
Perfect for quick checks and monitoring
Detailed Mode
Full violation listings
Code examples
Comprehensive tables
Ideal for documentation and deep analysis
Example Output
# Complete MMI Analysis Report
Overall MMI Score: 4.2/5 (Gut)
## MMI Scorecard
| Dimension | Score | Level | Status |
|------------------------|-------|------------|--------|
| Layering | 5/5 | Exzellent | β
|
| Encapsulation | 4/5 | Gut | β
|
| Abstraction Levels | 3/5 | Akzeptabel | π‘ |
| Circular Dependencies | 5/5 | Exzellent | β
|
## π― Priority Actions
1. **Fix abstraction mixing** - Remove SQL queries from Domain layerHeatmap Visualization
The interactive heatmap provides real-time visual feedback:
Color Coding:
π’ Green: Excellent (4.5-5.0)
π΅ Blue: Good (3.5-4.5)
π Orange: Acceptable (2.5-3.5)
π΄ Red: Critical (<2.5)
π£ Pink: Circular dependency
Interactive Features:
Drag nodes to rearrange
Zoom and pan
Filter by layer or cycles
Click nodes for detailed issues
Animated pink pulsing links show cycles
Architecture
mmi-analyzer/
βββ src/
β βββ server.js # MCP server implementation
β βββ config/
β β βββ report-config.js # Report mode configuration
β βββ analyzers/
β β βββ layering.js # Dimension 2: Layer dependencies
β β βββ encapsulation.js # Dimension 5: Type visibility
β β βββ abstraction.js # Dimension 8: Abstraction mixing
β β βββ cycle-analyzer.js # Dimension 9: Circular dependencies
β βββ formatters/ # Report formatters (compact/detailed)
β β βββ cycle-formatter.js # Cycle-specific formatting
β β βββ combined-formatter.js # 4D MMI reports
β βββ monitoring/ # File watching & history
β βββ visualizations/ # Heatmap generator with cycle viz
β βββ utils/
β βββ file-cache.js # Hash-based caching
βββ package.json
βββ README.mdScoring System
MMI Scores (0-5):
5 - Exzellent: State-of-the-art architecture
4 - Gut: Strong architecture, minor improvements needed
3 - Akzeptabel: Solid foundation, some refactoring recommended
2 - VerbesserungswΓΌrdig: Significant technical debt
1 - Schlecht: Major refactoring required
0 - Kritisch: Architecture fundamentally broken
Cycle Scoring:
0 cycles = 5 points
<1% files in cycles = 4 points
<3% files in cycles = 3 points
<5% files in cycles = 2 points
<10% files in cycles = 1 point
β₯10% files in cycles = 0 points
Performance
Compact reports: ~2,400 tokens (vs. 7,000 detailed)
Monitoring: Only analyzes changed files (70% reduction)
Caching: MD5 hash-based file tracking
Cycle detection: O(V + E) using Tarjan's SCC algorithm
First analysis: Full scan, subsequent: incremental
Breaking Cycles
When circular dependencies are detected, the tool suggests resolution strategies:
Dependency Inversion - Introduce interfaces
Event-Driven Architecture - Use message bus (e.g., MassTransit)
Extract Common Dependencies - Create shared module
Merge Components - Combine artificially separated code
Anti-Corruption Layer - Add translation layer
Troubleshooting
Server not connecting
Check absolute paths in Cursor config
Verify Node.js version:
node --version(needs 18+)Check logs:
mmi-analyzer.login server directory
No analysis results
Ensure the project path contains
.csfilesVerify project follows folder structure (
Domain/,Application/,Infrastructure/)
Cache issues
Delete
.mmi-cache.jsonin project root to force full re-analysis
Cycles not detected
Ensure files have proper
namespacedeclarationsCheck that
usingstatements reference project namespacesMultiple files can share the same namespace (supported)
Contributing
Contributions welcome! This is an experimental tool for learning MCP server development.
License
MIT
References
MMI Framework: Carola Lilienthal - Langlebige Softwarearchitekturen
MCP Protocol: Anthropic Model Context Protocol
Clean Architecture: Robert C. Martin
Cycle Detection: Tarjan's Strongly Connected Components algorithm
Status: Experimental | Version: 0.4.0
Available Tools
9 toolsanalyze_abstractionC
Analyzes separation of abstraction levels. Detects mixing of business logic (Domain/Application) with technical details (SQL, HTTP, File I/O). Identifies violations of clean separation.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory | |
| mode | No | Report mode: 'compact' (default, token-optimized) or 'detailed' (full info) | compact |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It describes what the tool does but lacks critical behavioral details: it doesn't specify whether this is a read-only analysis or has side effects, what permissions are required, what the output format looks like, or any performance characteristics. For a tool with 2 parameters and no annotations, this leaves significant gaps in understanding how the tool behaves.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately concise with three sentences that each serve a purpose: stating the overall function, specifying what it detects, and clarifying the goal. It's front-loaded with the main purpose and avoids unnecessary elaboration. However, the second sentence could be slightly more streamlined.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (analyzing code architecture), lack of annotations, and absence of an output schema, the description is incomplete. It doesn't explain what the analysis output contains, how violations are reported, or what follow-up actions might be needed. For a tool that presumably returns analysis results, this creates uncertainty about how to interpret and use the tool's findings.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds no parameter-specific information beyond what's in the schema. It doesn't explain how 'projectPath' relates to the abstraction analysis or provide context for 'mode' selection. The baseline score of 3 reflects adequate but minimal value added by the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: analyzing separation of abstraction levels by detecting mixing of business logic with technical details and identifying violations. It uses specific verbs ('analyzes', 'detects', 'identifies') and specifies the resource (abstraction levels in code). However, it doesn't explicitly differentiate this from sibling tools like analyze_layering or analyze_encapsulation, which may have related but distinct purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools, specify contexts where this analysis is appropriate, or indicate prerequisites. The agent must infer usage from the purpose alone, which is insufficient for optimal tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
analyze_cyclesB
Analyzes circular dependencies (cycles) in the codebase. Detects files that depend on each other in a circular way, which violates good architecture principles. Critical when Domain layer is involved.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory | |
| mode | No | Report mode: 'compact' (default, token-optimized) or 'detailed' (full info) | compact |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It mentions that cycles 'violate good architecture principles' and are 'critical' for Domain layer, adding some behavioral context. However, it doesn't disclose key traits: whether this is a read-only analysis, what the output format is, if it has side effects, performance implications, or error handling. For a tool with no annotations, this leaves significant gaps in understanding its behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise with three sentences that are front-loaded: the first states the core purpose, the second elaborates on detection, and the third adds critical context. There's no wasted text, and each sentence adds value, though it could be slightly more structured for optimal clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, no output schema, and 2 parameters with full schema coverage, the description is moderately complete. It covers the purpose and some context but lacks details on output format, error cases, or integration with other tools. For a static analysis tool, this is adequate but leaves room for improvement in guiding the agent on what to expect from the tool's behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents both parameters (projectPath and mode). The description doesn't add any parameter-specific information beyond what's in the schema, such as examples or usage tips. With high schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate but also doesn't detract.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Analyzes circular dependencies (cycles) in the codebase' with specific verb ('analyzes') and resource ('circular dependencies in the codebase'). It distinguishes from siblings by focusing on cycles rather than abstraction, encapsulation, layering, etc., though it doesn't explicitly contrast with them. The mention of Domain layer adds specificity but doesn't fully differentiate from all siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context with 'Critical when Domain layer is involved,' suggesting when this tool is particularly important. However, it lacks explicit guidance on when to use this vs. alternatives like analyze_layering or other analysis tools, and no exclusions or prerequisites are stated. The guidance is helpful but incomplete.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
analyze_encapsulationC
Analyzes encapsulation quality by checking public vs internal visibility of classes, interfaces, and records. Identifies over-exposed types that should be internal.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory | |
| mode | No | Report mode: 'compact' (default, token-optimized) or 'detailed' (full info) | compact |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but doesn't describe output format, whether it's read-only or has side effects, performance characteristics, or error handling. For a tool with 2 parameters and no output schema, this leaves significant behavioral gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise - just two sentences that directly state the tool's purpose and function. Every word earns its place with zero wasted text, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 2 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the analysis returns, how results are formatted, or what 'over-exposed types' means in practice. For a code analysis tool, users need to understand what kind of output to expect.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema. The baseline of 3 is appropriate when the schema does the heavy lifting, though the description could have explained how parameters relate to the analysis.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: analyzing encapsulation quality by checking visibility of classes/interfaces/records and identifying over-exposed types. It specifies the verb ('analyzes'), resource ('encapsulation quality'), and scope ('public vs internal visibility'), though it doesn't explicitly differentiate from sibling tools like analyze_abstraction or analyze_layering.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools, prerequisites, or specific contexts where encapsulation analysis is appropriate versus other architectural analyses available on the server.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
analyze_layeringB
Analyzes Clean Architecture layering violations in a C# project. Checks if Domain/Application/Infrastructure layers follow dependency rules.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory (e.g., D:\Projects\MyApp) | |
| mode | No | Report mode: 'compact' (default, token-optimized) or 'detailed' (full info) | compact |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. While it states what the tool does, it doesn't describe important behavioral aspects like what format the analysis output takes, whether it's a read-only analysis or makes changes, error handling, performance characteristics, or what happens with invalid project paths.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured in two clear sentences that directly state the tool's purpose. There's no wasted text, though it could potentially benefit from slightly more detail given the lack of annotations and output schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no annotations and no output schema that performs architectural analysis, the description is insufficient. It doesn't explain what the analysis output looks like, what constitutes a 'violation', how results are presented, or what happens with edge cases. The description needs to compensate for the lack of structured metadata.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents both parameters. The description doesn't add any parameter-specific information beyond what's in the schema, such as explaining what 'compact' versus 'detailed' mode means in practical terms or providing examples of valid project paths.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('analyzes Clean Architecture layering violations'), target resource ('C# project'), and scope ('Domain/Application/Infrastructure layers'). It distinguishes from siblings like analyze_abstraction or analyze_cycles by focusing specifically on layering violations and dependency rules.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like analyze_encapsulation or visualize_architecture. It doesn't mention prerequisites, typical use cases, or when other tools might be more appropriate for different architectural analysis needs.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
analyze_mmiB
Complete MMI (Modularity Maturity Index) analysis. Runs all three dimensions: Layering (Dimension 2), Encapsulation (Dimension 5), and Abstraction Levels (Dimension 8). Provides overall architecture quality score.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory | |
| mode | No | Report mode: 'compact' (default, token-optimized) or 'detailed' (full info) | compact |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It mentions running analysis and providing a score, but doesn't disclose behavioral traits like execution time, resource requirements, error handling, or output format details. The description doesn't contradict annotations (none exist), but provides minimal behavioral context beyond the basic operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise (two sentences) and front-loaded with the core purpose. Every word earns its place: first sentence defines the analysis scope, second sentence specifies the output. No redundant information or fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 2 parameters with full schema coverage but no annotations and no output schema, the description is minimally adequate. It explains what the tool does but lacks details about the analysis process, output format, or integration with sibling tools. For a tool performing complex architectural analysis, more context about results and limitations would be helpful.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents both parameters (projectPath and mode). The description adds no parameter-specific information beyond what's in the schema, maintaining the baseline score of 3. It doesn't explain how parameters affect the analysis process or results.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Complete MMI (Modularity Maturity Index) analysis' with specific dimensions (Layering, Encapsulation, Abstraction Levels) and mentions providing an overall architecture quality score. It distinguishes from siblings like analyze_abstraction, analyze_encapsulation, and analyze_layering by indicating it runs all three dimensions together, but doesn't explicitly contrast with other analysis tools like analyze_cycles.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for comprehensive MMI analysis across three dimensions, suggesting it's for overall architecture assessment rather than individual dimension analysis. However, it lacks explicit guidance on when to use this tool versus alternatives like analyze_abstraction (for single dimension) or visualize_architecture (for visualization), and doesn't mention prerequisites or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_monitoring_statusB
Shows status of all monitored projects with current scores and trends.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It implies a read-only operation ('shows'), but doesn't disclose behavioral traits like whether it requires authentication, has rate limits, returns real-time vs. cached data, or handles errors. The description is minimal and lacks operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose. Every word contributes meaning without waste, making it appropriately sized for a zero-parameter tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no output schema), the description is adequate but minimal. It covers the basic purpose but lacks context on usage, behavior, or output format, which could be helpful for an agent to understand how to interpret the results (e.g., what 'scores and trends' entail).
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and schema description coverage is 100% (since there are no parameters to describe). The description doesn't need to add parameter semantics, so a baseline of 4 is appropriate as it doesn't introduce confusion or gaps.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'shows' and the resource 'status of all monitored projects', specifying what data is included ('current scores and trends'). However, it doesn't explicitly differentiate from sibling tools like 'visualize_architecture' or 'analyze_*' tools, which might also show project-related information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites like needing monitoring to be active (implied by 'monitored projects'), nor does it compare to siblings such as 'start_monitoring' or 'stop_monitoring' for context on setup/teardown.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
start_monitoringB
Starts continuous MMI monitoring for a C# project. Watches .cs files and automatically analyzes on changes. Stores score history over time.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the monitoring behavior ('Watches .cs files and automatically analyzes on changes') and persistence ('Stores score history over time'), which is useful. However, it misses critical details: whether this requires specific permissions, if it runs in background/blocking mode, potential resource impacts, error handling, or how to access stored history. For a tool that initiates continuous processes, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured in three concise sentences that cover purpose, behavior, and outcome. Each sentence adds value: starting monitoring, watching/analyzing files, and storing history. It's front-loaded with the core action. Minor improvement could be made by combining ideas, but it's highly efficient with zero waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description provides adequate basics for a monitoring initiation tool. It covers what the tool does and key behaviors, but lacks details on operational aspects (e.g., how monitoring runs, accessing results, stopping). With 1 parameter at 100% schema coverage, it's minimally viable but leaves gaps in understanding the full tool behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with the single parameter 'projectPath' fully documented in the schema. The description doesn't add any parameter-specific information beyond what the schema provides (e.g., no examples of valid paths or format requirements). Baseline is 3 since the schema does the heavy lifting, but the description doesn't compensate with additional context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Starts continuous MMI monitoring for a C# project' with specific actions ('Watches .cs files and automatically analyzes on changes') and outcome ('Stores score history over time'). It distinguishes from siblings like 'analyze_mmi' (one-time analysis) and 'get_monitoring_status' (status check), but doesn't explicitly contrast them. The verb 'starts' is specific, and the resource 'C# project' is well-defined.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context: it's for initiating ongoing monitoring rather than one-time analysis (contrasting with 'analyze_mmi'). However, it doesn't explicitly state when to use this tool versus alternatives like 'stop_monitoring' or prerequisites (e.g., project must be valid). The context is clear but lacks explicit guidance on exclusions or comparisons.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
stop_monitoringB
Stops MMI monitoring for a project. Preserves history.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It adds some context by stating 'Preserves history,' which hints at non-destructive behavior regarding historical data, but it doesn't cover other aspects like permissions needed, side effects, or what happens after stopping (e.g., does monitoring cease immediately?). This is a minimal but not comprehensive disclosure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise and front-loaded, consisting of just two short sentences that directly state the tool's action and a key behavioral trait. Every word earns its place, with no wasted information or redundancy, making it efficient and easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (a single-parameter action with no output schema and no annotations), the description is somewhat complete but has gaps. It covers the basic purpose and hints at behavior ('Preserves history'), but lacks details on usage guidelines, full behavioral transparency, and output expectations. It's adequate as a minimum viable description but not fully comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with 'projectPath' clearly documented as 'Path to the C# project directory.' The description adds no additional meaning beyond this, as it doesn't elaborate on parameter usage or constraints. Given the high schema coverage, a baseline score of 3 is appropriate, as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('stops') and resource ('MMI monitoring for a project'), making it immediately understandable. However, it doesn't explicitly differentiate from its sibling 'get_monitoring_status' or 'start_monitoring' beyond the action verb, which is why it doesn't reach a score of 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'get_monitoring_status' or 'start_monitoring', nor does it mention prerequisites or context for stopping monitoring. It lacks explicit usage instructions, leaving the agent to infer based on the action alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
visualize_architectureC
Generate interactive architecture heatmap visualization with D3.js. Shows files as nodes colored by score (green=good, red=critical), dependencies as links, violations highlighted. Click nodes to see details.
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes the visualization output and interactive features, but doesn't cover critical aspects like performance implications, data sources (e.g., whether it analyzes code in real-time or uses cached results), error handling, or system requirements. For a visualization tool with zero annotation coverage, this leaves the agent guessing about operational behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured in two sentences: the first covers the core functionality, and the second adds interactive details. It's front-loaded with the main action ('Generate interactive architecture heatmap visualization') and avoids unnecessary fluff. However, it could be slightly more concise by integrating the color coding into the first sentence.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (visualization with interactive features), no annotations, no output schema, and a simple input schema, the description is minimally adequate. It explains what the tool produces but lacks details on output format (e.g., HTML file, URL), error cases, or integration with sibling analysis tools. It meets basic requirements but leaves gaps for effective agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with the single parameter 'projectPath' fully documented in the schema as 'Path to the C# project directory.' The description adds no additional parameter context beyond what the schema provides, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but doesn't need to.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Generate interactive architecture heatmap visualization with D3.js.' It specifies the visualization type (heatmap), technology (D3.js), and key elements (files as nodes, dependencies as links, violations highlighted). However, it doesn't explicitly differentiate from sibling tools like analyze_abstraction or analyze_cycles, which appear to be analysis tools rather than visualization tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It mentions interactive features like clicking nodes for details, but doesn't specify use cases, prerequisites, or exclusions. Given sibling tools like analyze_abstraction that might provide complementary data, the lack of comparative context is a significant gap.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
9 tool updates
v0.2.0- First observed
analyze_abstraction - First observed
analyze_cycles - First observed
analyze_encapsulation - First observed
analyze_layering - First observed
analyze_mmi - First observed
get_monitoring_status - First observed
start_monitoring - First observed
stop_monitoring - First observed
visualize_architecture
TDQS
Scored across 9 tools
Most tools have distinct purposes, such as analyze_abstraction for abstraction levels and analyze_cycles for circular dependencies, but analyze_mmi overlaps by running multiple analyses that other tools handle individually, which could cause confusion in tool selection. The monitoring tools (get_monitoring_status, start_monitoring, stop_monitoring) are clearly separate from analysis tools, reducing overall ambiguity.
All tool names follow a consistent verb_noun pattern with snake_case, such as analyze_abstraction, get_monitoring_status, and visualize_architecture. This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming conventions across the nine tools.
With 9 tools, the count is well-scoped for an architecture analyzer server, covering analysis, monitoring, and visualization aspects without being overwhelming. Each tool serves a clear role, such as specific analyses or monitoring controls, making the set appropriately sized for the domain.
The tool set provides comprehensive coverage for architecture analysis, including specific checks (e.g., layering, encapsulation), overall scoring (analyze_mmi), monitoring lifecycle (start/stop/get status), and visualization. A minor gap is the lack of tools for fixing or suggesting corrections for identified violations, but agents can work around this by using analysis results to guide manual improvements.
Maintenance
Related MCP Connectors
MCP server for static security analysis of Android source code
Repository knowledge graph MCP server for codebase understanding and debugging.
Conformance checker for MCP servers. Free, no key, verdicts recomputable and re-measured daily.
MCP Server for an Agent Task Marketplace
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for comprehensive code analysis, navigation, and quality assessment across 25+ programming languages.988MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for automated architectural mapping, security vulnerability detection, ML asset tracking, and code metrics in local repositories.-
- AlicenseNot gradedqualityDmaintenanceA local MCP server that provides Sonar-grade static analysis (bugs, vulnerabilities, code smells) for TypeScript/JS and C# repositories, with CLI and dashboard support.MIT
- FlicenseAqualityBmaintenanceMCP server for repository mapping, dependency analysis, and architecture diagram generation for JavaScript, TypeScript, and Python projects.48 npm-