fix update Section Block

This commit is contained in:
Your Name committed 2026-06-17 21:08:24 -04:00
1 parent 996dfdabd0
commit 6f67ee6077
47 files changed
+1792 -197

No files matched your search

+25 -5
View File
@@ -1,15 +1,35 @@
# mcp-server
# HomAroma MCP Server
To install dependencies:
MCP server สำหรับเชื่อม AI tools เข้ากับ backend ของ HomAroma ผ่าน stdio transport
## Run
```bash
bun install
bun run --cwd apps/mcp-server dev
```
To run:
หรือรันตรงจาก package:
```bash
bun run index.ts
cd apps/mcp-server
bun run dev
```
This project was created using `bun init` in bun v1.3.13. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
## 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`