Cover image
Try Now
2025-03-31

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP Server Factory

A Java-based Model Context Protocol (MCP) server designed to help understand and build other MCP servers.

Project Overview

This project serves as both a learning tool and a guide for building MCP servers. It focuses on providing:

  1. Understanding of MCP Components:

    • Tools (executable functions that perform actions)
    • Resources (data sources that provide information)
    • Prompts (structured templates that generate responses)
  2. Templates and Best Practices for building MCP servers

Features

  1. Tools Section:

    • explain_concept - Provides detailed explanations of MCP concepts (tool, resource, prompt, server, client)
    • Task Planner Tools:
      • code_cleanup_planner - Generates a task plan for code cleanup objectives
      • feature_implementation_planner - Generates a task plan for feature implementation objectives
      • general_task_planner - Generates a task plan for general objectives
      • local_mcp_deployment_planner - Generates a task plan for deploying local MCP servers with critical clean and test steps that abort deployment on failure
  2. Resources Section:

    • mcp://factory/documentation/{topic} - Documentation on MCP topics (getting-started, best-practices, troubleshooting)
  3. Prompts Section:

    • tool_implementation_guide - Step-by-step guide for implementing MCP tools in different languages

Architecture

The MCP Server Factory is built using:

  • Java with Spring Framework (not Spring Boot)
  • log4j2 for logging implementation
  • Maven for build management

Following the design principles:

  • KISS (Keep It Simple, Stupid)
  • DRY (Don't Repeat Yourself)
  • YAGNI (You Aren't Gonna Need It)
  • SOLID (Single responsibility, Open-closed, Liskov substitution, Interface segregation, Dependency inversion)

Project Structure

  • src/main/java/user/jakecarr/ - Main source code

    • .../config/ - Spring configuration
    • .../main/ - Classes with main methods
    • .../model/ - Domain models and interfaces
    • .../model/impl/ - Implementations of MCP components
    • .../service/ - Business logic and services
  • docs/api/ - API documentation

    • prompts.md - Documentation for supported prompts
    • resources.md - Documentation for supported resources
    • tools.md - Documentation for supported tools

Code Quality

The codebase follows high-quality standards:

  • Well-structured code with clear separation of concerns
  • Comprehensive documentation with Javadoc comments for all classes and methods
  • Modular design with abstract base classes and interfaces
  • Consistent error handling with proper logging
  • Maintainable architecture with extracted methods and helper functions
  • Clean code practices including:
    • Descriptive naming conventions
    • Single responsibility principle
    • DRY (Don't Repeat Yourself) principle
    • Proper encapsulation

Building and Running

Prerequisites

  • Java 21 or higher
  • Maven 3.6 or higher
  • MCP Java SDK 0.8.1 (located at C:/Users/jayes/vscode/java-sdk-0.8.1/java-sdk-0.8.1.jar)

Building the Project

# Clone the repository
git clone https://github.com/yourusername/mcp-server-factory.git
cd mcp-server-factory

# Build the project
mvn clean package

Running the Server

# Run the server
java -jar target/mcp-server-factory-1.0-SNAPSHOT-jar-with-dependencies.jar

Running the Tests

# Run the tests
mvn test

Development Guidelines

  • Core business logic must not depend on Spring
  • Spring annotations only in the config package
  • No mocks in src/main/java
  • No recursion
  • Tests should include timeouts

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run the tests
  5. Submit a pull request

License

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • HiveNexus
  • Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

    Reviews

    3 (1)
    Avatar
    user_qFHET6yQ
    2025-04-16

    The mcp-server-factory by jayessdeesea is a fantastic solution for anyone looking to streamline their server management. It's thoughtfully designed and offers robust functionality right out of the box. The GitHub repository is well-documented, making it easy to get started. Check it out here: https://github.com/jayessdeesea/mcp-server-factory. Highly recommended for developers and IT professionals!