conorluddy

Context-Pods

Community conorluddy
Updated

๐Ÿซ› Local-first Model Context Protocol management suite. Provides an MCP to create and manage other local MCPs. Useful for local Tooling etc.

Context-Pods

GitHub StarsLicense: MITTurboRepoMeta-MCP ServerAsk DeepWikicodecov

The MCP development framework that creates MCP servers

Context-Pods is a comprehensive development framework for creating, testing, and managing Model Context Protocol (MCP) servers. It provides a Meta-MCP Server that can generate other MCP servers through natural language descriptions or by wrapping existing scripts.

๐Ÿš€ Quick Start

# Install and run Context-Pods CLI
npx @context-pods/create

# Or install globally
npm install -g @context-pods/cli
context-pods generate

โœจ Features

๐ŸŽฏ Multiple Language Support

Create MCP servers in your preferred language:

  • TypeScript - Full type safety with TurboRepo optimization
  • Python - Async support with built-in data science tools
  • Rust - High-performance servers with Tokio async runtime
  • Shell - Wrap existing CLI tools and scripts as MCP servers
  • JavaScript - Simple, no-build-step servers (coming soon)

๐Ÿค– Meta-MCP Server

The Meta-MCP Server exposes Context-Pods functionality through the MCP protocol itself:

{
  "tools": [
    "create-mcp", // Generate servers from descriptions
    "wrap-script", // Convert scripts to MCP servers
    "list-mcps", // Manage existing servers
    "validate-mcp", // Validate MCP compliance
    "analyze-codebase" // AI-powered MCP opportunity detection
  ]
}

๐Ÿ› ๏ธ Advanced Features

  • AI-Powered Analysis - Automatically identify MCP opportunities in existing codebases
  • TurboRepo Integration - Optimized builds and caching
  • Hot Reloading - Live development with automatic restarts
  • Comprehensive Testing - Built-in MCP protocol compliance tests with 95%+ coverage
  • Schema Validation - Zod-based runtime validation
  • Multi-Transport Support - stdio, HTTP, and WebSocket
  • Production Ready - Error handling, logging, and monitoring

๐Ÿ“ฆ Templates

Basic Templates

basic (TypeScript)

Minimal TypeScript MCP server with essential features:

context-pods generate basic --name my-server
python-basic

Self-contained Python server with async support:

context-pods generate python-basic --name my_python_server
rust-basic

High-performance Rust server with Tokio:

context-pods generate rust-basic --name my_rust_server
shell-wrapper

Expose shell scripts and CLI tools via MCP:

context-pods generate shell-wrapper --name my_cli_wrapper

Advanced Templates

typescript-advanced

Full-featured TypeScript server with utilities, validation, and testing:

context-pods generate typescript-advanced --name my-advanced-server

๐Ÿค– AI-Powered Codebase Analysis

Context-Pods includes an intelligent codebase analyzer that identifies functions in your existing code that would make excellent MCP tools. This feature helps you discover MCP opportunities and provides implementation guidance.

How It Works

The analyzer uses a multi-phase approach:

  1. File Discovery - Recursively scans your codebase with intelligent filtering
  2. AST Parsing - Extracts function metadata using language-specific parsers
  3. Pattern Detection - Identifies MCP-suitable patterns (API calls, file operations, etc.)
  4. Scoring Algorithm - Ranks functions using a sophisticated scoring system (0-100)
  5. Template Matching - Suggests the best template for each opportunity

Supported Languages

  • TypeScript/JavaScript - Full AST analysis with type information
  • Python - AST-based function extraction (coming soon)
  • Rust/Go - Pattern-based analysis (planned)
  • Shell - Script pattern detection (planned)

Usage Examples

# Basic analysis
context-pods analyze ./src

# With filtering and output options
context-pods analyze ./src --min-score 80 --format summary --max-results 5

# Language-specific analysis
context-pods analyze ./src --languages typescript,python

# Include test files
context-pods analyze ./src --include-tests

Via Meta-MCP Server

{
  "tool": "analyze-codebase",
  "arguments": {
    "path": "./src",
    "minScore": 70,
    "outputFormat": "detailed",
    "maxResults": 10
  }
}

What It Detects

The analyzer identifies functions with:

  • API Integration Patterns - HTTP clients, REST calls, GraphQL queries
  • File Processing Operations - File I/O, data transformation, parsing
  • Database Interactions - SQL queries, ORM operations, data validation
  • Utility Functions - Data validation, formatting, conversion
  • External Service Integrations - Third-party API usage

Scoring Factors

Functions are scored based on:

  • Complexity - Sweet spot is medium complexity (3-15 cyclomatic complexity)
  • Accessibility - Exported functions score higher
  • Documentation - Well-documented functions are preferred
  • Parameters - Clear input parameters (1-5 params optimal)
  • Patterns - Detected MCP-suitable patterns boost scores
  • Async Nature - Async functions often perform useful I/O operations

Sample Output

๐ŸŽฏ Top MCP Opportunities Found (Score: 85+)

๐Ÿ“ src/api/weather.ts
โ””โ”€โ”€ fetchWeatherData (Score: 92/100)
    โ”œโ”€โ”€ Category: API Integration
    โ”œโ”€โ”€ Template: typescript-advanced
    โ”œโ”€โ”€ Complexity: Medium (8 cyclomatic)
    โ”œโ”€โ”€ Patterns: HTTP calls, JSON parsing
    โ””โ”€โ”€ Reasoning:
        โ€ข Exported async function with clear parameters
        โ€ข Makes external API calls (confidence: 0.9)
        โ€ข Well-documented with TypeScript types
        โ€ข Optimal complexity for MCP tool

๐Ÿ“ src/utils/validator.ts
โ””โ”€โ”€ validateUserInput (Score: 88/100)
    โ”œโ”€โ”€ Category: Validation
    โ”œโ”€โ”€ Template: basic
    โ”œโ”€โ”€ Complexity: Low (4 cyclomatic)
    โ”œโ”€โ”€ Patterns: Zod validation, error handling
    โ””โ”€โ”€ Implementation Guidance:
        โ€ข Tool Name: validate-user-input
        โ€ข Input Schema: { data: object, rules: string[] }
        โ€ข Dependencies: zod, validator
        โ€ข Estimated Effort: Low

๐Ÿ”ง CLI Commands

# Generate a new MCP server
context-pods generate [template] [options]

# Wrap an existing script as MCP server
context-pods wrap <script> [options]

# List all managed MCP servers
context-pods list

# Run development server with hot reload
context-pods dev

# Build all packages
context-pods build

# Run tests
context-pods test

# Validate MCP compliance
context-pods validate <path>

# Analyze codebase for MCP opportunities
context-pods analyze <path>

๐Ÿ—๏ธ Architecture

Context-Pods uses a monorepo structure powered by TurboRepo:

context-pods/
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ core/        # Core utilities, schemas, and codebase analysis
โ”‚   โ”œโ”€โ”€ cli/         # Command-line interface
โ”‚   โ”œโ”€โ”€ templates/   # Server templates
โ”‚   โ”œโ”€โ”€ testing/     # MCP testing framework
โ”‚   โ”œโ”€โ”€ server/      # Meta-MCP server
โ”‚   โ””โ”€โ”€ create/      # npx runner
โ”œโ”€โ”€ docs/            # Documentation
โ””โ”€โ”€ examples/        # Example implementations

๐Ÿ”Œ Integration

Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "context-pods": {
      "command": "npx",
      "args": ["@context-pods/server"]
    }
  }
}

VS Code (Cody, Continue)

Configure in your extension settings:

{
  "mcp.servers": {
    "context-pods": {
      "command": "npx",
      "args": ["@context-pods/server"]
    }
  }
}

๐Ÿงช Testing

Context-Pods includes a comprehensive testing framework:

import { validateMCPServer, testHarness } from '@context-pods/testing';

// Validate MCP compliance
const validation = await validateMCPServer('./my-server');

// Test server communication
const harness = testHarness('./my-server');
await harness.testTool('my-tool', { input: 'test' });

๐Ÿ“š Documentation

  • Getting Started Guide
  • Meta-MCP Server Guide
  • Template Development
  • Testing Framework
  • API Reference

๐Ÿงช Test Coverage

Context-Pods maintains comprehensive test coverage across all packages:

Coverage by Package

Package Coverage Tests Description
@context-pods/server 95%+ 287+ MCP server tools, registry, and protocol handling
@context-pods/cli 90%+ 150+ CLI commands, caching, and output formatting
@context-pods/core 90%+ 75+ Template engine, language detection, and utilities
@context-pods/testing 95%+ 45+ MCP protocol compliance and script wrapper testing
@context-pods/templates 85%+ 25+ Template validation and structure verification
@context-pods/create 75%+ 30+ NPX runner and package installation

Test Categories

  • Unit Tests - Individual function and class testing
  • Integration Tests - End-to-end workflow validation
  • Protocol Compliance - MCP specification adherence
  • Template Validation - Generated code quality assurance
  • Error Handling - Resilience and recovery testing
  • Performance Tests - Scalability and resource usage

Quality Assurance

  • Pre-commit Hooks - Automated linting, type-checking, and testing
  • CI/CD Pipeline - Continuous testing on multiple Node.js versions
  • Coverage Tracking - Minimum 80% coverage requirement
  • Mutation Testing - Advanced test quality verification

Run tests locally:

# Run all tests
npm test

# Run tests with coverage
npm run test:coverage

# Run specific package tests
npm test --workspace=@context-pods/server

# Run integration tests
npm run test:e2e

Development Setup

# Clone the repository
git clone https://github.com/conorluddy/ContextPods.git
cd ContextPods

# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test

# Start development
npm run dev

๐Ÿ“ˆ Roadmap

  • Additional language templates (Go, Ruby, Java)
  • Visual template builder
  • MCP server marketplace
  • Cloud deployment options
  • Performance profiling tools
  • GraphQL transport support

๐Ÿ“„ License

MIT ยฉ Conor Luddy

๐Ÿ™ Acknowledgments

Built with the Model Context Protocol SDK by Anthropic.

Context-Pods: Where context creates context

MCP Server ยท Populars

MCP Server ยท New

    conorluddy

    Context-Pods

    ๐Ÿซ› Local-first Model Context Protocol management suite. Provides an MCP to create and manage other local MCPs. Useful for local Tooling etc.

    Community conorluddy
    vfarcic

    DevOps AI Toolkit

    Intelligent dual-mode agent for deploying applications to ANY Kubernetes cluster through dynamic discovery and plain English governance

    Community vfarcic
    paiml

    Depyler

    Compiles Python to Rust, helping transition off of Python to Energy Efficient and Safe Rust Code

    Community paiml
    campfirein

    Cipher

    Cipher is an opensource memory layer specifically designed for coding agents. Compatible with Cursor, Windsurf, Claude Desktop, Claude Code, Gemini CLI, AWS's Kiro, VS Code, and Roo Code through MCP, and coding agents, such as Kimi K2. Built by https://byterover.dev/

    Community campfirein
    neilberkman

    Clippy ๐Ÿ“Ž

    Unified clipboard tool for macOS that intelligently handles both text and file copying

    Community neilberkman