codepresso-learnathon-1st/mcp-test
If you are the rightful owner of mcp-test 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.
This document provides a guide to testing the interaction between a sample MCP Server and Claude Desktop (MCP Client).
mcp-test
Claude Desktop(MCP Client) μ΄μ©ν΄ μμ MCP Server κ° λμ ν μ€νΈλ₯Ό ν΄λ³΄μ
Skills
- Fastmcp
- uv ν¨ν€μ§
ν¨ν€μ§ μ€μΉ
- requirements.txtμ μλ ν¨ν€μ§ μ€μΉ
pip install -r requirements.txt
μμ μΌμ΄μ€ μ½λ
case1/
βββ rag/
βββ __init__.py
βββ base.py β RAG κ²μ μΆμν ν΄λμ€
βββ pdf.py β PDF νΉν RAG ꡬν
βββ config.py β κ²½λ‘ λ° μ€μ κ°
βββ auto_mcp_json.py β MCP μ€νμ μν config JSON μμ±κΈ°
βββ mcp_server.py β μ€μ MCP μλ² μ§μ
μ
μμ μΌμ΄μ€ μ§ν μ€ν μμ½
- PDF νμΌ /data/*.pdf μ λ£κΈ°
- .envμ OPENAI_API_KEY μ μ
- python auto_mcp_json.py μ€ν β mcp_config.json μμ±
- MCP λ°νμμμ rag-mcp μ€ν
- MCPμ μ°κ²°λ ν΄λΌμ΄μΈνΈκ° semantic_search("What is LangChain?") 쿼리 μ μ‘
- κ²μ κ²°κ³Ό λ§ν¬λ€μ΄ ννλ‘ μλ΅
TODO
- μμ μΌμ΄μ€ μ°Έκ³ ν΄ λμ νμΈ
ν μ€νΈ κ²°κ³Ό
1μ°¨ κΈ°λ³Έ λμ νμΈ :: β μ μλμ
- λ°λͺ¨ MCP Serverλ₯Ό μμ±ν΄ Fastmcpλ‘ μ€μΉνκ³ , ν΄λ‘λ μ±μμ λμ νμΈ
β― fastmcp install mcp_server.py
# Demo MCP server
[03/28/25 23:26:48] INFO Added server 'Demo' to Claude config claude.py:125
INFO Successfully installed Demo in Claude app
open -a Claude
2μ°¨ μμμΌμ΄μ€ νμΈ :: β μ μλμ
# [1] MCP config μμ±
python case1/auto_mcp_json.py
# [2] μμ±λ config.jsonμ ν΄λ‘λ λ°μ€ν¬ν μ€μ μ 볡μ¬
# [3] ν΄λ‘λ λ°μ€ν¬ν μ€ν
open -a Claude