API Keys
จัดการ key สำหรับ Sandbox และ Production
Sandbox Key
sandboxsk_sandbox_a1b2c3d4e5f6a7b8c9d0e1f2Production Key
productionsk_live_9f8e7d6c5b4a3f2e1d0c9b8aตั้งค่า MCP Server (กดเดียวจบ)
คัดลอก config นี้ — ฝัง Sandbox key ให้แล้ว — ไปวางใน MCP client
Client:
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"myapi": {
"command": "node",
"args": ["/absolute/path/to/myapi/mcp-server/src/index.js"],
"env": { "MYAPI_KEY": "sk_sandbox_a1b2c3d4e5f6a7b8c9d0e1f2" }
}
}
}อย่าลืมแก้ path ของ src/index.js ให้เป็นที่อยู่จริงในเครื่องคุณ