mcp_server_version_one

Yessbee/mcp_server_version_one

3.1

If you are the rightful owner of mcp_server_version_one and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This is a Spring Boot-based MCP (Model Coordination Protocol) server implementation that allows executing local batch files through the MCP protocol.

Tools
2
Resources
0
Prompts
0

MCP Server Version One

This is a Spring Boot-based MCP (Model Coordination Protocol) server implementation that allows executing local batch files through the MCP protocol.

Features

  • Execute local batch files through the MCP protocol
  • Store and manage batch file paths
  • GUI-based file selection when running in non-headless environments

Prerequisites

  • Java 17 or higher
  • Maven 3.6 or higher (or use the included Maven wrapper)

Building and Running

Using Maven

To build the application:

mvn clean package

To run the application:

java -jar target/mcp_server_version_one-0.0.1-SNAPSHOT.jar

Using Build Scripts (Windows)

For Windows users, there are two batch scripts available in the directory:

  1. - Basic build with logging
  2. - Verbose build with detailed logging to file

Logging

The application includes comprehensive logging that captures all server activities.

Log Configuration

  • Logs are written to logs/mcp-server.log in the application's working directory
  • Log files are rotated daily and when they exceed 100MB
  • Old log files are retained for 30 days
  • Logs are also output to the console

Log Levels

  • Console and file logging use the same levels
  • Root logging level is set to INFO
  • Application-specific logging (com.drona.mcpserverversionone package) is set to DEBUG for more detailed information

Log Format

Logs follow the pattern: %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n

Example:

2023-08-28 10:15:32.456 [main] INFO  c.d.m.main.McpServerApp - Starting MCP Server Version One...

Usage

Once the server is running, it provides two main tools through the MCP protocol:

  1. runLocalBuild - Executes the stored batch file to run builds or start a web application server
  2. setBatchPath - Sets or changes the path to the batch file for future executions

The batch file path is stored in the user's home directory under .mytoolconfig/batchpath.properties.

Project Structure

├── scripts                 # Build scripts
│   ├── maven-build.bat
│   └── maven-verbose-build.bat
├── src                     # Source code
│   └── main
│       ├── java            # Java source files
│       │   └── com
│       │       └── drona
│       │           └── mcpserverversionone
│       │               ├── main
│       │               └── services
│       └── resources       # Resource files
├── logs                    # Log files (created at runtime)
├── target                  # Compiled output (created during build)
└── README.md               # This file