pmj-chosim/BasicMCP_3Types_Ex
3.1
If you are the rightful owner of BasicMCP_3Types_Ex 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.
The Model Context Protocol (MCP) server is a framework designed to facilitate communication between AI models and applications, enabling seamless integration and interaction.
๋ชฉํ: Java ๊ธฐ๋ฐ MCP ์๋ฒ, MCP ํธ์คํธ์ ์ฐ๊ฒฐ๋ ํด๋ผ์ด์ธํธ ๊ตฌ์ถ
-
MCP ํธ์คํธ: ์์ฑํ AI ๋ชจ๋ธ
- GitHub์์ ์ ๊ณตํ๋ ๋ฌด๋ฃ GPT 4o mini ๋ชจ๋ธ
-
MCP ํด๋ผ์ด์ธํธ: ์์ฑํ AI ๋ชจ๋ธ <-> MCP ์๋ฒ
- LangChain4j(SDK)๋ฅผ ์ฌ์ฉํด MCP ํธ์คํธ(GPT-4o) API์ MCP ์๋ฒ(์ง์/์ก์ ๋๊ตฌ) API ํธ์ถ.
- Spring Boot(Java 21) ๊ธฐ๋ฐ ์ฑ
-
MCP ์๋ฒ: ์ง์/์ก์ ๋๊ตฌ
- ๊ณ์ฐ๊ธฐ ๊ธฐ๋ฅ(์ก์ )์ ๊ฐ์ง SpringBoot(Java 21) ๊ธฐ๋ฐ ์ฑ
0. ์ฌ์ ์ค๋น
- Docker or Docker Desktop
- npx(npm)
1. MCP ์๋ฒ
cd calculator-server
docker build -t mcp-server .
docker run -p 8080:8080 --name calculator-container mcp-server
npx @modelcontextprotocol/inspector
2. MCP ํธ์คํธ์๋ฒ API ์ ๋ณด ๊ฐ์ ธ์ค๊ธฐ
3. MCP ํด๋ผ์ด์ธํธ
cd client
#example: docker build --build-arg GITHUB_TOKEN=sdsdsd1234 -t client .
docker build --build-arg GITHUB_TOKEN=your-token -t client .
#example: docker run -e GITHUB_TOKEN=sdsdsd1234 -p 8081:8080 --name client client
docker run -e GITHUB_TOKEN=your-token -p 8081:8080 --name client client