Files
homaroma/apps/mcp-server
2026-06-17 21:08:24 -04:00
..
x
2026-06-07 07:33:41 +07:00
x
2026-06-07 07:33:41 +07:00
2026-06-17 21:08:24 -04:00
2026-06-17 21:08:24 -04:00
2026-06-17 21:08:24 -04:00
2026-06-17 21:08:24 -04:00
x
2026-06-07 07:33:41 +07:00
x
2026-06-07 07:33:41 +07:00
x
2026-06-07 07:33:41 +07:00

HomAroma MCP Server

MCP server สำหรับเชื่อม AI tools เข้ากับ backend ของ HomAroma ผ่าน stdio transport

Run

bun install
bun run --cwd apps/mcp-server dev

หรือรันตรงจาก package:

cd apps/mcp-server
bun run dev

Environment

รองรับตัวแปรต่อไปนี้:

  • MCP_BACKEND_URL สำหรับกำหนด backend target ตรง ๆ
  • MCP_BACKEND_URL_LOCAL ค่าเริ่มต้นสำหรับ local
  • MCP_BACKEND_URL_PRODUCTION ค่าเริ่มต้นสำหรับ production
  • MCP_ADMIN_USERNAME
  • MCP_ADMIN_PASSWORD

ถ้าไม่ตั้งค่า MCP_BACKEND_URL server จะเริ่มที่ local backend และสลับเป็น production ได้ด้วย tool set_target_environment

Scripts

  • bun run dev
  • bun run start
  • bun run check