Overview
Social Monitor demonstrates:- Multi-tab Dashboard - Three modes: Discovery, My Posts, Mentions
- HackerNews Integration - Real-time post and comment tracking
- AI Response Generation - OpenAI-powered reply drafting
- Widget State Management - Persistent tab navigation
- Auto-refresh - Real-time mention updates
Architecture
Implementation
Create unified dashboard service
Register a single tool that opens the multi-tab dashboard:
mcp/dashboard/index.ts
Build HackerNews discovery service
Find MCP-related discussions for organic outreach:
mcp/discovery/index.ts
Build React dashboard with tabs
Create the unified dashboard UI:
mcp/dashboard/SocialMonitorDashboard.tsx
Key Features
Multi-Tab Architecture
- Persistent tab state with
useWidgetState - Dynamic tool switching per tab
- Auto-refresh on tab change
- Unified data structure
Real-Time Monitoring
- HackerNews Algolia API
- Firebase real-time API
- Auto-refresh intervals
- Manual refresh controls
AI Response Generation
- Context-aware prompts
- Adjustable tone (professional/friendly/witty)
- Platform-specific style (HN vs Reddit)
- Copy-to-clipboard integration
Engagement Workflow
- Inline response editor
- One-click open & copy
- Status tracking (pending/responded)
- Parent context display
Environment Configuration
.env
Usage
Switch between tabs
- MCP Discovery: Find organic MCP discussions
- My Posts: Track replies to your content
- LeanMCP Mentions: Monitor product mentions
Advanced Patterns
Widget State Persistence
Conditional AI Prompts
Copy-to-Clipboard with Navigation
Next Steps
GitHub Roast
OAuth-powered GitHub profile analysis
UI Components
Deep dive into @leanmcp/ui components
Multi-Platform APIs
Integrate HackerNews, Reddit, Twitter
AI Prompting
Craft effective AI response generators