spring-ai-mcp-server
If you are the rightful owner of spring-ai-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 henry@mcphub.com.
Spring AI MCP Server is a server application that utilizes Spring Boot and AI to generate Excel and PowerPoint documents.
Spring AI MCP Server
์คํ๋ง๋ถํธ์ AI๋ฅผ ํ์ฉํ ์์ , PPT ์์ฑ ์๋ฒ์ ๋๋ค.
์ฃผ์ ๊ธฐ๋ฅ
- AI๋ฅผ ํ์ฉํ ์์ ๋ฌธ์ ์๋ ์์ฑ
- AI๋ฅผ ํ์ฉํ PPT ํ๋ ์ ํ ์ด์ ์๋ ์์ฑ
- RESTful API๋ฅผ ํตํ ๋น๋๊ธฐ ๋ฌธ์ ์์ฑ ์์ฒญ ์ฒ๋ฆฌ
๊ธฐ์ ์คํ
- Java 17
- Spring Boot 3.2.3
- Spring AI 0.8.0 (OpenAI ํ์ฉ)
- Apache POI 5.2.5 (์์ , PPT ํ์ผ ์์ฑ)
์๊ตฌ ์ฌํญ
- Java 17 ์ด์
- OpenAI API ํค
์คํ ๋ฐฉ๋ฒ
- ํ๊ฒฝ ๋ณ์ ์ค์ :
OPENAI_API_KEY=your_api_key
- ์ ํ๋ฆฌ์ผ์ด์
๋น๋:
./gradlew clean build
- ์ ํ๋ฆฌ์ผ์ด์
์คํ:
java -jar build/libs/spring-ai-mcp-server-0.0.1-SNAPSHOT.jar
API ์ฌ์ฉ ์์
1. ์์ ๋ฌธ์ ์์ฑ ์์ฒญ
curl -X POST http://localhost:8080/api/documents \
-H "Content-Type: application/json" \
-d '{
"title": "2024๋
๋ถ๊ธฐ๋ณ ๋งค์ถ ๋ณด๊ณ ์",
"content": "2024๋
1๋ถ๊ธฐ์์ 3๋ถ๊ธฐ๊น์ง์ ๋งค์ถ ๋ฐ์ดํฐ๋ฅผ ํฌํจํ ๋ณด๊ณ ์๋ฅผ ์์ฑํฉ๋๋ค. ์ ํ ์นดํ
๊ณ ๋ฆฌ๋ณ ๋งค์ถ๊ณผ ์ดํฉ์ ํ์ํ๊ณ , ๋ถ๊ธฐ๋ณ ์ฆ๊ฐ๋ฅ ๋ ํ์ํด์ฃผ์ธ์.",
"documentType": "EXCEL",
"sections": ["๋งค์ถ ๊ฐ์", "์ ํ๋ณ ์ค์ ", "์ง์ญ๋ณ ์ค์ "]
}'
2. PowerPoint ํ๋ ์ ํ ์ด์ ์์ฑ ์์ฒญ
curl -X POST http://localhost:8080/api/documents \
-H "Content-Type: application/json" \
-d '{
"title": "AI ๊ธฐ์ ๋ํฅ 2025",
"content": "2025๋
ํ์ฌ์ AI ๊ธฐ์ ๋ํฅ์ ์๊ฐํ๋ ํ๋ ์ ํ
์ด์
์
๋๋ค. ์์ฑํ AI ๋ฐ์ , ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ, AI ์ค๋ฆฌ ๋ฐ ๊ท์ , ์ฐ์
๋ณ AI ์์ฉ ์ฌ๋ก ๋ฑ์ ๋ค๋ฃน๋๋ค.",
"documentType": "POWERPOINT",
"sections": ["์๋ก ", "์์ฑํ AI ๋ํฅ", "๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ ๋ฐ์ ", "์ฐ์
๋ณ AI ์์ฉ", "์ค๋ฆฌ ๋ฐ ๊ท์ ", "๊ฒฐ๋ก "]
}'
3. ๋ฌธ์ ์์ฑ ์ํ ํ์ธ
curl -X GET http://localhost:8080/api/documents/{documentId}
4. ์์ฑ๋ ๋ฌธ์ ๋ค์ด๋ก๋
-
์์ ํ์ผ:
curl -X GET http://localhost:8080/api/documents/excel/download/{fileName}
-
PowerPoint ํ์ผ:
curl -X GET http://localhost:8080/api/documents/ppt/download/{fileName}
์ค์ ์ต์
application.yml
์์ ๋ค์ํ ์ค์ ์ ์กฐ์ ํ ์ ์์ต๋๋ค:
app:
document:
temp-dir: ${java.io.tmpdir}/spring-ai-mcp-server # ์์ ํ์ผ ์ ์ฅ ๊ฒฝ๋ก
ํฅํ ๊ฐ๋ฐ ๊ณํ
- Markdown ๋ฌธ์ ์์ฑ ๊ธฐ๋ฅ ์ถ๊ฐ
- Confluence ํ์ด์ง ์๋ ์์ฑ ๊ธฐ๋ฅ ์ถ๊ฐ
- ๋ค์ํ ๋ฌธ์ ํ ํ๋ฆฟ ์ง์
- ์ด๋ฏธ์ง ๋ฐ ์ฐจํธ ์๋ ์์ฑ ๊ธฐ๋ฅ
๋ผ์ด์ผ์ค
MIT License