mcp-codestyle-server
Verified Safeby 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
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.jarEnvironment 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
mcp-servers
Provides a curated collection of Model Context Protocol (MCP) server configurations to enable AI agents to interact with various developer tools and services.
easy-code-reader
Provides a Model Context Protocol (MCP) server for AI assistants to intelligently read Java source code from local projects and Maven dependencies, supporting decompilation and multi-module analysis.
spring-rest-to-mcp
Transforms existing Spring Web REST APIs into Spring AI Model Context Protocol (MCP) server tools using OpenRewrite recipes.
sourcegraph-mcp
Provides AI-enhanced code search and content fetching capabilities from Sourcegraph instances to LLM agents.