enhanced-thinking-mcp
Version:
Enhanced sequential thinking MCP server for advanced reasoning and problem-solving with Cursor AI
223 lines (171 loc) ⢠7.06 kB
Markdown
# š§ Enhanced Thinking MCP Server
**Advanced sequential thinking and problem-solving for Cursor AI and other MCP-compatible tools.**
[](https://www.npmjs.com/package/enhanced-thinking-mcp)
[](LICENSE)
[](tsconfig.json)
## ⨠Features
Transform your AI-assisted problem-solving with:
- šÆ **Real-time Quality Scoring** - Advanced algorithm evaluates thought depth and structure
- š **Visual Progress Tracking** - See completion status with beautiful progress bars
- š§ **Intelligence Analytics** - Session insights, confidence tracking, and performance metrics
- šæ **Branch Management** - Explore alternative reasoning paths seamlessly
- š **Auto-Summarization** - Automatic extraction of key insights from thinking sessions
- š **Revision System** - Refine and improve thoughts as understanding deepens
- šØ **Enhanced Visualization** - Color-coded thoughts with emojis and rich formatting
## š Quick Start
### For Cursor AI Users
1. **Install** the MCP server:
```bash
npm install -g enhanced-thinking-mcp
```
2. **Configure** in Cursor Settings (`Cmd/Ctrl + ,` ā MCP):
```json
{
"mcpServers": {
"enhanced-thinking": {
"command": "npx",
"args": ["-y", "enhanced-thinking-mcp"]
}
}
}
```
3. **Use** in Cursor by asking the AI:
> "Use enhanced thinking to help me solve this complex problem..."
### Alternative Configurations
**For NPX (no installation):**
```json
{
"mcpServers": {
"enhanced-thinking": {
"command": "npx",
"args": ["-y", "enhanced-thinking-mcp"]
}
}
}
```
**For local development:**
```json
{
"mcpServers": {
"enhanced-thinking": {
"command": "node",
"args": ["/path/to/enhanced-thinking-mcp/dist/index.js"]
}
}
}
```
## šÆ Use Cases
Perfect for:
- **š§© Complex Problem Decomposition** - Break down hard problems into manageable steps
- **š Strategic Planning** - Systematic approach to business and technical planning
- **š Research & Investigation** - Structured exploration of complex topics
- **š” Creative Brainstorming** - Organized creative thinking with quality tracking
- **āļø Decision Making** - Systematic evaluation of options and alternatives
- **š Learning & Analysis** - Structured approach to understanding new concepts
## š Available Tools
### `enhancedthinking`
Main thinking tool with advanced features:
**Parameters:**
- `thought` (required) - Your current thinking step
- `nextThoughtNeeded` (required) - Whether more thinking is needed
- `thoughtNumber` (required) - Current step number
- `totalThoughts` (required) - Estimated total steps
- `confidence` (optional) - Your certainty level (0-100%)
- `tags` (optional) - Keywords for categorization
- `isRevision` (optional) - Mark as revision of previous thought
- `branchFromThought` (optional) - Create alternative reasoning branch
### `reset_thinking_session`
Clear current session and start fresh.
### `get_thinking_analytics`
Get detailed session analytics and insights.
## š Quality Scoring Algorithm
Thoughts are automatically scored (0-100) based on:
- **Structure & Length** (20 pts) - Optimal word count and formatting
- **Exploratory Thinking** (15 pts) - Questions and curiosity indicators
- **Analysis Keywords** (25 pts) - Use of analytical language
- **Logical Structure** (20 pts) - Sequential reasoning indicators
- **Solution Orientation** (20 pts) - Focus on conclusions and solutions
## šØ Example Session
```
š Thought 1/5 Q:85/100 C:70%
Progress: āāāāāāāāāā 20.0%
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
I need to analyze this complex market
entry strategy. First, let me examine
the competitive landscape...
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Revision 2/5 (revising thought 1) Q:92/100 C:85%
Progress: āāāāāāāāāā 40.0%
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Actually, let me start with market size
analysis first, then move to competition.
This approach will provide better foundation...
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š§ THINKING SESSION SUMMARY
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Analytics:
⢠Total Thoughts: 5
⢠Average Quality: 88.4/100
⢠Branches Created: 1
⢠Session Duration: 3.2 min
⢠Revisions Made: 1
š” Key Insights:
⢠High-quality insight #1: "Market size analysis provides foundation..."
⢠2 solution-oriented thoughts identified
⢠Explored 1 alternative reasoning paths
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
```
## š§ Development
### Building from Source
```bash
git clone <repository-url>
cd enhanced-thinking-mcp
npm install
npm run build
npm run start
```
### Testing with Cursor
1. Build the project: `npm run build`
2. Add local path to Cursor MCP config
3. Restart Cursor
4. Test with AI assistant
## āļø Configuration
### Environment Variables
- `DISABLE_THOUGHT_LOGGING=true` - Disable console output (useful for production)
### Advanced Usage
**Branch Management:**
```javascript
// Create a branch to explore alternatives
{
thought: "Let me explore a different approach...",
branchFromThought: 3,
branchId: "alternative-solution",
// ... other params
}
```
**Confidence Tracking:**
```javascript
// Track your certainty as you think
{
thought: "I'm becoming more confident in this solution...",
confidence: 85,
// ... other params
}
```
## š Analytics Features
The enhanced thinking server tracks:
- **Quality Progression** - How thought quality improves over time
- **Confidence Evolution** - Certainty levels throughout the session
- **Branch Analysis** - Alternative paths explored
- **Session Metrics** - Duration, revision count, total thoughts
- **Key Insight Extraction** - Automatic identification of important thoughts
## š¤ Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## š License
MIT License - see [LICENSE](LICENSE) for details.
## šāāļø Support
- š **Issues**: [GitHub Issues](https://github.com/enhanced-thinking/mcp-server/issues)
- š¬ **Discussions**: [GitHub Discussions](https://github.com/enhanced-thinking/mcp-server/discussions)
- š§ **Email**: support@enhanced-thinking.dev
---
**Made with š§ for better thinking**