Back to Home
itxaiohanglover icon

mcp-codestyle-server

Verified Safe

by itxaiohanglover

Overview

Provides a Model Context Protocol (MCP) server for IDEs and AI agents to search and retrieve code templates, with local Lucene indexing and optional remote fetching capabilities.

Installation

Run Command
java \ -Dspring.ai.mcp.server.stdio=true \ -Dspring.main.web-application-type=none \ -Dlogging.pattern.console= \ -Dcache.base-path=/mcp-cache \ -Dfile.encoding=UTF-8 \ -Drepository.remote-path=http://your-server.com \ -jar target/mcp-codestyle-server-1.0.2.jar

Environment Variables

  • repository.local-path
  • repository.remote-path
  • repository.dir
  • repository.remote-search-enabled
  • spring.ai.mcp.server.stdio
  • spring.main.web-application-type
  • logging.pattern.console
  • file.encoding
  • cache.base-path

Security Notes

The server's core functionality involves downloading and extracting template archives from a configurable remote repository URL (`repository.remote-path`). If this path points to an untrusted source, the server could download and store malicious files or templates, posing a significant supply chain risk and potential remote code execution vector. While Hutool's ZipUtil is generally robust against Zip Slip vulnerabilities, the integrity of the downloaded content itself relies entirely on the trust placed in the configured remote server. No obvious hardcoded secrets or 'eval'-like patterns (relevant for Java) were found, but the dynamic content loading is a critical point of concern.

Similar Servers

Stats

Interest Score39
Security Score4
Cost ClassLow
Avg Tokens750
Stars10
Forks0
Last Update2025-12-03

Tags

Code GenerationTemplate ManagementSpring AIMCPLucene