Module Craft
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., "@Module Craft plan a module for handling user notifications"
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.
Module Craft
Vision
Module Craft is a project designed to standardize and enhance the development of software modules through a robust quality control system. By leveraging a Model Control Protocol (MCP), Module Craft provides a set of tools and workflows to ensure that modules are well-planned, secure, performant, and well-documented, regardless of the development environment.
Related MCP server: code-graph-mcp
Core Concepts
The heart of Module Craft is an MCP that exposes a series of atomic "actions" that an AI agent can call. These actions cover the entire lifecycle of a module, from initial planning to final evaluation. This approach allows for the creation of standardized, automated, and intelligent workflows for module development.
Setup
Install dependencies:
npm installBuild the project:
npm run buildRun in development mode:
npm run devUsage
This MCP server can be integrated with AI assistants that support the Model Context Protocol. The server provides the following tools:
Available Tools
plan_module- Generate detailed development plans from module descriptionsanalyze_code_quality- Analyze code for consistency, congruence, and static issuescheck_security_vulnerabilities- Scan for security vulnerabilities (planned)evaluate_performance- Analyze performance bottlenecks (planned)generate_documentation- Auto-generate code documentation (planned)check_accessibility- Check UI accessibility compliance (planned)validate_requirements- Validate implementation against requirements (planned)track_progress- Track development progress (planned)
Integration
To use this MCP server with an AI assistant, add it to your MCP configuration:
{
"mcpServers": {
"module-craft": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/module-craft"
}
}
}Development
npm run dev- Run with hot reloadnpm run build- Build TypeScript to JavaScriptnpm run watch- Watch mode for development
Project Structure
src/
├── index.ts # Main MCP server
├── types.ts # TypeScript type definitions
└── actions/
├── planModule.ts # Module planning implementation
└── analyzeCodeQuality.ts # Code quality analysisCurrently Implemented
✅ plan_module - Fully functional module planning ✅ analyze_code_quality - Code consistency and static analysis
Planned Features
🚧 Security vulnerability scanning 🚧 Performance analysis 🚧 Documentation generation 🚧 Accessibility checking 🚧 Requirements validation 🚧 Progress tracking
MCP Actions
The following actions are available through the Module Craft MCP.
1. Module Planning & Definition
plan_module
Description: Takes a high-level module description and generates a detailed development plan in Markdown format.
Outputs:
Functional and non-functional requirements.
Use cases.
Proposed file and directory structure.
Potential external dependencies.
2. Quality Assurance
analyze_code_quality
Description: Analyzes module code to ensure it adheres to best practices.
Focus Areas:
Code Consistency: Naming conventions, formatting.
Congruence: Ensures code aligns with the initial plan.
Static Analysis: Uses linters to detect common errors and dead code.
check_security_vulnerabilities
Description: A dedicated security scanner.
Capabilities:
Scans for common vulnerability patterns (e.g., SQL injection, XSS).
Checks project dependencies for known vulnerabilities.
evaluate_performance
Description: Focuses on performance analysis.
Capabilities:
Identifies code bottlenecks.
Analyzes algorithmic complexity.
Recommends optimizations (e.g., efficient data structures, caching).
3. Documentation
generate_documentation
Description: Automatically generates and maintains code documentation.
Capabilities:
Summaries: Creates overviews of a module's purpose and functionality.
Function/Class Docs: Extracts docstrings to detail inputs, outputs, and purpose.
Usage Examples: Generates code snippets demonstrating module usage.
Gap Identification: Detects code sections lacking documentation.
4. Accessibility
check_accessibility
Description: Ensures that UI-related modules are accessible to all users, including those with disabilities, by checking against standards like WCAG.
Focus Areas:
Semantic Validation: Correct use of HTML tags.
ARIA Attributes: Proper implementation of ARIA for assistive technologies.
Color Contrast: Ensures text is legible.
Form Accessibility: Checks for proper labeling and clear instructions.
Keyboard Navigation: Confirms all interactive elements are keyboard-accessible.
5. Module Evaluation & Progress Tracking
validate_requirements
Description: Compares the implemented module against its initial requirements to ensure all functional and non-functional specifications have been met.
Capabilities:
Parses the
plan_moduleoutput.Maps implemented features back to the requirements document.
Identifies any deviations or unimplemented requirements.
track_progress
Description: Provides an overview of the module's development status.
Capabilities:
Analyzes commit history and code changes to measure progress.
Compares the current state against the proposed file structure and milestones.
Generates a progress report, highlighting completed, in-progress, and pending tasks.
Available Tools
10 toolsanalyze_code_qualityC
Analyzes module code to ensure it adheres to best practices
Inputs: projectPath (required).
check_accessibilityC
Ensures UI-related modules are accessible according to WCAG standards
Inputs: projectPath (required).
check_security_vulnerabilitiesB
Scans code for security vulnerabilities and dependency issues
Inputs: projectPath (required).
define_module_requirementsB
Generates comprehensive requirements documentation for a new module based on business context and objectives
Inputs: moduleName (required), businessContext (required), moduleDescription (required), stakeholders.
evaluate_module_progressB
Evaluates the development progress of a specific module by analyzing its source code against main objectives
Inputs: moduleName (required), projectPath (required), moduleObjectives (required).
evaluate_performanceB
Analyzes code performance and identifies bottlenecks
Inputs: projectPath (required).
generate_documentationC
Automatically generates and maintains code documentation
Inputs: projectPath (required), format.
plan_moduleA
Takes a high-level module description and generates a detailed development plan in Markdown format
Inputs: description (required).
track_progressC
Provides an overview of module development status
Inputs: projectPath (required).
validate_requirementsB
Compares implemented module against initial requirements
Inputs: projectPath (required), requirementsPath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes, but track_progress and evaluate_module_progress overlap significantly in tracking module status, and plan_module vs define_module_requirements could be confused for similar planning activities. Overall, descriptions reduce most ambiguity, but these pairs create potential misselection.
All tool names follow a consistent verb_noun snake_case pattern, such as plan_module, analyze_code_quality, and generate_documentation. The naming convention is uniform and predictable across the entire set.
The server has 10 tools, which is well-scoped for a module development workflow covering planning, requirements, analysis, documentation, validation, and progress tracking. Each tool contributes a distinct phase of the lifecycle without unnecessary bloat.
The toolset covers major module development phases well, from requirements and planning through quality, security, performance, accessibility, documentation, and progress validation. Minor gaps exist, such as no explicit tool for listing or selecting modules, and the overlap between progress-related tools leaves some lifecycle aspects somewhat redundant.
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
The MCP server that vets MCP servers: identity, risk grade and per-tool risk before you install.
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for the Inistate platform: module discovery, entry management, and activity submission.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enforces development discipline and workflow best practices, guiding users through a structured process of coding, testing, documenting, committing, and releasing.28 npm1MIT
- 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.-
- AlicenseCqualityFmaintenanceMCP server for project management automation, providing tools for project health, documentation, task management, security scanning, and CI/CD validation.271MIT