From 4468d2c2b18555ec25fb3e1eaddba22287bcb0b1 Mon Sep 17 00:00:00 2001 From: JackLiu Date: Mon, 21 Jul 2025 00:40:15 +0800 Subject: [PATCH] Update README.md --- README.md | 93 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 78 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 437b2c8..abd6033 100644 --- a/README.md +++ b/README.md @@ -5,22 +5,13 @@ It allows you to transform any OpenAPI into a monetizable MCP service and build your own API store in just minutes. - βœ… **One-click OpenAPI β†’ MCP service config** -- 🧾 **Service homepage + pricing model** -- πŸ’³ **Built-in billing (per-call / token-based)** -- πŸ“Š **Call logs and usage analytics** +- 🧾 **SEO-friendly homepage + mcp service page** +- πŸ’³ **Built-in billing (per-call)** - πŸ‘₯ **User account management** -- 🌐 **Multi-tenant ready** -- πŸ›  **Support Stripe, Alipay, WeChat Pay** -- πŸ” **Email & Google OAuth Sign in** +- πŸ›  **Support Stripe Payment** +- πŸ” **Support Email & Google OAuth Sign in** - -πŸš€You can launch XPack in minutes with this single-line installer: - -```bash -curl -sSO https://download.xpack.com/install/quick-start.sh; bash quick-start.sh -``` - -πŸ“˜Everything is open-source and licensed under **Apache 2.0** β€” ready for commercial use. +Everything is open-source and licensed under **Apache 2.0** β€” ready for commercial use. # πŸ“Έ Screenshots ![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1) @@ -68,7 +59,6 @@ curl -sSO https://download.xpack.com/install/quick-start.sh; bash quick-start.sh > - Alibaba Cloud Linux 2.1903 If you need one-click deployment for other systems, please submit an [Issue](https://github.com/xpack-ai/XPack-MCP-Market/issues). - ``` curl -sSO https://download.xpack.com/install/quick-start.sh; bash quick-start.sh ``` @@ -152,6 +142,79 @@ docker-compose up -d ``` 4. Access `XPack-MCP-Market` in your browser at port 3000 +## Build Guide +### Prerequisites +1. Clone the XPack repository. +``` +git clone https://github.com/xpack-ai/XPack-MCP-Market.git +``` +2. Enter the project directory. +``` +cd XPack-MCP-Market +``` +### Frontend Build +> Requirements: +> - Node >= 22.x +> - Pnpm >= 10.x + +1. Execute the frontend build script +``` +cd scripts && ./frontend_build.sh && cd ../ +``` +After compilation, the frontend code will be built into the `frontend/out` directory. + +2. Start the UI interface +``` +cd frontend/out && node server.js +``` +### Backend Build +> Requirements: +> - Python >= 3.11 + +#### Using`uv` (Recommended) +1. Create virtual environment +``` +uv venv +``` +2. Activate virtual environment +``` +source .venv/bin/activate +``` +3. Install dependencies +``` +uv pip install -r requirements.txt +``` +4. Copy environment variable file +``` +cp .env.example .env +``` +5. Edit environment variables +``` +vi .env +``` +6. Start admin backend service +**Foreground** +``` +uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload +``` +**Background** +``` +uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload & +``` + +7. Start API to MCP service +**Foreground** +``` +uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload +``` +**Background** +``` +uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload & +``` +### Docker Build +``` +docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./ +``` # 🌍 License This project is licensed under the Apache 2.0 License.