mcp-server

kaxxx/mcp-server

3.2

If you are the rightful owner of mcp-server 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.

The mcp-codex-server is a Spring Boot 3 / Java 17 application that exposes two code tools via Spring AI MCP Annotations and utilizes OpenAI integration internally.

Tools
2
Resources
0
Prompts
0

mcp-server

Spring Boot 3 / Java 17 MCP-Server, der zwei Code-Tools (explain-code, review-code) via Spring AI MCP Annotations exponiert und intern die OpenAI-Integration (ChatClient) nutzt.

Import in IntelliJ

  1. ZIP entpacken.
  2. In IntelliJ: File → Open... und den Ordner mcp-server auswählen.
  3. IntelliJ erkennt das Gradle-Projekt (Kotlin DSL) automatisch.
  4. Als Project SDK / Gradle JVM bitte JDK 17 wählen.

Build & Start

./gradlew bootRun

MCP-Server wird als .jar gebaut:

  • ./build/libs/mcp-server-0.0.1-SNAPSHOT.jar

Tools

  • explain-code(language?, code) – gibt eine deutsche Schritt-für-Schritt-Erklärung.
  • review-code(language?, code) – macht ein kleines Code-Review.

Beide Tools werden via @McpTool registriert und vom Annotation Scanner automatisch gefunden (spring.ai.mcp.server.annotation-scanner.enabled=true).

Einbinden in Intellij

In Tools > AI Assistant -> Settings -> Tools -> AI Assistent -> MPC Konfigiration (JSON) wie folgt anlegen:

{
    "mcpServers": {
        "local-mcp": {
            "command": "java",
            "args": [
            "-Dspring.ai.mcp.server.stdio\u003dtrue",
            "-Dspring.main.web-application-type\u003dnone",
            "-jar",
            "/Users/NAME/PATH/mcp-server/build/libs/mcp-server-0.0.1-SNAPSHOT.jar"
            ],
            "env": {
                "SPRING_AI_OPENAI_API_KEY": "DEIN_API_KEY"
            }
        }
    }
}

Logs

Die logs landen dann im Intellij Log Verzeichnis: Bsp: /Users/NAME/Library/Logs/IntelliJIdea20xx/mcp/local-mcp.log