niyam-context
v1.0.0
Published
Industrial-grade MCP server for strict context and UI rule enforcement.
Readme
niyam-context MCP Server
An industrial-grade Model Context Protocol (MCP) server for strict enforcement of UI consistency and architectural patterns.
Overview
niyam-context enables AI assistants to deeply analyze and understand your project's DNA. Instead of giving the model vague instructions, you use MCP tools to inject high-density, formatted system prompts directly into the model's context, ensuring strict adherence to your specific coding standards and architecture.
Disclaimer
IMPORTANT: These tools are for analysis and understanding. AI models can occasionally hallucinate or misinterpret instructions. Always verify outputs manually.
Features
- 25 Specialized Analysis Tools: Covering architecture, data flow, security, and lifecycle.
- Strict Execution Rules: Automated prompts that enforce "Master Prompt" methodology.
- Dynamic Tool Registration: Modular architecture that loads templates from JSON/Markdown.
- Deep Context Retention: Designed for high-density AI interactions.
Installation
- Clone the repository.
- Install dependencies:
npm install - Build the project:
npm run build
Usage
Connecting to AI Clients (Cursor, Claude Desktop, etc.)
Add the following to your MCP configuration:
"niyam-context": {
"command": "npx",
"args": ["-y", "niyam-context"]
}Specialized Tool Catalog
| Tool | Focus | | :--- | :--- | | codebase_deep_analysis | Exhaustive architecture and workflow decoding. | | repository_structure_mapper | Complete folder hierarchy and responsibility mapping. | | data_flow_analyzer | Tracer for end-to-end data lifecycles. | | dependency_graph_builder | Relationship graph for internal and external modules. | | api_contract_extractor | Registry of endpoints and data schemas. | | database_schema_analyzer | ER pattern and constraint extraction. | | frontend_component_indexer | UI component inventory and usage patterns. | | backend_service_mapper | Service layer and logic boundary visualization. | | state_management_analyzer | Store structure and reactivity audit. | | env_config_detector | Runtime configuration and environment detection. | | coding_convention_detector | Naming and standard enforcement. | | architecture_pattern_identifier | MVC, Clean Architecture, or Hexagonal detection. | | reusable_snippet_finder | Logic archeology to find centralization opportunities. | | error_log_analyzer | Forensic log and stack trace correlation. | | test_coverage_analyzer | Mapping logic to verification deserts. | | performance_bottleneck_detector | Algorithmic and resource efficiency audit. | | security_risk_scanner | Vulnerability and secret exposure scanning. | | refactoring_suggestion_engine | Complexity and debt reduction roadmap. | | documentation_generator | Automatic intent-based guide generation. | | feature_impact_analyzer | Blast radius prediction for code changes. | | pr_diff_analyzer | Semantic diff analysis and technical rationale. | | change_risk_predictor | Stability and regression risk factor analysis. | | migration_planner | Roadmap for platform or library upgrades. | | ui_component_usage_tracker | Prop drilling and interaction ergonomics. | | dead_code_detector | Systematic technical debt cleanup. |
License
Distributed under the MIT License. See LICENSE for more information.
Built by Dhvanil Pansuriya for High-Speed Developer Workflows.
