dev-context

module
v0.0.0-...-812ebae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2025 License: MIT

README ΒΆ

Frontend News MCP - Real-time Query System

GitHub Issues Go Version MCP SDK

A production-ready MCP (Model Context Protocol) server providing real-time frontend development news aggregation and analysis.

Built using Claude Code PM system for spec-driven development with complete GitHub Issues traceability from requirements to production code.

MCP Server Architecture

πŸš€ Features

Core MCP Tools
  • πŸ“° Weekly Frontend News - Curated weekly reports of frontend development news from multiple sources
  • ⭐ Trending Repositories - GitHub trending analysis for frontend technologies and frameworks
  • πŸ” Technical Topic Search - Intelligent search and analysis of specific frontend technologies
Enterprise Architecture
  • πŸ—οΈ Multi-layer Caching - High-performance Redis-backed caching with TTL and concurrency safety
  • πŸ“Š Concurrent Data Collection - Multi-source parallel data gathering (RSS/API/HTML)
  • πŸ”„ Smart Data Processing - Intelligent scoring, deduplication, and content formatting
  • 🐳 Production Deployment - Docker containerization with CI/CD and monitoring

πŸ“‹ Table of Contents

🏁 Quick Start

# Clone the repository
git clone https://github.com/ZephyrDeng/dev-context.git
cd dev-context

# Start with Docker Compose
docker-compose up -d

# Check status
docker-compose ps
Local Development
# Navigate to the MCP server code
cd /Users/zephyr/mcp-servers/epic-mvp

# Install dependencies
go mod tidy

# Run locally
make run-dev

# Or build and run
make build
./bin/github.com/ZephyrDeng/dev-context

πŸ›  MCP Tools

1. Weekly Frontend News (weekly_news)

Aggregates and curates frontend development news from multiple sources.

Parameters:

  • startDate - Start date for news collection (optional, defaults to 7 days ago)
  • endDate - End date (optional, defaults to today)
  • category - Filter by technology (react, vue, angular, etc.)
  • minQuality - Minimum quality score (0.0-1.0, default 0.5)
  • maxResults - Maximum results (default 50, max 200)

Example Usage:

{
  "name": "weekly_news",
  "arguments": {
    "category": "react",
    "minQuality": 0.7,
    "maxResults": 30
  }
}

Analyzes GitHub trending repositories for frontend technologies.

Parameters:

  • language - Programming language filter (javascript, typescript, etc.)
  • timeRange - Time range (daily, weekly, monthly)
  • minStars - Minimum star count (default 10)
  • maxResults - Maximum results (default 30, max 100)

Example Usage:

{
  "name": "trending_repos",
  "arguments": {
    "language": "typescript",
    "timeRange": "weekly",
    "minStars": 100
  }
}

Intelligent search and analysis of specific frontend technologies.

Parameters:

  • topic - Technology or topic to search
  • sources - Comma-separated list of sources
  • depth - Search depth (shallow, moderate, deep)
  • maxResults - Maximum results (default 20, max 100)

Example Usage:

{
  "name": "topic_search",
  "arguments": {
    "topic": "Next.js 15",
    "depth": "moderate",
    "maxResults": 25
  }
}

πŸ— Architecture

System Components
Frontend News MCP Server
β”œβ”€β”€ 🌐 MCP Protocol Layer (Go SDK v0.4.0)
β”œβ”€β”€ πŸ› οΈ Core Tools
β”‚   β”œβ”€β”€ weekly_news      # Frontend news aggregation
β”‚   β”œβ”€β”€ trending_repos   # GitHub trending analysis
β”‚   └── topic_search     # Technical topic search
β”œβ”€β”€ πŸ“Š Data Processing
β”‚   β”œβ”€β”€ Multi-source collection (RSS/API/HTML)
β”‚   β”œβ”€β”€ Content processing & scoring
β”‚   └── Format conversion (JSON/Markdown/Text)
β”œβ”€β”€ πŸ’Ύ Caching Layer
β”‚   β”œβ”€β”€ Redis backend
β”‚   β”œβ”€β”€ TTL management
β”‚   └── Concurrency safety
└── πŸš€ Deployment
    β”œβ”€β”€ Docker containers
    β”œβ”€β”€ CI/CD pipeline
    └── Monitoring & logs
Data Sources
  • GitHub API - Repository trends and statistics
  • Dev.to API - Developer community articles
  • RSS Feeds - CSS-Tricks, Hacker News, etc.
  • Web Scraping - Additional frontend resources

πŸ’» Development

Prerequisites
  • Go 1.21+
  • Docker & Docker Compose
  • GitHub CLI (for project management)
Build Commands
# Development build
make build-dev

# Production build
make build-prod

# Cross-platform builds
make build-all

# Run tests
make test

# Test coverage
make test-coverage

# Docker build
make docker-build
Testing

The project includes comprehensive testing with >80% coverage:

# Run all tests
make test

# Integration tests
make test-integration

# MCP protocol tests
make test-mcp

# View coverage report
open coverage/coverage.html

πŸš€ Deployment

Production Deployment
# Build production image
make docker-build

# Deploy with monitoring
docker-compose -f docker-compose.prod.yml up -d

# Check health
curl http://localhost:8080/health
Environment Configuration

Key environment variables:

# Server Configuration
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8080

# Cache Configuration  
REDIS_URL=redis://localhost:6379

# API Keys (store securely)
GITHUB_TOKEN=your_github_token
DEV_TO_API_KEY=your_dev_to_key

See DEPLOYMENT.md for detailed deployment instructions.

πŸ“š API Documentation

πŸ“‹ Project Management

This project was built using the Claude Code PM system for spec-driven development:

Development Workflow
  • βœ… PRD Creation - Comprehensive product requirements
  • βœ… Epic Planning - Technical architecture and approach
  • βœ… Task Decomposition - Granular implementation tasks
  • βœ… GitHub Integration - Full issue tracking and traceability
  • βœ… Parallel Execution - Multiple concurrent development streams
Project Status
  • πŸŽ‰ Epic MVP Completed - 100% (8/8 tasks)
  • βœ… MCP SDK Integration
  • βœ… Multi-source Data Collection
  • βœ… Cache Management System
  • βœ… Core MCP Tools Implementation
  • βœ… Data Processing & Formatting
  • βœ… Complete Test Suite (>80% coverage)
  • βœ… Production Deployment & Documentation
Project Management Commands
# View project status
/pm:status

# Sync with GitHub Issues
/pm:sync

# View all completed work
/pm:epic-show mvp

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: make test
  5. Commit changes: git commit -m 'Add amazing feature'
  6. Push to branch: git push origin feature/amazing-feature
  7. Open a Pull Request

πŸ“Š Project Metrics

  • Lines of Code: 15,000+
  • Test Coverage: >80%
  • Build Time: <2 minutes
  • Docker Image: <50MB (Alpine-based)
  • Startup Time: <5 seconds

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

🎯 Roadmap

  • Additional data sources integration
  • Advanced filtering and personalization
  • GraphQL API support
  • WebSocket real-time updates
  • Mobile-optimized responses

Built with Claude Code using spec-driven development and GitHub Issues project management.

⭐ Star History

If this project helps you, please consider giving it a star!

Star History Chart

Directories ΒΆ

Path Synopsis
cmd
server command
Package main provides the entry point for the github.com/ZephyrDeng/dev-context server.
Package main provides the entry point for the github.com/ZephyrDeng/dev-context server.
internal
mcp
Package mcp provides the core MCP server implementation.
Package mcp provides the core MCP server implementation.
processor
Package processor provides unified data processing capabilities
Package processor provides unified data processing capabilities

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL