Skip to content

ChevFy/fastmcp_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FASTMCP Tutorial - แนวทางการใช้งาน MCP และ FastMCP

Tutorial นี้อ้างอิงจากวิดีโอ: FastMCP Tutorial - YouTube

วิธีติดตั้ง

pip install -r requirements.txt

เชื่อมต่อกับ Claude Desktop

ขั้นตอนการตั้งค่า:

1️) หาไฟล์ Config ของ Claude Desktop

บน macOS:

~/.claude_desktop/claude_desktop_config.json

บน Windows:

%APPDATA%\Claude\claude_desktop_config.json

บน Linux:

~/.config/Claude/claude_desktop_config.json

2️) แก้ไข Config File

เปิดไฟล์ claude_desktop_config.json และเพิ่ม MCP Server configuration:

{
    "mcpServers": {
        "mcp-server": {
            "command": "uv", // ควรเป็น  Full Absolute Path
            "args": [
                "--directory",
                "YOU_PROGRAM_PATH",
                "run",
                "server.py"
            ]
        }
    }
}

!!! ควร ใช้ Full Absolute Path ไม่ใช่ Relative Path

3️) รีสตาร์ท Claude Desktop

4️) ลองการเชื่อมต่อ

คุยกับ Claude ว่า:

ใช้เครื่องมือที่มีให้เลย (use the available tools)

Claude จะแสดง Tools ที่ได้จาก MCP Server ของคุณ

About

just learning mcp or fastmcp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages