IM

itxaiohanglover/mcp-codestyle-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

56 stars 8 forks 품질 61 트렌드 0MIT

itxaiohanglover/mcp-codestyle-server는 MCP 서버 후보자가 https://github.com/itxaiohanglover/mcp-codestyle-server.]에서 가져온

개요

itxaiohanglover/mcp-codestyle-server는 MCP 서버 후보자가 https://github.com/itxaiohanglover/mcp-codestyle-server.]에서 가져온

개요(AI 번역)

和 스프링 AI 的 MCP 서버,스위트 IDE 和 AI 代理分分分、检索工具。


# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

  • ** MCP ITE**: 크라우드 버찌 스튜디오、Cursor、TRAE ☸ MCP
    -T分*:[analyzeProject](一站式分,3~6 →korean+鶏用++))、exploreCodeContext(expand / trace / search )) -:codestyleSearch / getTemplateByPath] / uploadTemplate / uploadTemplateFromFileSystem] / [T6]]] -T:[T7]](AST AST目)) -过:[T8]] 过,T all ;T分分 analyze(2개),) 토큰 -Lucene 全文 상:中文分分(SmartChineseAnalyzer),)用 - Lu式***:本地 Lucene(本)/ Open Open API(名名古)
  • ** -:, -新新:SHA256 ,下下载 -:groupId/artifactId/version/ Ma目录

📦

  • 자바 17, 마벤 3.9+
  • 스프링 부트 3.4.12, 스프링 AI MCP 서버 2.0.0-M2
  • 아파치 Lucene 9.12.3, Hutool 5.8.42

方式 1: MCP 用 (짐)

₢ 킹

###2. MCP

₢ 킹

all ;T分析(2 )) 加-Dcodestyle.tool-group=analyze。

** :**:

₢ 킹

###3 安

成后,MCP Proxy会::

MCP 네트워크

###4

codestyleSearch :

###5 生成 #

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.


🚀 核心特性

  • MCP 工具:支持 Cherry Studio、Cursor、TRAE 等 MCP 客户端
    • 代码分析:analyzeProject(一站式分析,3~6 个关键词→位置+调用链+预览)、exploreCodeContext(expand / trace / search 读代码)
    • 模板:codestyleSearch / getTemplateByPath / uploadTemplate / uploadTemplateFromFileSystem / deleteTemplate
    • 骨架:extractProjectSkeleton(AST 解析项目骨架)
  • 工具组:通过 codestyle.tool-group 按需暴露工具,默认 all 暴露全部工具;若仅需代码分析可设为 analyze(2 工具),减少客户端 token
  • Lucene 全文检索:中文分词(SmartChineseAnalyzer),离线可用
  • 双模式检索:本地 Lucene(默认) / 远程 Open API(签名认证)
  • 配置验证:启动时自动验证配置,快速失败
  • 增量更新:SHA256 比对,按需下载
  • 多版本共存:groupId/artifactId/version/ Maven 风格目录

📦 技术栈

  • Java 17, Maven 3.9+
  • Spring Boot 3.4.12, Spring AI MCP Server 2.0.0-M2
  • Apache Lucene 9.12.3, Hutool 5.8.42

🎯 快速开始

方式 1: MCP 客户端使用(推荐)

1. 构建 JAR 包

git clone https://github.com/itxaiohanglover/mcp-codestyle-server.git
cd mcp-codestyle-server
mvn clean package -DskipTests

2. 配置 MCP 客户端

在 MCP 客户端(如 Cherry Studio、Cursor)中添加配置:

{
  "mcpServers": {
    "codestyle": {
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dlogging.pattern.console=",
        "-Dfile.encoding=UTF-8",
        "-jar",
        "/path/to/codestyle-server.jar"
      ]
    }
  }
}

默认 all 暴露全部工具;若仅需代码分析(2 工具)可加 -Dcodestyle.tool-group=analyze。

配置示例:

3. 安装后效果

配置完成后,MCP 服务器会自动启动:

4. 搜索模板

使用 codestyleSearch 工具搜索模板:

5. 生成代码

使用 getTemplateByPath 获取模板并生成代码:

方式 2: Claude Skill 使用

详见 Codestyle Skill 文档



📖 使用教程

从市场安装(推荐)

1. 在 MCP 市场搜索

2. 一键安装

点击安装按钮,系统会自动配置 MCP 服务器。

3. 开始使用

安装完成后,即可在对话中使用代码模板功能。

完整使用流程

步骤 1: 搜索模板

在对话中说:

帮我搜索 CRUD 模板

系统会调用 codestyleSearch 工具,返回匹配的模板列表和目录结构。

步骤 2: 选择模板

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "codestyle": { "command": "java", "args": [ "-Dspring.ai.mcp.server.stdio=true", "-Dspring.main.web-application-type=none", "-Dlogging.pattern.console=", "-Dfile.encoding=UTF-8", "-jar", "/path/to/codestyle-server.jar" ] } } }