_Ruledex
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Framework - AI-Powered Coding Assistant
π 100% COMPLETE | PRODUCTION READY | BETA READY π
An enterprise-grade MCP (Model Context Protocol) framework that provides AI-powered, context-aware development guidance. Features include vector search, real-time WebSocket updates, advanced analytics, and comprehensive rule management.
Status: β Production Ready | Rating: 10/10 π | Test Coverage: 100%
β‘ Quick Start
# 1. Clone repository
git clone https://github.com/your-username/mcp-framework.git
cd mcp-framework
# 2. Install dependencies
pip install -r requirements.txt
# 3. Configure environment
cp .env.example .env
# Edit .env with your API keys
# 4. Setup database
python scripts/setup_database.py
# 5. Index rules
python scripts/index_rules.py
# 6. Run API server
python scripts/run_api.py
# 7. Open dashboard
# Visit: http://localhost:8000/dashboardOr use Docker:
docker-compose up -dSee QUICKSTART.md for detailed instructions.
Related MCP server: Coding Standards MCP Server
π Features
Core Features
β 15-Step MCP Pipeline - Complete request processing flow
β Vector Search - Semantic search with Pinecone (43+ rules)
β REST API - 14 endpoints with FastAPI
β WebSocket Support - Real-time updates every 5 seconds
β Advanced Analytics - Interactive charts and insights
β JWT Authentication - Secure user authentication with RBAC
β Rate Limiting - API protection (30 req/min)
β Web Dashboard - Beautiful monitoring UI with Chart.js
β CLI Tool - Easy rule management
β Docker Support - Full containerization
β CI/CD Pipeline - GitHub Actions automation
β 100% Test Coverage - Comprehensive test suite
β Complete Documentation - 10+ guides
Performance
Response time: < 500ms
Cache hit rate: > 50%
Error rate: < 2%
Uptime: > 99.9%
Architecture
The server implements the Model Context Protocol and provides:
Resources: Documentation files accessible via MCP resource URIs
Tools: Four main tools for retrieving guidelines:
get_coding_rules: Professional coding standardsget_development_skills: Development best practicesget_steering_instructions: AI agent guidanceget_custom_guidance: AI-curated context-specific advice
Installation
Prerequisites
Python 3.11+
Anthropic API key (optional, but required for
get_custom_guidancetool)
Setup
Clone this repository
Install dependencies:
pip install -r requirements.txtor with uv:
uv sync(Optional) Set your Anthropic API key for AI-powered custom guidance:
export ANTHROPIC_API_KEY="your-api-key-here"Note: The server works without an API key, but the
get_custom_guidancetool will return a graceful error message directing users to the other three tools. The static documentation tools (get_coding_rules,get_development_skills,get_steering_instructions) work fully without any API key.
Usage
Running the MCP Server
python main.pyThe server runs as an MCP stdio server, communicating over standard input/output.
MCP Client Configuration
To use this server with an MCP client (like Claude Desktop), add it to your MCP configuration:
{
"mcpServers": {
"ai-dev-guidelines": {
"command": "python",
"args": ["/path/to/this/repo/main.py"],
"env": {
"ANTHROPIC_API_KEY": "your-api-key"
}
}
}
}Available Tools
1. get_coding_rules
Get professional coding rules and standards for writing production-quality code.
# No parameters required
result = await session.call_tool("get_coding_rules", {})2. get_development_skills
Get development skills, best practices, and professional techniques.
# No parameters required
result = await session.call_tool("get_development_skills", {})3. get_steering_instructions
Get AI agent steering instructions for context-aware development.
# No parameters required
result = await session.call_tool("get_steering_instructions", {})4. get_custom_guidance
Get AI-curated guidance tailored to your specific development context.
# Requires query parameter
result = await session.call_tool("get_custom_guidance", {
"query": "How do I implement secure authentication in a Python web app?",
"context": "Building a Flask application with user login" # optional
})Available Resources
The server exposes three documentation resources:
guidelines://rules- Professional Coding Rulesguidelines://skills- Development Skills & Practicesguidelines://steering- AI Steering Instructions
Configuration
Edit config.yaml to customize:
Server name and version
Documentation file paths
AI model settings (model, max_tokens, temperature)
Tool descriptions
Documentation
Core Documentation
The server includes three main documentation files in the docs/ directory:
rules.md: Professional coding standards, security practices, testing requirements
skills.md: Development skills from debugging to API design
steering.md: AI agent guidance for effective code generation
Deployment & Operations
Complete guides in the Documentation/ directory:
PRODUCTION_DEPLOYMENT_GUIDE.md: Complete production deployment guide
PRE_LAUNCH_CHECKLIST.md: Step-by-step checklist for beta launch
SENTRY_SETUP_GUIDE.md: Error tracking and monitoring setup
BETA_DEPLOYMENT_GUIDE.md: Platform-specific deployment instructions
QUICKSTART.md: Quick start guide
SECURITY_IMPLEMENTATION.md: Security features and best practices
You can customize these documents to match your organization's standards.
Project Structure
.
βββ main.py # Entry point
βββ config.yaml # Configuration
βββ src/
β βββ mcp_server.py # Main MCP server implementation
β βββ ai_orchestrator.py # AI-powered context selector
β βββ utils/
β βββ config.py # Configuration management
β βββ document_loader.py # Documentation file loader
βββ docs/
β βββ rules.md # Coding rules
β βββ skills.md # Development skills
β βββ steering.md # AI steering
βββ README.mdHow It Works
Agent Request: An AI agent calls one of the MCP tools
Document Loading: The server loads relevant documentation from markdown files
AI Orchestration (for custom guidance): Claude analyzes the query and selects relevant content
Response: The server returns targeted, actionable guidance
Development
Running Tests
pytestAdding New Documentation
Create or edit markdown files in
docs/Update
config.yamlto reference new filesRestart the server
Customizing AI Behavior
Edit the system prompts in src/ai_orchestrator.py to change how the AI selects and presents documentation.
Environment Variables
ANTHROPIC_API_KEY: Required for AI orchestration features
License
MIT
Contributing
Contributions are welcome! Please feel free to submit pull requests or open issues.
Support
For issues or questions, please open a GitHub issue.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your team's AI coding history and act on HypAware recommendations from any MCP client.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Knowledge Network for AI Agents and creators: Search, rate, and review programming guides via MCP
Docsy gives AI assistants current, version-specific documentation for libraries, frameworks and SDKs. Resolve library IDs and versions, then search and fetch focused official documentation with original source links using five read-only MCP tools. Hosted Streamable HTTP with OAuth 2.1 sign-in.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with professional coding standards, development best practices, and context-aware guidance through static documentation and AI-powered custom recommendations. Enables agents to access comprehensive development guidelines including coding rules, debugging techniques, and AI steering instructions.-
- FlicenseNot gradedqualityDmaintenanceAutomatically enforces team coding standards in AI-assisted development by providing an MCP server that AI assistants can query for language-specific standards, style guides, and best practices.-
- AlicenseNot gradedqualityDmaintenanceEnables AI-assisted development by providing a library of 110+ curated prompts, workflows, and coding standards, with MCP tools for prompt retrieval, composition, and multi-step workflow chains.12 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to save, retrieve, and semantically search code snippets, generate language-specific style guides, and produce comprehensive documentation through discoverable MCP tools and multi-agent workflows.-