
forge_mcp
blank canvas set up with router and a structure
Repository Info
About This Server
blank canvas set up with router and a structure
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Forge MCP - AI-Augmented Mining Operations Platform
An MCP (Model Context Protocol) server that provides Claude with persistent memory, context management, and autonomous development capabilities. Built for mining professionals to achieve superhuman performance through AI augmentation.
🚀 Current Status (May 28, 2025)
✅ Completed Components
- Command Centre - Core file operations and system control
- Memory System - PostgreSQL-based persistent memory with smart retrieval
- Context Management - Activity-based context loading with token budgeting
- Development Pipeline - Tool tracking and workflow management
🏗️ Architecture
forge_mcp/
├── mcp_server.py # Main MCP server
├── tools/ # MCP tool implementations
│ ├── command_centre.py # File operations
│ └── memory_tools.py # Memory operations
├── memory_system/ # Persistent memory
│ ├── memory_manager.py # Core memory logic
│ ├── context_manager.py # Smart context loading
│ └── schema.sql # PostgreSQL schema
├── pipeline/ # Development pipeline
│ ├── pipeline_status.yaml # Tool tracking
│ └── view_pipeline.py # Pipeline viewer
└── router/ # Request routing (future)
🧠 Memory System
Features
- PostgreSQL-based persistent storage
- Hierarchical tagging system
- Smart deduplication
- Context-aware retrieval
- Automatic compression for old memories
Memory Types
knowledge- Facts and informationpattern- User preferences and behaviorsdecision- Important choices madesolution- Working solutions to problemserror- Issues encounteredconversation- Discussion summaries
Usage
{
"action": "commit_memory",
"parameters": {
"content": "Important information",
"memory_type": "knowledge",
"importance": 8,
"tags": ["project", "milestone"]
}
}
🎯 Context Management
Activity-Based Loading
Different activities load different memory contexts:
- brainstorm - Light context (5 memories, patterns/decisions)
- coding - Technical context (15 memories, solutions/errors)
- contract_analysis - Heavy context (20 memories, domain-specific)
Context Budget
- 80,000 tokens working memory
- 20,000 tokens reserved buffer
- Automatic compression when 70% full
📋 Development Pipeline
Tool Status Workflow
pending- Initial ideabrainstorming- Under discussionideation- Exploring optionsready_for_approval- Needs sign-offapproved_for_dev- Ready to buildin_development- Being builttesting- Quality checkcomplete- Integrated
View Pipeline
cd pipeline/
python view_pipeline.py next # Next 5 tools to work on
python view_pipeline.py priority # By priority
python view_pipeline.py contract # Contract tools only
🛠️ Available Tools
Core Tools (Complete)
- File operations (read, write, create, delete)
- Directory navigation and search
- Memory storage and retrieval
- Context management
- Pattern recording
In Pipeline
- Contract Analyzer (immediate priority)
- Priority Intelligence Engine
- Cost Variance Detective
- Vendor Performance Tracker
- Communication Amplifier
🔧 Installation
- PostgreSQL Setup
brew install postgresql
brew services start postgresql
psql postgres -c "CREATE USER forge WITH PASSWORD 'forge' CREATEDB;"
- Python Dependencies
pip install -r requirements.txt
- Initialize Database
cd memory_system/
python init_db.py
- Configure Claude Desktop
{
"mcpServers": {
"forge": {
"command": "/bin/bash",
"args": ["/path/to/forge_mcp/start_mcp.sh"]
}
}
}
🎮 Usage
Memory Operations
- Store: Use
commit_memorytool - Retrieve: Use
retrieve_memoriestool - Check status: Use
get_context_summarytool
Pipeline Management
- View tools: Check
pipeline/pipeline_status.yaml - Update status: Edit YAML and track progress
- No coding until status is
approved_for_dev!
🚦 Development Philosophy
- Think First, Code Second - Full brainstorming before implementation
- Modular Architecture - Small tools that combine for big impact
- Value-Easy Methodology - High value, easy implementation first
- Stealth Mode - Results speak louder than technology
📚 Documentation
For Project Owners
- USER_GUIDE.md - Practical guide for daily operations
- TOOL_IDEATION_PROMPT.md - Create consistent tool ideas
- PROJECT_MANAGEMENT_SUMMARY.md - Quick reference for management
For Developers
- ARCHITECTURE.md - System design and components
- IMPLEMENTATION_ROADMAP.md - Development phases and sprints
- REFACTORING_PLAN.md - Code improvement strategy
For Claude Desktop
- CLAUDE_KNOWLEDGE/ - Complete project briefing
- Load these into Claude Desktop's project knowledge
- Includes setup instructions and modular documentation
Pipeline & Tracking
- pipeline/ - Development pipeline and tools
- Enhanced pipeline manager with automation
- Visual dashboard for progress tracking
- Sprint planning and velocity metrics
📝 Next Steps
- Load knowledge base into Claude Desktop (see CLAUDE_KNOWLEDGE/README.md)
- Review USER_GUIDE.md for daily workflows
- Use TOOL_IDEATION_PROMPT.md for new tool ideas
- Monitor progress with enhanced pipeline dashboard
Project Vision: Transform mining operations through AI augmentation, starting with contract management excellence and scaling to organizational leadership.
Version: 0.3.0 | Last Updated: December 2024 | Status: Active Development
Quick Start
Clone the repository
git clone https://github.com/willd81/forge_mcpInstall dependencies
cd forge_mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.