Back to Home
ChristianW-public icon

mcp

by ChristianW-public

Overview

Demonstrates Model Context Protocol (MCP) server capabilities for providing coding guidelines (read-only) and implementing a simple file versioning system (read-write).

Installation

Run Command
cd mcp-simple-versioning && mvn spring-boot:run

Security Notes

The 'mcp-simple-versioning' server is highly vulnerable to arbitrary file write and path traversal. The 'createRevision' method writes user-provided file contents to 'C:\Temp\{revision_id}\{relative_path}'. If 'relativePath' contains path traversal sequences (e.g., '../../../'), an attacker can write arbitrary files to any location on the file system, potentially leading to remote code execution, system compromise, or denial of service by filling disk space. This is a critical security risk and makes the application unsafe to run in an untrusted environment.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassLow
Avg Tokens75
Stars0
Forks0
Last Update2025-11-22

Tags

MCPSpring AIVersioningCoding GuidelinesDemonstration