Compare commits

...
29 Commits
Author SHA1 Message Date
Dot.L 4d230db82b Merge pull request #36 from xpack-ai/feature/ui-1.0.2
feat/ui-1.0.2:when about page content is empty,need to hide about nav…
2025-10-07 09:05:51 +08:00
riverLethe 4b773063a0 feat/ui-1.0.2:when about page content is empty,need to hide about navigation 2025-09-28 14:20:04 +08:00
riverLethe 92aa83cb71 feat/ui-1.0.2:when about page content is empty,need to hide about navigation 2025-09-28 14:19:29 +08:00
Dot.L f98ff6bf44 Update admin user login address in README 2025-09-17 13:43:43 +08:00
JackLiu 22aa1c34c7 Update README-zh-tw.md for clarity in billing section 2025-08-28 11:30:08 +09:00
JackLiu 680ae27dd1 Update language links in README-zh-tw.md 2025-08-28 11:29:28 +09:00
JackLiu 4bb91c38ae Add language links to README-zh-cn.md 2025-08-28 11:29:18 +09:00
JackLiu 6cdcb98dd5 Update Korean README with additional language links 2025-08-28 11:28:52 +09:00
JackLiu d0e48f8ae2 Update language links in README-ja.md 2025-08-28 11:28:35 +09:00
JackLiu 3693d984c5 Update language links in README-fr.md 2025-08-28 11:28:22 +09:00
JackLiu 4782b2ee8f Update language links in README-es.md 2025-08-28 11:27:58 +09:00
JackLiu c2c64a2d29 Update language links in README-de.md 2025-08-28 11:27:43 +09:00
JackLiu 2734841b2a Update README.md 2025-08-28 11:27:00 +09:00
JackLiu 86344c5bc0 new lang readme 2025-08-28 11:25:44 +09:00
JackLiu a3ab01cc46 Update README.md 2025-08-15 09:32:03 +08:00
JackLiu 265ed78835 Update README.md 2025-08-06 10:54:53 +08:00
lethe 49627d2449 fix/ui-1.0.0:api fetch error need to throw 2025-07-31 18:06:01 +08:00
Liujian 31e3b6b0a8 Change the frequency count to amount count 2025-07-31 17:25:23 +08:00
lethe 695580d844 feat/ui-1.0.0:dashboard analysis change times to amount 2025-07-31 17:16:41 +08:00
Dot.L 9c7462f3ed Merge pull request #32 from xpack-ai/feature/0.3-backend
overview qiniu file
2025-07-31 15:18:27 +08:00
Dot.L 4c03a25f9b Merge pull request #31 from xpack-ai/feature/0.3-backend
add version-1.0.1.sql
2025-07-31 15:17:50 +08:00
Liujian cc2d66be11 overview qiniu file 2025-07-31 15:16:57 +08:00
Liujian 754d8e596e add version-1.0.1.sql 2025-07-31 15:14:45 +08:00
Dot.L 97fdd892ed Merge pull request #29 from xpack-ai/feature/0.3-backend
Feature/0.3 backend
2025-07-31 11:42:54 +08:00
Liujian fc46e7b354 fix: pay channel bug 2025-07-31 11:41:49 +08:00
lethe 02fd02ceef hotfix/ui-1.0.0:fixed validate login method disabled check,check if at least one login method is enabled 2025-07-31 11:37:51 +08:00
lethe ed1391fc84 fix/ui-1.0.0:if not setting smtp config,when user change login method is email and code,go to setting need to go to email-admin route 2025-07-31 11:31:58 +08:00
lethe 4e57c9d0b1 fix/ui-1.0.0:if faq and top navigation empty,should auto add new empty item 2025-07-31 11:18:52 +08:00
Liujian a37d13604d Merge remote-tracking branch 'origin/main' into feature/0.3-backend 2025-07-31 11:15:00 +08:00
29 changed files with 2163 additions and 50 deletions

No files matched your search

+329
View File
@@ -0,0 +1,329 @@
# XPack
![b1](https://github.com/user-attachments/assets/3d50cd9a-9d28-4ec8-bb5f-d3668475b49e)
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
**XPack** ist der erste Open‑Source‑MCP‑Marktplatz der Welt – damit erstellen und verkaufen Sie Ihre MCP‑Services in wenigen Minuten.
<br>
✨ Was XPack bietet
- ✅ **OpenAPI → MCP‑Servicekonfiguration per One‑Click**
- 🧾 **SEO‑optimierte Startseite & Service‑Seiten**
- 💳 **Integriertes Billing (pro Aufruf oder nach Token‑Verbrauch)**
- 👥 **Benutzerkontenverwaltung**
- 🛠 **Unterstützung für Stripe‑Zahlungen**
- 🔐 **Anmeldung via E‑Mail & Google OAuth**
Alles ist Open Source unter **Apache 2.0** – bereit für den kommerziellen Einsatz.
<br>
# ✨ Schnellstart
😍 Die Bereitstellung ist extrem einfach. Mit **einem einzigen Befehl** ist Ihr MCP‑Marktplatz in 10 Minuten online.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![In 10 Minuten Ihren MCP‑Marktplatz deployen](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
# 📸 Funktionen
![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1)
![b3](https://github.com/user-attachments/assets/16f74c8a-b35e-40a7-8471-a5736de8e904)
![b4](https://github.com/user-attachments/assets/fc76c215-7544-4267-bc6f-22a719edec00)
![b5](https://github.com/user-attachments/assets/db40ea77-58c3-472d-ba94-35dc9716a980)
<br>
## 🖥️ Systemanforderungen
### ✅ Empfohlene Hardware
- **CPU**: 8 Kerne
- **Arbeitsspeicher**: 16 GB
- **Speicher**: 200 GB
- **Betriebssystem**: Linux
- **Architektur**: AMD64
### ✅ Mindestanforderungen
- **CPU**: 2 Kerne
- **Arbeitsspeicher**: 4 GB
- **Speicher**: 200 GB
- **Betriebssystem**: Linux / macOS
- **Architektur**: AMD64 / ARM64
<br>
## 📦 Laufzeitabhängigkeiten
Für **XPack‑MCP‑Market** werden folgende Dienste benötigt (selbst gehostet oder containerisiert):
| Komponente | Mindestversion |
|---|---|
| **MySQL** | ≥ 5.7.x |
| **Redis** | ≥ 6.2.x |
| **RabbitMQ**| ≥ 4.0 |
Stellen Sie sicher, dass diese Dienste verfügbar und korrekt konfiguriert sind, bevor Sie das Backend starten.
<br>
## 💿 Bereitstellung
😍 So einfach: Mit **einem Befehl** ist Ihr MCP‑Marktplatz in 10 Minuten bereit.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
<details>
<summary><h4>🔖 Docker‑Compose‑Bereitstellung</h4></summary>
Für diese Methode benötigen Sie [Docker](https://docs.docker.com/engine/install/) und [Docker Compose](https://docs.docker.com/compose/install/standalone/).
1. `docker-compose.yml` bearbeiten
```
vi docker-compose.yml
```
<br>
2. Konfiguration anpassen (Beispiel: [docker-compose.yml](https://github.com/xpack-ai/XPack-MCP-Market/blob/main/scripts/docker-compose.yml))
```
version: '3'
services:
xpack-mysql:
image: mysql:8.0.37
privileged: true
restart: always
container_name: xpack-mysql
hostname: xpack-mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql_ZTdhRB
- MYSQL_DATABASE=xpack
volumes:
- /var/lib/xpack/mysql:/var/lib/mysql
networks:
- xpack
xpack-mcp-market:
image: xpackai/xpack-mcp-market
container_name: xpack-mcp-market
privileged: true
restart: always
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
depends_on:
- xpack-mysql
- xpack-redis
- xpack-rabbitmq
xpack-redis:
container_name: xpack-redis
image: redis:7.2.4
hostname: xpack-redis
privileged: true
restart: always
ports:
- 6379:6379
command:
- bash
- -c
- "redis-server --protected-mode yes --logfile redis.log --appendonly no --port 6379 --requirepass redis_6sJZDm"
networks:
- xpack
xpack-rabbitmq:
image: rabbitmq:4.1.2-alpine
container_name: xpack-rabbitmq
privileged: true
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq_Gs123dA
networks:
- xpack
networks:
xpack:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
```
<br>
3. XPack‑MCP‑Market starten
```
docker-compose up -d
```
<br>
4. Im Browser über Port 3000 öffnen
* **Admin‑Login**: http://{IP}:3000/admin-signin
* **Benutzer**: admin
* **Passwort**: 123456789
</details>
<details>
<summary><h4>🔖 Build</h4></summary>
1. Repository klonen
```
git clone https://github.com/xpack-ai/XPack-MCP-Market.git
```
2. Projektordner öffnen
```
cd XPack-MCP-Market
```
### Frontend‑Build
> Voraussetzungen:
> - Node >= 22.x
> - Pnpm >= 10.x
1. Build‑Skript ausführen
```
cd scripts && ./frontend_build.sh && cd ../
```
Der Frontend‑Code wird nach `frontend/out` gebaut.
2. UI starten
```
cd frontend/out && node server.js
```
### Backend‑Build
> Voraussetzungen:
> - Python >= 3.11
#### Mit `uv` (empfohlen)
1. Virtuelle Umgebung erstellen
```
uv venv
```
2. Aktivieren
```
source .venv/bin/activate
```
3. Abhängigkeiten installieren
```
uv pip install -r requirements.txt
```
4. Umgebungsdatei kopieren
```
cp .env.example .env
```
5. Variablen anpassen
```
vi .env
```
6. Admin‑Backend starten
**Vordergrund**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload
```
**Hintergrund**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload &
```
7. API‑→‑MCP‑Service starten
**Vordergrund**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload
```
**Hintergrund**
```
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 ./
```
</details>
# 📸 Screenshots
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/5f71bfcf-c128-42ab-8077-3f2ede549f80" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/d7c0b40d-182e-47a6-bcdf-bd36970f5ee6" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/ae40f659-87ad-42d4-8379-b47a48eb6a29" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/1049f4e5-ec3f-4520-8480-6d6432d6f5d2" />
<br>
# 🧾 Lizenz
XPack‑MCP‑Market steht unter der **Apache‑2.0‑Lizenz**.
Details finden Sie in der Datei [LICENSE](./LICENSE).
<br>
# 📬 Kontakt
- 🌐 Website: [https://xpack.ai](https://xpack.ai)
- 📧 E‑Mail: [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord: [Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 Partner
- [Cursor](https://www.cursor.com/): KI‑gestützter Code‑Editor mit Vorschlägen für die nächste Änderung, tiefem Codeverständnis und Bearbeitung in natürlicher Sprache – für mehr Produktivität.
- [Dify](https://dify.ai/): Führende agentische KI‑Plattform mit Workflows, RAG, Integrationen und Observability; unterstützt zahlreiche LLMs und Plugins.
- [Trae](https://www.trae.ai/): KI‑native IDE mit Chat‑Interface, die „The Real AI Engineer“ verkörpert – erleichtert Code‑Generierung und ‑Assistenz, steigert Qualität und Effizienz.
- [Windsurf](https://windsurf.com/): Neues IDE‑Konzept mit KI‑Features wie „Cascade“, „Windsurf Tab“ und „Memories“ für tiefes Codeverständnis und reibungslosen Flow.
- [Coze](https://www.coze.com/): Nächste Generation der No‑Code‑Plattform von ByteDance für KI‑Apps und Chatbots – mit Workflows, proprietären Daten, Plugins und Wissensbasen.
- [Claude Code](https://www.anthropic.com/claude-code): CLI‑Tool von Anthropic mit Claude Opus 4 direkt im Terminal; Datei‑/Projekt‑übergreifende Änderungen, Befehlsausführung, IDE‑Integration.
- [Flowith](https://flowith.io/): Canvas‑basierter KI‑Arbeitsraum für Produktivität und Deep Work mit Multi‑Thread‑Agenten.
- [OpenManus](https://github.com/FoundationAgents/OpenManus): Open‑Source‑Framework zum Aufbau allgemeiner KI‑Agenten; Multi‑Agent‑Fähigkeiten, LLM‑APIs und Browser‑Automatisierung integriert.
- [Fellou](https://fellou.ai/): „Agentic Browser“, der im Auftrag des Nutzers handelt – automatisiert Recherche und Erkenntnisse, mit Integrationen wie Notion/LinkedIn.
- [Genspark](https://www.genspark.ai/): All‑in‑One‑KI‑Begleiter (AI Slides, Sheets, Chat) mit personalisierten Tools und AI Pods zur Inhaltsgenerierung aus vielfältigen Quellen.
- [TEN](https://github.com/TEN-framework/ten-framework): Open‑Source‑Framework für Echtzeit, multimodale Sprach‑Agenten – inkl. Avatar, MCP‑Integration, Hardware‑Kommunikation und Bildschirmfreigabe‑Erkennung.
- [APIPark](https://apipark.com/): Open‑Source‑Entwicklerportal und All‑in‑One‑LLM‑Gateway – einheitliche APIs, Load‑Balancing, Traffic‑Kontrolle, semantischer Cache, Prompt‑Management und Data Masking.
- [ChatGPT](https://chatgpt.com/): Von OpenAI entwickelter KI‑Chatbot auf Basis großer Sprachmodelle – kontextbewusste Dialoge, Follow‑ups, Integrationen und Produktivitätsfunktionen.
- [LangChain](https://www.langchain.com/): Plattform für robuste Agenten‑/LLM‑Apps (LangGraph, LangSmith, LangGraph Platform) – Code‑Generierung, Automatisierung und AI Search.
- [LEMON AI](https://lemonai.cc/): Erster Full‑Stack, Open‑Source, agentischer KI‑Framework – inkl. integriertem Code‑Interpreter‑VM‑Sandbox für sichere Ausführung.
- [LobeChat](https://lobehub.com/): Persönliches LLM‑Produktivitätstool zum Aufbau persönlicher Agenten und Profi‑Teams; reiches Plugin‑Ökosystem, Wissensbasis, Bild/Audio‑Funktionen.
- [VS Code](https://code.visualstudio.com/): Weit verbreiteter, kostenloser Open‑Source‑Editor mit großer Erweiterbarkeit und KI‑Funktionen wie „Agent Mode“ und intelligenten Edit‑Vorschlägen.
- [XRoute](https://xroute.ai): Vereinheitlichte Schnittstelle für LLMs – bessere Preise, höhere Durchsätze, kein Abo nötig.
- [MemU](https://github.com/NevaMind-AI/memU): Open‑Source‑Memory‑Framework für KI‑Companions.
+330
View File
@@ -0,0 +1,330 @@
# XPack
![b1](https://github.com/user-attachments/assets/3d50cd9a-9d28-4ec8-bb5f-d3668475b49e)
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
**XPack** es el primer marketplace MCP de código abierto del mundo: crea y vende tus propios servicios MCP en cuestión de minutos.
<br>
✨ Con XPack puedes:
- ✅ **Generar con un clic la configuración OpenAPI → MCP**
- 🧾 **Portada y páginas de servicio optimizadas para SEO**
- 💳 **Facturación integrada (por llamada o por uso de tokens)**
- 👥 **Gestión de cuentas de usuario**
- 🛠 **Pagos con Stripe**
- 🔐 **Inicio de sesión con correo y Google OAuth**
Todo es open source bajo **Apache 2.0**, listo para uso comercial.
<br>
# ✨ Inicio rápido
😍 Poner XPack en marcha es facilísimo. Con **un solo comando** tendrás tu marketplace MCP online en 10 minutos.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![Cómo desplegar tu marketplace MCP en 10 minutos](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
# 📸 Funcionalidades
![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1)
![b3](https://github.com/user-attachments/assets/16f74c8a-b35e-40a7-8471-a5736de8e904)
![b4](https://github.com/user-attachments/assets/fc76c215-7544-4267-bc6f-22a719edec00)
![b5](https://github.com/user-attachments/assets/db40ea77-58c3-472d-ba94-35dc9716a980)
<br>
## 🖥️ Requisitos del sistema
### ✅ Hardware recomendado
- **CPU**: 8 núcleos
- **Memoria**: 16 GB
- **Almacenamiento**: 200 GB
- **Sistema operativo**: Linux
- **Arquitectura**: AMD64
### ✅ Mínimos
- **CPU**: 2 núcleos
- **Memoria**: 4 GB
- **Almacenamiento**: 200 GB
- **Sistema operativo**: Linux / macOS
- **Arquitectura**: AMD64 / ARM64
<br>
## 📦 Dependencias de ejecución
**XPack-MCP-Market** requiere los siguientes servicios (autogestionados o en contenedores):
| Componente | Versión mínima |
|---|---|
| **MySQL** | ≥ 5.7.x |
| **Redis** | ≥ 6.2.x |
| **RabbitMQ**| ≥ 4.0 |
Asegúrate de que estos servicios estén disponibles y correctamente configurados antes de arrancar el backend.
<br>
## 💿 Despliegue
😍 Así de simple: con **un comando** tendrás tu marketplace MCP listo en 10 minutos.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
<details>
<summary><h4>🔖 Despliegue con Docker-Compose</h4></summary>
Para este método, instala [Docker](https://docs.docker.com/engine/install/) y [Docker Compose](https://docs.docker.com/compose/install/standalone/).
1. Edita `docker-compose.yml`
```
vi docker-compose.yml
```
<br>
2. Ajusta la configuración (archivo de referencia: [docker-compose.yml](https://github.com/xpack-ai/XPack-MCP-Market/blob/main/scripts/docker-compose.yml))
```
version: '3'
services:
xpack-mysql:
image: mysql:8.0.37
privileged: true
restart: always
container_name: xpack-mysql
hostname: xpack-mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql_ZTdhRB
- MYSQL_DATABASE=xpack
volumes:
- /var/lib/xpack/mysql:/var/lib/mysql
networks:
- xpack
xpack-mcp-market:
image: xpackai/xpack-mcp-market
container_name: xpack-mcp-market
privileged: true
restart: always
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
depends_on:
- xpack-mysql
- xpack-redis
- xpack-rabbitmq
xpack-redis:
container_name: xpack-redis
image: redis:7.2.4
hostname: xpack-redis
privileged: true
restart: always
ports:
- 6379:6379
command:
- bash
- -c
- "redis-server --protected-mode yes --logfile redis.log --appendonly no --port 6379 --requirepass redis_6sJZDm"
networks:
- xpack
xpack-rabbitmq:
image: rabbitmq:4.1.2-alpine
container_name: xpack-rabbitmq
privileged: true
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq_Gs123dA
networks:
- xpack
networks:
xpack:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
```
<br>
3. Arranca XPack-MCP-Market
```
docker-compose up -d
```
<br>
4. Accede por el puerto 3000 en el navegador
* **Inicio de sesión admin**: http://{IP}:3000/admin-signin
* **Usuario**: admin
* **Contraseña**: 123456789
</details>
<details>
<summary><h4>🔖 Compilación (Build)</h4></summary>
1. Clona el repositorio
```
git clone https://github.com/xpack-ai/XPack-MCP-Market.git
```
2. Entra al proyecto
```
cd XPack-MCP-Market
```
### Build del frontend
> Requisitos:
> - Node >= 22.x
> - Pnpm >= 10.x
1. Ejecuta el script de build
```
cd scripts && ./frontend_build.sh && cd ../
```
El código compilado quedará en `frontend/out`.
2. Inicia la interfaz
```
cd frontend/out && node server.js
```
### Build del backend
> Requisitos:
> - Python >= 3.11
#### Con `uv` (recomendado)
1. Crea el entorno virtual
```
uv venv
```
2. Actívalo
```
source .venv/bin/activate
```
3. Instala dependencias
```
uv pip install -r requirements.txt
```
4. Copia el archivo de entorno
```
cp .env.example .env
```
5. Edita las variables
```
vi .env
```
6. Inicia el servicio de administración
**Primer plano**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload
```
**Segundo plano**
````
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload &
```
7. Inicia el servicio API → MCP
**Primer plano**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload
```
**Segundo plano**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload &
```
### Build de Docker
```
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./
```
</details>
# 📸 Capturas
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/5f71bfcf-c128-42ab-8077-3f2ede549f80" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/d7c0b40d-182e-47a6-bcdf-bd36970f5ee6" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/ae40f659-87ad-42d4-8379-b47a48eb6a29" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/1049f4e5-ec3f-4520-8480-6d6432d6f5d2" />
<br>
# 🧾 Licencia
XPack-MCP-Market se publica bajo **Apache 2.0**.
Consulta [LICENSE](./LICENSE) para más detalles.
<br>
# 📬 Contacto
- 🌐 Sitio web: [https://xpack.ai](https://xpack.ai)
- 📧 Correo: [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord: [Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 Socios
- [Cursor](https://www.cursor.com/): editor de código con IA integrada en el flujo de trabajo; sugerencias contextuales, comprensión profunda del repositorio y edición en lenguaje natural.
- [Dify](https://dify.ai/): plataforma líder para desarrollo de IA agentica; cubre flujos de agentes, RAG, integraciones y observabilidad; compatible con múltiples LLMs y plugins.
- [Trae](https://www.trae.ai/): IDE nativo de IA que apunta a “The Real AI Engineer”; interfaz conversacional con generación y asistencia de código para mejorar calidad y eficiencia.
- [Windsurf](https://windsurf.com/): nuevo IDE impulsado por IA con “Cascade”, “Windsurf Tab” y “Memories” para un entendimiento profundo del código y un flujo continuo.
- [Coze](https://www.coze.com/): plataforma de ByteDance para crear apps y chatbots con IA sin código; workflows, datos propios, plugins y bases de conocimiento.
- [Claude Code](https://www.anthropic.com/claude-code): herramienta CLI de Anthropic que integra Claude Opus 4 en la terminal; edición multiarchivo, ejecución de comandos e integración con IDEs y test.
- [Flowith](https://flowith.io/): espacio de trabajo de creación con interfaz de lienzo y agentes avanzados; optimiza productividad y trabajo profundo.
- [OpenManus](https://github.com/FoundationAgents/OpenManus): framework open source para construir agentes generales; multiactor y con integración de APIs LLM y automatización de navegador.
- [Fellou](https://fellou.ai/): “navegador agéntico” que actúa por ti; automatiza la recolección de información y entrega de insights; integra con Notion/LinkedIn.
- [Genspark](https://www.genspark.ai/): compañero de IA todo en uno (AI Slides, Sheets, Chat); herramientas personalizadas y AI Pods para generar contenido desde múltiples fuentes.
- [TEN](https://github.com/TEN-framework/ten-framework): framework open source para agentes de voz multimodales en tiempo real; avatar, integración MCP, comunicación hardware y detección de pantalla.
- [APIPark](https://apipark.com/): portal de desarrolladores API open source y pasarela LLM todo en uno; API unificadas, balanceo de carga, control de tráfico, caché semántico, gestión de prompts y enmascaramiento de datos.
- [ChatGPT](https://chatgpt.com/): chatbot de OpenAI basado en LLMs; diálogo natural, comprensión de contexto, seguimiento de conversación e integración con múltiples plataformas.
- [LangChain](https://www.langchain.com/): plataforma para desarrollar agentes y apps LLM confiables (LangGraph, LangSmith, LangGraph Platform); generación de código, automatización y búsqueda con IA.
- [LEMON AI](https://lemonai.cc/): primer framework agentico full‑stack, open source; incluye sandbox VM del intérprete de código para ejecución segura.
- [LobeChat](https://lobehub.com/): herramienta de productividad LLM personal; permite crear agentes personales y equipos profesionales; plugins, base de conocimiento, visión y voz.
- [VS Code](https://code.visualstudio.com/): editor de código open source extensible, con funciones de IA como sugerencias inteligentes y “modo agente”.
- [XRoute](https://xroute.ai): interfaz unificada para LLMs; mejores precios, mejor throughput, sin suscripción.
- [MemU](https://github.com/NevaMind-AI/memU): framework de memoria open source para compañeros de IA.
+329
View File
@@ -0,0 +1,329 @@
# XPack
![b1](https://github.com/user-attachments/assets/3d50cd9a-9d28-4ec8-bb5f-d3668475b49e)
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
**XPack** est le premier marketplace MCP open‑source au monde. Créez et vendez vos services MCP en quelques minutes.
<br>
✨ Avec XPack, vous pouvez :
- ✅ **Générer en un clic la configuration OpenAPI → MCP**
- 🧾 **Page d’accueil et pages service optimisées pour le SEO**
- 💳 **Facturation intégrée (par appel ou à l’usage de jetons)**
- 👥 **Gestion des comptes utilisateurs**
- 🛠 **Prise en charge des paiements Stripe**
- 🔐 **Connexion via e‑mail et Google OAuth**
Tout est open source sous **Apache 2.0**, prêt pour un usage commercial.
<br>
# ✨ Démarrage rapide
😍 Déployer XPack est ultra simple. **Une seule commande** suffit pour mettre votre marketplace MCP en ligne en 10 minutes.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![Déployer votre marketplace MCP en 10 minutes](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
# 📸 Fonctionnalités
![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1)
![b3](https://github.com/user-attachments/assets/16f74c8a-b35e-40a7-8471-a5736de8e904)
![b4](https://github.com/user-attachments/assets/fc76c215-7544-4267-bc6f-22a719edec00)
![b5](https://github.com/user-attachments/assets/db40ea77-58c3-472d-ba94-35dc9716a980)
<br>
## 🖥️ Configuration système requise
### ✅ Configuration recommandée
- **CPU** : 8 cœurs
- **Mémoire** : 16 Go
- **Stockage** : 200 Go
- **Système** : Linux
- **Architecture** : AMD64
### ✅ Configuration minimale
- **CPU** : 2 cœurs
- **Mémoire** : 4 Go
- **Stockage** : 200 Go
- **Système** : Linux / macOS
- **Architecture** : AMD64 / ARM64
<br>
## 📦 Dépendances d’exécution
**XPack‑MCP‑Market** nécessite les services suivants (auto‑hébergés ou en conteneur) :
| Composant | Version minimale |
|---|---|
| **MySQL** | ≥ 5.7.x |
| **Redis** | ≥ 6.2.x |
| **RabbitMQ**| ≥ 4.0 |
Assurez‑vous que ces services sont disponibles et correctement configurés avant de lancer le backend.
<br>
## 💿 Déploiement
😍 Tellement simple : **une commande** pour déployer votre marketplace MCP en 10 minutes.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
<details>
<summary><h4>🔖 Déploiement avec Docker‑Compose</h4></summary>
Pour cette méthode, installez [Docker](https://docs.docker.com/engine/install/) et [Docker Compose](https://docs.docker.com/compose/install/standalone/).
1. Éditez `docker-compose.yml`
```
vi docker-compose.yml
```
<br>
2. Modifiez la configuration (exemple de référence : [docker-compose.yml](https://github.com/xpack-ai/XPack-MCP-Market/blob/main/scripts/docker-compose.yml))
```
version: '3'
services:
xpack-mysql:
image: mysql:8.0.37
privileged: true
restart: always
container_name: xpack-mysql
hostname: xpack-mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql_ZTdhRB
- MYSQL_DATABASE=xpack
volumes:
- /var/lib/xpack/mysql:/var/lib/mysql
networks:
- xpack
xpack-mcp-market:
image: xpackai/xpack-mcp-market
container_name: xpack-mcp-market
privileged: true
restart: always
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
depends_on:
- xpack-mysql
- xpack-redis
- xpack-rabbitmq
xpack-redis:
container_name: xpack-redis
image: redis:7.2.4
hostname: xpack-redis
privileged: true
restart: always
ports:
- 6379:6379
command:
- bash
- -c
- "redis-server --protected-mode yes --logfile redis.log --appendonly no --port 6379 --requirepass redis_6sJZDm"
networks:
- xpack
xpack-rabbitmq:
image: rabbitmq:4.1.2-alpine
container_name: xpack-rabbitmq
privileged: true
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq_Gs123dA
networks:
- xpack
networks:
xpack:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
```
<br>
3. Démarrez XPack‑MCP‑Market
```
docker-compose up -d
```
<br>
4. Accédez à l’interface sur le port 3000
* **Connexion admin** : http://{IP}:3000/admin-signin
* **Utilisateur** : admin
* **Mot de passe** : 123456789
</details>
<details>
<summary><h4>🔖 Build</h4></summary>
1. Clonez le dépôt
```
git clone https://github.com/xpack-ai/XPack-MCP-Market.git
```
2. Ouvrez le projet
```
cd XPack-MCP-Market
```
### Build frontend
> Prérequis :
> - Node >= 22.x
> - Pnpm >= 10.x
1. Lancez le script de build
```
cd scripts && ./frontend_build.sh && cd ../
```
Le frontend compilé est disponible dans `frontend/out`.
2. Démarrez l’interface
```
cd frontend/out && node server.js
```
### Build backend
> Prérequis :
> - Python >= 3.11
#### Avec `uv` (recommandé)
1. Créez l’environnement virtuel
```
uv venv
```
2. Activez‑le
```
source .venv/bin/activate
```
3. Installez les dépendances
```
uv pip install -r requirements.txt
```
4. Copiez le fichier d’environnement
```
cp .env.example .env
```
5. Modifiez les variables
```
vi .env
```
6. Démarrez le service d’administration
**Premier plan**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload
```
**Arrière‑plan**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload &
```
7. Démarrez le service API → MCP
**Premier plan**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload
```
**Arrière‑plan**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload &
```
### Build Docker
```
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./
```
</details>
# 📸 Captures d’écran
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/5f71bfcf-c128-42ab-8077-3f2ede549f80" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/d7c0b40d-182e-47a6-bcdf-bd36970f5ee6" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/ae40f659-87ad-42d4-8379-b47a48eb6a29" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/1049f4e5-ec3f-4520-8480-6d6432d6f5d2" />
<br>
# 🧾 Licence
XPack‑MCP‑Market est publié sous **Apache 2.0**.
Pour plus d’informations, consultez le fichier [LICENSE](./LICENSE).
<br>
# 📬 Contact
- 🌐 Site web : [https://xpack.ai](https://xpack.ai)
- 📧 E‑mail : [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord : [Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 Partenaires
- [Cursor](https://www.cursor.com/) : éditeur de code propulsé par l’IA, intégré au flux de travail, avec propositions d’édition, compréhension profonde du code et édition en langage naturel.
- [Dify](https://dify.ai/) : principale plateforme de développement d’IA agentique, couvrant workflows d’agents, RAG, intégrations et observabilité, avec prise en charge de nombreux LLM et plugins.
- [Trae](https://www.trae.ai/) : IDE natif IA visant “The Real AI Engineer”, interface conversationnelle, génération et assistance de code pour améliorer qualité et productivité.
- [Windsurf](https://windsurf.com/) : IDE nouvelle génération exploitant l’IA avec “Cascade”, “Windsurf Tab” et “Memories” pour une compréhension profonde et un flux ininterrompu.
- [Coze](https://www.coze.com/) : plateforme ByteDance pour créer des chatbots et apps IA sans code, avec workflows, données propriétaires, plugins, bases de connaissances et modèles prêts à l’emploi.
- [Claude Code](https://www.anthropic.com/claude-code) : outil CLI d’Anthropic intégrant Claude Opus 4 dans le terminal, avec édition multi‑fichiers, exécution de commandes et intégration IDE/tests.
- [Flowith](https://flowith.io/) : espace de création basé sur un canvas multi‑fils, optimisé pour la productivité et le deep work via des agents avancés.
- [OpenManus](https://github.com/FoundationAgents/OpenManus) : framework open‑source pour bâtir des agents IA généraux, multi‑agents, intégrable avec des API LLM et l’automatisation navigateur.
- [Fellou](https://fellou.ai/) : “navigateur agentique” qui agit pour l’utilisateur, automatisant la collecte d’infos et la synthèse, avec intégrations Notion/LinkedIn.
- [Genspark](https://www.genspark.ai/) : compagnon IA tout‑en‑un (AI Slides, Sheets, Chat), outils personnalisés et AI Pods pour générer du contenu à partir de multiples sources.
- [TEN](https://github.com/TEN-framework/ten-framework) : framework open‑source pour agents vocaux multimodaux en temps réel, avec avatar, intégration MCP, communication matérielle et détection d’écran.
- [APIPark](https://apipark.com/) : portail développeur API open‑source et passerelle LLM tout‑en‑un, avec API unifiées, répartition de charge, contrôle de trafic, cache sémantique, gestion de prompts et masquage de données.
- [ChatGPT](https://chatgpt.com/) : chatbot d’OpenAI fondé sur des LLM, dialogues naturels, compréhension du contexte, intégrations variées et fonctions avancées de productivité.
- [LangChain](https://www.langchain.com/) : plateforme robuste pour développer agents et apps LLM (LangGraph, LangSmith, LangGraph Platform), pour génération de code, automatisation et recherche IA.
- [LEMON AI](https://lemonai.cc/) : premier framework IA agentique full‑stack open‑source, avec bac à sable VM d’interpréteur de code pour une exécution sécurisée.
- [LobeChat](https://lobehub.com/) : outil de productivité LLM personnel, pour créer des agents personnels/équipes, avec vaste écosystème de plugins, base de connaissances et fonctions image/voix.
- [VS Code](https://code.visualstudio.com/) : éditeur de code open‑source très populaire et extensible, compatible avec de nombreuses langues et doté de fonctions IA comme le “mode agent”.
- [XRoute](https://xroute.ai) : interface unifiée pour les LLM, meilleurs prix, meilleur débit, sans abonnement.
- [MemU](https://github.com/NevaMind-AI/memU) : framework mémoire open‑source pour compagnons IA.
+329
View File
@@ -0,0 +1,329 @@
# XPack
![b1](https://github.com/user-attachments/assets/3d50cd9a-9d28-4ec8-bb5f-d3668475b49e)
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
**XPack** は世界初のオープンソース MCP マーケットプレイスです。数分で自分の MCP サービスを作成して販売できます。
<br>
✨ XPack でできること
- ✅ **OpenAPI → MCP サービス設定をワンクリック生成**
- 🧾 **SEO に強いトップページ + MCP サービスページ**
- 💳 **内蔵課金(リクエスト数 / トークン消費ベース)**
- 👥 **ユーザーアカウント管理**
- 🛠 **Stripe 決済対応**
- 🔐 **Email & Google OAuth サインイン対応**
すべて **Apache 2.0** のオープンソース。商用利用も安心です。
<br>
# ✨ クイックスタート
😍 導入はとても簡単。**1 行のコマンド**で、10 分であなたの MCP マーケットを立ち上げられます。
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![10分で MCP マーケットをデプロイする方法](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
# 📸 機能
![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1)
![b3](https://github.com/user-attachments/assets/16f74c8a-b35e-40a7-8471-a5736de8e904)
![b4](https://github.com/user-attachments/assets/fc76c215-7544-4267-bc6f-22a719edec00)
![b5](https://github.com/user-attachments/assets/db40ea77-58c3-472d-ba94-35dc9716a980)
<br>
## 🖥️ システム要件
### ✅ 推奨ハードウェア
- **CPU**: 8 コア
- **メモリ**: 16 GB
- **ストレージ**: 200 GB
- **OS**: Linux
- **アーキテクチャ**: AMD64
### ✅ 最低要件
- **CPU**: 2 コア
- **メモリ**: 4 GB
- **ストレージ**: 200 GB
- **OS**: Linux / macOS
- **アーキテクチャ**: AMD64 / ARM64
<br>
## 📦 実行時依存関係
**XPack-MCP-Market** を実行するには、以下のサービス(セルフホストまたはコンテナ)が必要です。
| コンポーネント | 最低バージョン |
|---|---|
| **MySQL** | ≥ 5.7.x |
| **Redis** | ≥ 6.2.x |
| **RabbitMQ**| ≥ 4.0 |
これらのサービスが利用可能で、正しく設定されていることを確認してください。
<br>
## 💿 デプロイ
😍 導入はとても簡単。**1 行のコマンド**で、10 分であなたの MCP マーケットを立ち上げられます。
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
<details>
<summary><h4>🔖 Docker-Compose デプロイ</h4></summary>
この方法でインストールするには、[Docker](https://docs.docker.com/engine/install/) と [Docker Compose](https://docs.docker.com/compose/install/standalone/) が必要です。
1. `docker-compose.yml` を編集
```
vi docker-compose.yml
```
<br>
2. 設定を変更します。元のファイルは [docker-compose.yml](https://github.com/xpack-ai/XPack-MCP-Market/blob/main/scripts/docker-compose.yml) を参照してください。
```
version: '3'
services:
xpack-mysql:
image: mysql:8.0.37
privileged: true
restart: always
container_name: xpack-mysql
hostname: xpack-mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql_ZTdhRB
- MYSQL_DATABASE=xpack
volumes:
- /var/lib/xpack/mysql:/var/lib/mysql
networks:
- xpack
xpack-mcp-market:
image: xpackai/xpack-mcp-market
container_name: xpack-mcp-market
privileged: true
restart: always
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
depends_on:
- xpack-mysql
- xpack-redis
- xpack-rabbitmq
xpack-redis:
container_name: xpack-redis
image: redis:7.2.4
hostname: xpack-redis
privileged: true
restart: always
ports:
- 6379:6379
command:
- bash
- -c
- "redis-server --protected-mode yes --logfile redis.log --appendonly no --port 6379 --requirepass redis_6sJZDm"
networks:
- xpack
xpack-rabbitmq:
image: rabbitmq:4.1.2-alpine
container_name: xpack-rabbitmq
privileged: true
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq_Gs123dA
networks:
- xpack
networks:
xpack:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
```
<br>
3. XPack-MCP-Market を起動
```
docker-compose up -d
```
<br>
4. ブラウザでポート 3000 にアクセス
* **管理画面ログイン**: http://{IP}:3000/admin-signin
* **管理ユーザー**: admin
* **管理パスワード**: 123456789
</details>
<details>
<summary><h4>🔖 ビルド</h4></summary>
1. リポジトリをクローン
```
git clone https://github.com/xpack-ai/XPack-MCP-Market.git
```
2. プロジェクトへ移動
```
cd XPack-MCP-Market
```
### フロントエンドビルド
> 要件:
> - Node >= 22.x
> - Pnpm >= 10.x
1. ビルドスクリプトを実行
```
cd scripts && ./frontend_build.sh && cd ../
```
ビルド後、フロントエンドは `frontend/out` に出力されます。
2. UI を起動
```
cd frontend/out && node server.js
```
### バックエンドビルド
> 要件:
> - Python >= 3.11
#### `uv` を使用(推奨)
1. 仮想環境を作成
```
uv venv
```
2. 仮想環境を有効化
```
source .venv/bin/activate
```
3. 依存関係をインストール
```
uv pip install -r requirements.txt
```
4. 環境変数ファイルをコピー
```
cp .env.example .env
```
5. 環境変数を編集
```
vi .env
```
6. 管理用バックエンドサービスを起動
**フォアグラウンド**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload
```
**バックグラウンド**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload &
```
7. API → MCP サービスを起動
**フォアグラウンド**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload
```
**バックグラウンド**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload &
```
### Docker ビルド
```
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./
```
</details>
# 📸 スクリーンショット
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/5f71bfcf-c128-42ab-8077-3f2ede549f80" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/d7c0b40d-182e-47a6-bcdf-bd36970f5ee6" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/ae40f659-87ad-42d4-8379-b47a48eb6a29" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/1049f4e5-ec3f-4520-8480-6d6432d6f5d2" />
<br>
# 🧾 ライセンス
XPack-MCP-Market は **Apache 2.0** ライセンスで提供されています。
詳細は [LICENSE](./LICENSE) をご覧ください。
<br>
# 📬 お問い合わせ
- 🌐 Website: [https://xpack.ai](https://xpack.ai)
- 📧 Email: [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord:[Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 パートナー
- [Cursor](https://www.cursor.com/): Cursor は AI をエディタに統合し、次の編集候補、コードベースの深い理解、自然言語での編集などを提供する AI コードエディタです。開発効率を高めます。
- [Dify](https://dify.ai/): Dify はエージェンティック AI 開発プラットフォームのリーダーで、エージェントワークフロー、RAG、各種統合、可観測性など、AI アプリ構築に必要な一式を提供します。多数の LLM とプラグインに対応。
- [Trae](https://www.trae.ai/): Trae は「真の AI エンジニア」を体現することを目指した AI ネイティブ IDE。チャットベースの UI でコード生成や支援を行い、品質と生産性を向上させます。
- [Windsurf](https://windsurf.com/): Windsurf は AI を活用した新しい IDE。深いコード理解のための「Cascade」、賢い補完「Windsurf Tab」、コードベースの記憶「Memories」などを備え、開発の流れを途切れさせません。
- [Coze](https://www.coze.com/): Coze は ByteDance の次世代 AI アプリ/チャットボット開発プラットフォーム。ノーコードのビルダー、ワークフロー、独自データ接続、プラグイン/ナレッジベースで簡単に強力なボットを作成できます。
- [Claude Code](https://www.anthropic.com/claude-code): Claude Code は Anthropic の CLI ツール。ターミナルに Claude Opus 4 を組み込み、リポジトリ横断編集、コマンド実行、IDE 連携、テスト連携などを実現します。
- [Flowith](https://flowith.io/): Flowith はキャンバス型 UI の AI ワークスペース。マルチスレッドのエージェント体験で知識変換と深い作業に最適化し、従来のチャット型を越える体験を提供します。
- [OpenManus](https://github.com/FoundationAgents/OpenManus): OpenManus は汎用 AI エージェント構築のための OSS フレームワーク。複数エージェントに対応し、LLM API やブラウザ自動化ツールと統合可能です。
- [Fellou](https://fellou.ai/): Fellou は行動まで担う「エージェンティックブラウザ」。情報収集から洞察提示までを自動化し、Notion/LinkedIn などとも連携します。
- [Genspark](https://www.genspark.ai/): Genspark は AI Slides / Sheets / Chat などを備えたオールインワンの AI コンパニオン。AI Pods による多様なコンテンツ生成が可能です。
- [TEN](https://github.com/TEN-framework/ten-framework): TEN(The Embodied Narrator)はリアルタイム・マルチモーダル音声エージェントの OSS。アバター、MCP 連携、ハードウェア通信、画面共有検出などを備えます。
- [APIPark](https://apipark.com/): APIPark は OSS のエンタープライズ API デベロッパーポータルかつオールインワン LLM ゲートウェイ。統一 API、負荷分散、トラフィック制御、セマンティックキャッシュ、プロンプト管理、マスキング等で安全・安定運用を実現。
- [ChatGPT](https://chatgpt.com/): ChatGPT は OpenAI の対話型 AI。高度な言語理解と生成で、追質問対応や各種プラットフォーム統合を通じて生産性を高めます。
- [LangChain](https://www.langchain.com/): LangChain は堅牢なエージェント/LLM アプリ開発プラットフォーム。LangGraph / LangSmith / LangGraph Platform により、コード生成、自動化、AI 検索を横断的に支援します。
- [LEMON AI](https://lemonai.cc/): Lemon AI はフルスタックなオープンソース・エージェンティック AI フレームワーク。安全な実行のための組み込み Code Interpreter VM サンドボックスを備えます。
- [LobeChat](https://lobehub.com/): LobeHub の LobeChat は個人向け LLM 生産性ツール。個人エージェント/チーム構築、豊富なプラグイン、知識ベース、画像/音声対応などを提供します。
- [VS Code](https://code.visualstudio.com/): Visual Studio Code は拡張性が高い OSS エディタ。多言語対応と AI 機能(次の編集候補、エージェントモード等)を備えます。
- [XRoute](https://xroute.ai): 複数 LLM を単一インターフェースで扱えるゲートウェイ。より良い価格とスループット、サブスクリプション不要を提供します。
- [MemU](https://github.com/NevaMind-AI/memU): MemU は AI コンパニオン向けのオープンソース記憶フレームワークです。
+329
View File
@@ -0,0 +1,329 @@
# XPack
![b1](https://github.com/user-attachments/assets/3d50cd9a-9d28-4ec8-bb5f-d3668475b49e)
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
**XPack** 는 세계 최초의 오픈 소스 MCP 마켓플레이스입니다. 몇 분 만에 나만의 MCP 서비스를 만들고 판매하세요.
<br>
✨ XPack으로 할 수 있는 일
- ✅ **OpenAPI → MCP 서비스 설정을 원클릭으로 생성**
- 🧾 **SEO 친화적 홈페이지 + 서비스 상세 페이지**
- 💳 **내장 과금(요청 수 / 토큰 사용량 기준)**
- 👥 **사용자 계정 관리**
- 🛠 **Stripe 결제 지원**
- 🔐 **이메일 & Google OAuth 로그인 지원**
모든 코드는 **Apache 2.0** 라이선스로 공개되어 있으며, 상업적 사용이 가능합니다.
<br>
# ✨ 빠른 시작
😍 정말 간단합니다. **한 줄 명령어**로 10분 만에 MCP 마켓을 배포할 수 있습니다.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![10분 만에 MCP 마켓 배포하기](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
# 📸 기능
![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1)
![b3](https://github.com/user-attachments/assets/16f74c8a-b35e-40a7-8471-a5736de8e904)
![b4](https://github.com/user-attachments/assets/fc76c215-7544-4267-bc6f-22a719edec00)
![b5](https://github.com/user-attachments/assets/db40ea77-58c3-472d-ba94-35dc9716a980)
<br>
## 🖥️ 시스템 요구 사항
### ✅ 권장 하드웨어
- **CPU**: 8코어
- **메모리**: 16 GB
- **스토리지**: 200 GB
- **운영체제**: Linux
- **아키텍처**: AMD64
### ✅ 최소 사양
- **CPU**: 2코어
- **메모리**: 4 GB
- **스토리지**: 200 GB
- **운영체제**: Linux / macOS
- **아키텍처**: AMD64 / ARM64
<br>
## 📦 런타임 의존성
**XPack-MCP-Market** 실행에는 다음 서비스가 필요합니다(셀프 호스팅 또는 컨테이너).
| 구성 요소 | 최소 버전 |
|---|---|
| **MySQL** | ≥ 5.7.x |
| **Redis** | ≥ 6.2.x |
| **RabbitMQ**| ≥ 4.0 |
실행 전에 위 서비스가 준비되어 있고 올바르게 설정되었는지 확인하세요.
<br>
## 💿 배포
😍 **한 줄 명령어**로 10분 만에 MCP 마켓을 배포할 수 있습니다.
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
<details>
<summary><h4>🔖 Docker-Compose 배포</h4></summary>
이 방법을 사용하려면 [Docker](https://docs.docker.com/engine/install/) 와 [Docker Compose](https://docs.docker.com/compose/install/standalone/) 가 필요합니다.
1. `docker-compose.yml` 편집
```
vi docker-compose.yml
```
<br>
2. 설정 변경(원본 예시는 [docker-compose.yml](https://github.com/xpack-ai/XPack-MCP-Market/blob/main/scripts/docker-compose.yml) 참고)
```
version: '3'
services:
xpack-mysql:
image: mysql:8.0.37
privileged: true
restart: always
container_name: xpack-mysql
hostname: xpack-mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql_ZTdhRB
- MYSQL_DATABASE=xpack
volumes:
- /var/lib/xpack/mysql:/var/lib/mysql
networks:
- xpack
xpack-mcp-market:
image: xpackai/xpack-mcp-market
container_name: xpack-mcp-market
privileged: true
restart: always
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
depends_on:
- xpack-mysql
- xpack-redis
- xpack-rabbitmq
xpack-redis:
container_name: xpack-redis
image: redis:7.2.4
hostname: xpack-redis
privileged: true
restart: always
ports:
- 6379:6379
command:
- bash
- -c
- "redis-server --protected-mode yes --logfile redis.log --appendonly no --port 6379 --requirepass redis_6sJZDm"
networks:
- xpack
xpack-rabbitmq:
image: rabbitmq:4.1.2-alpine
container_name: xpack-rabbitmq
privileged: true
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq_Gs123dA
networks:
- xpack
networks:
xpack:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
```
<br>
3. XPack-MCP-Market 시작
```
docker-compose up -d
```
<br>
4. 브라우저에서 3000 포트로 접속
* **관리자 로그인 주소**: http://{IP}:3000/admin-signin
* **관리자 계정**: admin
* **관리자 비밀번호**: 123456789
</details>
<details>
<summary><h4>🔖 빌드</h4></summary>
1. 리포지토리 클론
```
git clone https://github.com/xpack-ai/XPack-MCP-Market.git
```
2. 프로젝트 디렉토리로 이동
```
cd XPack-MCP-Market
```
### 프런트엔드 빌드
> 요구 사항:
> - Node >= 22.x
> - Pnpm >= 10.x
1. 빌드 스크립트 실행
```
cd scripts && ./frontend_build.sh && cd ../
```
빌드가 완료되면 `frontend/out` 디렉터리에 생성됩니다.
2. UI 서버 시작
```
cd frontend/out && node server.js
```
### 백엔드 빌드
> 요구 사항:
> - Python >= 3.11
#### `uv` 사용(권장)
1. 가상 환경 생성
```
uv venv
```
2. 가상 환경 활성화
```
source .venv/bin/activate
```
3. 의존성 설치
```
uv pip install -r requirements.txt
```
4. 환경 변수 파일 복사
```
cp .env.example .env
```
5. 환경 변수 편집
```
vi .env
```
6. 관리자 백엔드 서비스 시작
**포그라운드**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload
```
**백그라운드**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload &
```
7. API → MCP 서비스 시작
**포그라운드**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload
```
**백그라운드**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload &
```
### Docker 빌드
```
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./
```
</details>
# 📸 스크린샷
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/5f71bfcf-c128-42ab-8077-3f2ede549f80" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/d7c0b40d-182e-47a6-bcdf-bd36970f5ee6" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/ae40f659-87ad-42d4-8379-b47a48eb6a29" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/1049f4e5-ec3f-4520-8480-6d6432d6f5d2" />
<br>
# 🧾 라이선스
XPack-MCP-Market 는 **Apache 2.0** 라이선스로 배포됩니다.
자세한 내용은 [LICENSE](./LICENSE) 를 확인하세요.
<br>
# 📬 문의
- 🌐 Website: [https://xpack.ai](https://xpack.ai)
- 📧 Email: [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord: [Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 파트너
- [Cursor](https://www.cursor.com/): Cursor는 AI를 에디터에 직접 통합하여 다음 편집 제안, 코드베이스 심층 이해, 자연어 편집 등을 제공하는 AI 코드 에디터입니다.
- [Dify](https://dify.ai/): Dify는 에이전틱 AI 개발 플랫폼으로, 에이전트 워크플로우, RAG, 통합, 가시성 등 AI 앱 구축에 필요한 모든 것을 제공합니다. 다양한 LLM과 플러그인을 지원합니다.
- [Trae](https://www.trae.ai/): Trae는 “The Real AI Engineer”를 표방하는 AI 네이티브 IDE로, 챗 기반 인터페이스로 코드 생성/도움을 제공하며 품질과 효율을 높입니다.
- [Windsurf](https://windsurf.com/): Windsurf는 AI 기반의 새로운 IDE입니다. 깊은 코드 이해를 위한 “Cascade”, 지능형 자동완성 “Windsurf Tab”, 코드 기억 “Memories” 등을 제공합니다.
- [Coze](https://www.coze.com/): Coze는 ByteDance의 차세대 AI 애플리케이션/챗봇 개발 플랫폼으로, 노코드 빌더와 워크플로우, 독자 데이터 연동, 플러그인·지식베이스로 손쉽게 강력한 봇을 만들 수 있습니다.
- [Claude Code](https://www.anthropic.com/claude-code): Claude Code는 터미널에 Claude Opus 4를 내장하는 CLI 도구로, 파일 편집/명령 실행/다중 파일 변경/IDE 통합을 지원합니다.
- [Flowith](https://flowith.io/): Flowith는 캔버스 기반 UI의 AI 작업 공간으로, 멀티 스레드형 에이전트 경험을 통해 지식 변환과 몰입 작업을 최적화합니다.
- [OpenManus](https://github.com/FoundationAgents/OpenManus): OpenManus는 범용 AI 에이전트 구축을 위한 오픈소스 프레임워크입니다. 다중 에이전트와 LLM/브라우저 자동화를 통합할 수 있습니다.
- [Fellou](https://fellou.ai/): Fellou는 사용자 대신 행동하는 “에이전틱 브라우저”로, 정보 수집부터 인사이트 제공까지 자동화하며 Notion/LinkedIn 등과도 연동됩니다.
- [Genspark](https://www.genspark.ai/): Genspark는 AI Slides/Sheets/Chat을 포함한 올인원 AI 동반자 제품으로, AI Pods를 통해 다양한 소스에서 콘텐츠를 생성합니다.
- [TEN](https://github.com/TEN-framework/ten-framework): TEN(The Embodied Narrator)은 실시간 멀티모달 음성 에이전트를 위한 오픈소스 프레임워크로, 아바타, MCP 연동, 하드웨어 통신, 화면 공유 감지 등을 제공합니다.
- [APIPark](https://apipark.com/): APIPark는 오픈소스 엔터프라이즈 API 개발자 포털이자 올인원 LLM 게이트웨이로, 통합 API 시그니처, 로드밸런싱, 트래픽 제어, 의미적 캐시, 프롬프트 관리, 데이터 마스킹 등을 지원합니다.
- [ChatGPT](https://chatgpt.com/): ChatGPT는 OpenAI가 개발한 대화형 AI로, 맥락 이해와 생성 능력을 바탕으로 후속 질문 처리와 다양한 플랫폼 통합을 지원합니다.
- [LangChain](https://www.langchain.com/): LangChain은 신뢰성 있는 에이전트/LLM 앱 개발 플랫폼으로, LangGraph/LangSmith/LangGraph Platform을 통해 코드 생성, 자동화, AI 검색을 지원합니다.
- [LEMON AI](https://lemonai.cc/): Lemon AI는 풀스택 오픈소스 에이전틱 AI 프레임워크로, 안전한 실행을 위한 내장 Code Interpreter VM 샌드박스를 제공합니다.
- [LobeChat](https://lobehub.com/): LobeChat은 개인 LLM 생산성 도구로, 개인 에이전트/전문 팀 구축, 플러그인 생태계, 지식 베이스, 이미지/음성 기능 등을 제공합니다.
- [VS Code](https://code.visualstudio.com/): Visual Studio Code는 확장성이 뛰어난 오픈소스 코드 에디터로, 다양한 언어를 지원하고 지능형 다음 편집 제안 및 “에이전트 모드” 같은 AI 기능을 갖추고 있습니다.
- [XRoute](https://xroute.ai): 여러 LLM을 단일 인터페이스로 제공하는 게이트웨이로, 더 나은 가격/처리량을 제공하며 구독이 필요 없습니다.
- [MemU](https://github.com/NevaMind-AI/memU): MemU는 AI 컴패니언을 위한 오픈소스 메모리 프레임워크입니다.
+12
View File
@@ -4,6 +4,18 @@
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
+330
View File
@@ -0,0 +1,330 @@
# XPack
![b1](https://github.com/user-attachments/assets/3d50cd9a-9d28-4ec8-bb5f-d3668475b49e)
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
**XPack** 是全球首個開源的 MCP 市集,讓你在幾分鐘內就能建立並販售自己的 MCP 服務。
<br>
✨ 使用 XPack 你可以:
- ✅ **一鍵將 OpenAPI 轉為 MCP 服務**
- 🧾 **SEO 友善的首頁與服務頁**
- 💳 **內建計費(按调用次數或 Token 使用量)**
- 👥 **使用者帳號管理**
- 🛠 **支援 Stripe 金流**
- 🔐 **支援 Email 與 Google OAuth 登入**
所有原始碼皆採用 **Apache 2.0** 授權,商用無虞。
<br>
# ✨ 快速開始
😍 部署非常簡單,以 **一行指令** 即可在 10 分鐘內架起你的 MCP 市集。
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![10 分鐘部署你的 MCP 市集](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
# 📸 功能
![b2](https://github.com/user-attachments/assets/c8cc89a4-ab5f-4c90-8c97-9207b5c9f5c1)
![b3](https://github.com/user-attachments/assets/16f74c8a-b35e-40a7-8471-a5736de8e904)
![b4](https://github.com/user-attachments/assets/fc76c215-7544-4267-bc6f-22a719edec00)
![b5](https://github.com/user-attachments/assets/db40ea77-58c3-472d-ba94-35dc9716a980)
<br>
## 🖥️ 系統需求
### ✅ 建議硬體
- **CPU**:8 核心
- **記憶體**:16 GB
- **儲存空間**:200 GB
- **作業系統**:Linux
- **架構**:AMD64
### ✅ 最低需求
- **CPU**:2 核心
- **記憶體**:4 GB
- **儲存空間**:200 GB
- **作業系統**:Linux / macOS
- **架構**:AMD64 / ARM64
<br>
## 📦 執行相依
**XPack-MCP-Market** 需要以下服務(自架或容器化):
| 元件 | 最低版本 |
|---|---|
| **MySQL** | ≥ 5.7.x |
| **Redis** | ≥ 6.2.x |
| **RabbitMQ**| ≥ 4.0 |
請先確保上述服務已可用且設定正確,再啟動後端。
<br>
## 💿 部署
😍 就這麼簡單:用 **一行指令**,10 分鐘內完成部署。
```bash
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
<details>
<summary><h4>🔖 以 Docker-Compose 部署</h4></summary>
使用此方法前,請先安裝 [Docker](https://docs.docker.com/engine/install/) 與 [Docker Compose](https://docs.docker.com/compose/install/standalone/)。
1. 編輯 `docker-compose.yml`
```
vi docker-compose.yml
```
<br>
2. 修改設定,可參考原始檔 [docker-compose.yml](https://github.com/xpack-ai/XPack-MCP-Market/blob/main/scripts/docker-compose.yml)
```
version: '3'
services:
xpack-mysql:
image: mysql:8.0.37
privileged: true
restart: always
container_name: xpack-mysql
hostname: xpack-mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql_ZTdhRB
- MYSQL_DATABASE=xpack
volumes:
- /var/lib/xpack/mysql:/var/lib/mysql
networks:
- xpack
xpack-mcp-market:
image: xpackai/xpack-mcp-market
container_name: xpack-mcp-market
privileged: true
restart: always
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
depends_on:
- xpack-mysql
- xpack-redis
- xpack-rabbitmq
xpack-redis:
container_name: xpack-redis
image: redis:7.2.4
hostname: xpack-redis
privileged: true
restart: always
ports:
- 6379:6379
command:
- bash
- -c
- "redis-server --protected-mode yes --logfile redis.log --appendonly no --port 6379 --requirepass redis_6sJZDm"
networks:
- xpack
xpack-rabbitmq:
image: rabbitmq:4.1.2-alpine
container_name: xpack-rabbitmq
privileged: true
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq_Gs123dA
networks:
- xpack
networks:
xpack:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
```
<br>
3. 啟動 XPack-MCP-Market
```
docker-compose up -d
```
<br>
4. 瀏覽器透過 3000 埠連線
* **管理員登入**:http://{IP}:3000/admin-signin
* **帳號**:admin
* **密碼**:123456789
</details>
<details>
<summary><h4>🔖 建置</h4></summary>
1. 取得原始碼
```
git clone https://github.com/xpack-ai/XPack-MCP-Market.git
```
2. 進入專案資料夾
```
cd XPack-MCP-Market
```
### 前端建置
> 需求:
> - Node >= 22.x
> - Pnpm >= 10.x
1. 執行建置腳本
```
cd scripts && ./frontend_build.sh && cd ../
```
完成後產出於 `frontend/out`。
2. 啟動 UI
```
cd frontend/out && node server.js
```
### 後端建置
> 需求:
> - Python >= 3.11
#### 使用 `uv`(建議)
1. 建立虛擬環境
```
uv venv
```
2. 啟用虛擬環境
```
source .venv/bin/activate
```
3. 安裝相依
```
uv pip install -r requirements.txt
```
4. 複製環境變數檔
```
cp .env.example .env
```
5. 編輯環境變數
```
vi .env
```
6. 啟動管理後端服務
**前景**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload
```
**背景**
```
uvicorn services.admin_service.main:app --host 0.0.0.0 --port 8001 --reload &
```
7. 啟動 API → MCP 服務
**前景**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload
```
**背景**
```
uvicorn services.api_service.main:app --host 0.0.0.0 --port 8002 --reload &
```
### Docker 建置
```
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./
```
</details>
# 📸 螢幕截圖
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/5f71bfcf-c128-42ab-8077-3f2ede549f80" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/d7c0b40d-182e-47a6-bcdf-bd36970f5ee6" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/ae40f659-87ad-42d4-8379-b47a48eb6a29" />
<img width="1415" height="797" alt="image" src="https://github.com/user-attachments/assets/1049f4e5-ec3f-4520-8480-6d6432d6f5d2" />
<br>
# 🧾 授權
XPack-MCP-Market 以 **Apache 2.0** 授權釋出。
詳情請見 [LICENSE](./LICENSE)。
<br>
# 📬 聯絡方式
- 🌐 Website: [https://xpack.ai](https://xpack.ai)
- 📧 Email: [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord:[Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 合作夥伴
- [Cursor](https://www.cursor.com/): Cursor 是一款將 AI 深度整合進編輯器的工具,提供下一步編輯建議、對程式碼庫的深度理解與自然語言編輯,顯著提升生產力。
- [Dify](https://dify.ai/): Dify 為領先的代理式(Agentic)AI 開發平台,涵蓋代理流程、RAG、整合與可觀測性等完整能力,支援多種 LLM 與外掛。
- [Trae](https://www.trae.ai/): Trae 是 AI 原生 IDE,以對話式介面協助產生與改寫程式碼,提升品質與效率。
- [Windsurf](https://windsurf.com/): Windsurf 為新一代 AI IDE,具備「Cascade」深度理解、「Windsurf Tab」智慧補全與「Memories」程式碼記憶等功能。
- [Coze](https://www.coze.com/): Coze 是 ByteDance 推出的次世代 AI 應用/聊天機器人平台,透過無程式碼工作流、外掛與知識庫,輕鬆建立強大的 Bot。
- [Claude Code](https://www.anthropic.com/claude-code): Claude Code 是 Anthropic 的 CLI 工具,將 Claude Opus 4 直接帶到終端機,可跨檔案編輯、執行指令並與 IDE/測試整合。
- [Flowith](https://flowith.io/): Flowith 是以畫布為核心的 AI 工作空間,透過多執行緒代理體驗,優化知識轉換與深度工作。
- [OpenManus](https://github.com/FoundationAgents/OpenManus): OpenManus 是用於構建通用 AI 代理的開源框架,支援多代理與 LLM API、瀏覽器自動化整合。
- [Fellou](https://fellou.ai/): Fellou 是能主動代辦任務的「Agentic Browser」,自動化資料蒐集與洞察產出,並和 Notion/LinkedIn 等常用工具整合。
- [Genspark](https://www.genspark.ai/): Genspark 是全方位 AI 夥伴(AI Slides、Sheets、Chat),以個人化工具與 AI Pods 從多來源生成內容。
- [TEN](https://github.com/TEN-framework/ten-framework): TEN(The Embodied Narrator)為即時多模態語音代理的開源框架,支援虛擬分身、MCP 整合、硬體通訊與畫面偵測。
- [APIPark](https://apipark.com/): APIPark 是開源企業級 API 開發者入口與整合式 LLM 閘道,提供統一 API 介面、負載平衡、流量控制、語意快取、提示管理與資料遮罩。
- [ChatGPT](https://chatgpt.com/): ChatGPT 是 OpenAI 的對話式 AI,具備進階語言理解與生成能力,支援追問、情境保留與多平台整合。
- [LangChain](https://www.langchain.com/): LangChain 是開發可靠代理與 LLM 應用的平台,涵蓋 LangGraph、LangSmith 與 LangGraph Platform 等產品。
- [LEMON AI](https://lemonai.cc/): Lemon AI 是首個全端、開源的 Agentic AI 框架,內建 Code Interpreter VM 沙盒以確保安全執行。
- [LobeChat](https://lobehub.com/): LobeChat 為個人 LLM 生產力工具,支援個人/團隊代理、外掛生態、知識庫與影像/語音功能。
- [VS Code](https://code.visualstudio.com/): Visual Studio Code 是高延展性的開源編輯器,支援多語言並內建多項 AI 功能(如下一步編輯建議與代理模式)。
- [XRoute](https://xroute.ai): 提供統一介面的 LLM 閘道,具更佳價格與吞吐量,無需訂閱。
- [MemU](https://github.com/NevaMind-AI/memU): MemU 是面向 AI 夥伴的開源記憶框架。
+55 -2
View File
@@ -3,6 +3,18 @@
<p align="center">
<a href="/README.md">English</a>
|
<a href="/README-fr.md">Français</a>
|
<a href="/README-de.md">Deutsch</a>
|
<a href="/README-es.md">Español</a>
|
<a href="/README-ja.md">日本語</a>
|
<a href="/README-ko.md">한국어</a>
|
<a href="/README-zh-tw.md">繁體中文</a>
|
<a href="/README-zh-cn.md">简体中文</a>
</p>
@@ -31,7 +43,7 @@ Everything is open-source and licensed under **Apache 2.0** — ready for commer
curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
[![Learn how to deploy your mcp market in 10 minutes](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=Ut4mbFXWbFs)
[![Learn how to deploy your mcp market in 10 minutes](https://github.com/user-attachments/assets/8881d724-b6aa-47b7-bbd7-b587ef541957)](https://www.youtube.com/watch?v=XHJXyvDevd8)
<br>
@@ -180,7 +192,7 @@ curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
4. Access `XPack-MCP-Market` in your browser at port 3000
* **Admin User Login Address**: http://{IP}:3000/admin-signin
* **Admin User Login Address**: http://{IP}:3000/admin
* **Admin User**: admin
* **Admin Password**: 123456789
</details>
@@ -283,3 +295,44 @@ For details, please see the [LICENSE](./LICENSE) file.
- 🌐 Website: [https://xpack.ai](https://xpack.ai)
- 📧 Email: [contact@xpack.com](mailto:contact@xpack.com)
- 💬 Discord:[Link](https://discord.gg/cyZfcdCXkW)
<br>
# 🤝 Partner
- [Cursor](https://www.cursor.com/): Cursor is an AI-powered code editor that integrates artificial intelligence directly into the coding workflow, offering features like intelligent next edit suggestions, deep codebase understanding for relevant answers, and natural language editing to streamline development tasks and boost developer productivity.
- [Dify](https://dify.ai/): Dify is a leading Agentic AI Development Platform that provides a comprehensive suite of tools for building and extending AI applications, offering everything needed for agentic workflows, RAG pipelines, integrations, and observability, while allowing users to amplify their applications with various global Large Language Models (LLMs) and versatile plugins.
- [Trae](https://www.trae.ai/): Trae is an AI-native Integrated Development Environment (IDE) product that aims to embody the concept of “The Real AI Engineer” through intelligent productivity, seamlessly integrating into the development process to enhance quality and efficiency, featuring a chat-based interaction interface and supporting code generation and assistance.
- [Windsurf](https://windsurf.com/): Windsurf is an AI code editor designed to provide a seamless and limitless flow for developers, introducing a new purpose-built IDE that leverages AI to enhance coding with features like "Cascade" for deep codebase understanding, "Windsurf Tab" for intelligent autocompletion, and "Memories" for remembering important aspects of the codebase.
- [Coze](https://www.coze.com/): Coze is a next-generation AI application and chatbot development platform by ByteDance, empowering users to easily create and deploy powerful AI chatbots across various platforms with a no-code bot builder, integrated workflow logic, access to proprietary data, and simplified creation through pre-built plugins, knowledge bases, and workflows.
- [Claude Code](https://www.anthropic.com/claude-code): Claude Code is a command-line AI tool by Anthropic that embeds the Claude Opus 4 model directly into the user’s terminal, providing deep codebase awareness, the ability to edit files and execute commands, and making coordinated changes across multiple files, all while integrating seamlessly with popular IDEs and leveraging existing test suites.
- [Flowith](https://flowith.io/): Flowith is an AI creation workspace designed to revolutionize productivity and deep work by transforming knowledge and streamlining tasks through a multi-thread interface powered by advanced AI agents, offering an intuitive canvas-based user experience unlike traditional chat-based AI tools, and including a 24/7 operational version for complex tasks.
- [OpenManus](https://github.com/FoundationAgents/OpenManus): OpenManus is an open-source framework dedicated to building general AI agents, aiming to provide a platform where users can create and deploy their own agents without an invite code, supporting multi-agent capabilities, and requiring configuration for Large Language Model (LLM) APIs while integrating with browser automation tools.
- [Fellou](https://fellou.ai/): Fellou is an innovative Agentic Browser designed to transcend traditional web browsing by actively performing actions on behalf of the user, automating the entire process of information gathering and insight delivery, and excelling in in-depth research with seamless integrations with popular tools like Notion and LinkedIn.
- [Genspark](https://www.genspark.ai/): Genspark is an ultimate all-in-one AI companion offering a comprehensive suite of tools like AI Slides, AI Sheets, and AI Chat, designed to enhance various aspects of productivity and content creation, with personalized tools and AI Pods for generating content from diverse sources.
- [TEN](https://github.com/TEN-framework/ten-framework): TEN (The Embodied Narrator) is an open-source framework for building real-time, multimodal conversational voice AI agents, including components like TEN Framework, TEN Turn Detection, TEN Agent, TMAN Designer, and TEN Portal, offering features like Real-time Avatar, seamless MCP integration, real-time hardware communication, and vision/screenshare detection.
- [APIPark](https://apipark.com/): APIPark is an open-source enterprise API developer portal and an all-in-one LLM gateway, providing fine-grained, visual management of LLMs in production environments with features like unified API signatures, load balancing, traffic control, intelligent semantic caching, flexible prompt management, and data masking, ensuring safer and more stable LLM calls.
- [ChatGPT](https://chatgpt.com/): ChatGPT is an AI chatbot developed by OpenAI, built upon large language models like GPT-3.5 and GPT-4, designed to generate human-like conversational dialogue, understand context, answer follow-up questions, and integrate with various platforms for enhanced productivity through advanced language understanding, generation, and multilingual capabilities.
- [LangChain](https://www.langchain.com/): LangChain is a robust platform engineered for the development of reliable agents and Large Language Model (LLM) applications, offering a comprehensive product suite that seamlessly integrates various tools across the entire application development lifecycle, including LangGraph, LangSmith, and the LangGraph Platform, with functionalities for code generation, automation, and AI Search.
- [LEMON AI](https://lemonai.cc/): Lemon AI is the first Full-stack, Open-source, Agentic AI framework, offering a fully local alternative to platforms like Manus & Genspark AI. It features an integrated Code Interpreter VM sandbox for safe execution.
- [LobeChat](https://lobehub.com/): LobeHub offers LobeChat, a personal LLM productivity tool designed to elevate the user experience beyond traditional chatbots by empowering individuals to build personal AI agents and professional teams, supporting a wide array of LLMs, offering a simple chat interface, visual recognition, voice interaction, a rich plugin ecosystem, and knowledge base functionalities.
- [VS Code](https://code.visualstudio.com/): Visual Studio Code (VS Code) is a widely popular, free, and open-source code editor by Microsoft, renowned for its extensibility and customization, supporting vast programming languages, and integrating AI capabilities like intelligent next edit suggestions and an advanced “agent mode” for complex tasks, with broad compatibility with various AI models.
- [XRoute](https://xroute.ai): The Unified Interface For LLMs, provides better prices, better throughput, and no subscription.
- [MemU](https://github.com/NevaMind-AI/memU): MemU is an open-source memory framework for AI companions
+2 -1
View File
@@ -871,5 +871,6 @@
"Price per million output tokens": "Price per million output tokens",
"Input": "Input",
"Output": "Output",
"1M tokens": "1M tokens"
"1M tokens": "1M tokens",
"Total Spending": "Total Spending"
}
@@ -873,5 +873,6 @@
"Price per million output tokens": "每百万输出Token价格",
"Input": "输入",
"Output": "输出",
"1M tokens": "1M tokens"
"1M tokens": "1M tokens",
"Total Spending": "总支出"
}
@@ -28,10 +28,9 @@ export const LoginSettingsContent: React.FC<LoginSettingsContentProps> = ({
const { t } = useTranslation();
const { updateClientConfig } = usePlatformConfig();
// 验证至少有一种登录方式启用
// check if at least one login method is enabled
const validateLoginMethods = (config: LoginConfig): boolean => {
const isGoogleEnabled =
config.google?.is_enabled && config.google?.client_id;
const isGoogleEnabled = config.google?.is_enabled;
const isEmailEnabled = config.email?.is_enabled;
const enabledCount = [isGoogleEnabled, isEmailEnabled].filter(
-2
View File
@@ -19,10 +19,8 @@ import {
Home,
Settings,
Users,
LogIn,
ServerIcon,
} from "lucide-react";
import { LoginSettingsContent } from "@/components/console/LoginSettingsContent";
import ConsoleSidebar from "./Sidebar";
const ConsoleContent: React.FC = () => {
@@ -32,6 +32,7 @@ interface AuthKeyDetailsProps {
interface ApiAnalyticsData {
stats_day: string;
call_tool_count: number;
amount: number;
}
// Custom cursor to highlight the hovered bar with a lighter and narrower overlay
@@ -76,7 +77,7 @@ const AuthKeyDetails: React.FC<AuthKeyDetailsProps> = ({
try {
setIsLoading(true);
const response = await fetchAPI(
`/api/stats/key_call_tool_count?apikey_id=${selectedApiKey.apikey_id}`,
`/api/stats/key_call_tool?apikey_id=${selectedApiKey.apikey_id}`,
{
method: "GET",
}
@@ -86,7 +87,8 @@ const AuthKeyDetails: React.FC<AuthKeyDetailsProps> = ({
const formattedData = response.data.days.map(
(day: ApiAnalyticsData) => ({
name: new Date(day.stats_day).toISOString().split("T")[0],
value: day.call_tool_count,
value: day.amount,
count: day.call_tool_count,
})
);
setAnalyticsData(formattedData);
@@ -101,7 +103,7 @@ const AuthKeyDetails: React.FC<AuthKeyDetailsProps> = ({
}, [selectedApiKey, t]);
useEffect(() => {
if (!selectedApiKey?.apikey_id) return
if (!selectedApiKey?.apikey_id) return;
fetchAnalyticsData();
}, [selectedApiKey?.apikey_id]);
@@ -163,7 +165,9 @@ const AuthKeyDetails: React.FC<AuthKeyDetailsProps> = ({
</div>
<div className="flex items-center gap-2 bg-gray-100 p-2 rounded relative justify-between">
<span className="overflow-hidden text-ellipsis whitespace-nowrap">{getEncryptedKey(selectedApiKey.apikey)}</span>
<span className="overflow-hidden text-ellipsis whitespace-nowrap">
{getEncryptedKey(selectedApiKey.apikey)}
</span>
<Button
isIconOnly
size="sm"
@@ -213,11 +217,14 @@ const AuthKeyDetails: React.FC<AuthKeyDetailsProps> = ({
axisLine={false}
tickLine={false}
tick={{ fontSize: 12, fill: "#666" }}
allowDecimals={false}
allowDecimals={true}
/>
<RechartsTooltip
cursor={<CustomCursor />}
formatter={(value: number) => [value, t("Times")]}
formatter={(value: number) => [
value,
t("Total Spending"),
]}
contentStyle={{
backgroundColor: "#fff",
border: "1px solid #e5e7eb",
@@ -21,7 +21,7 @@ interface EmailConfigFormProps {
emailConfig: EmailConfig;
onSave: (config: LoginConfig) => Promise<void>;
isLoading?: boolean;
onTabNavigate?: (tab: TabKey) => void;
onTabNavigate?: (tab: TabKey, subTab?: string) => void;
}
export const EmailConfigForm: React.FC<EmailConfigFormProps> = ({
@@ -180,7 +180,7 @@ export const EmailConfigForm: React.FC<EmailConfigFormProps> = ({
<Link
className="text-sm underline cursor-pointer"
onPress={() => {
onTabNavigate?.(TabKey.SYSTEM_SETTINGS);
onTabNavigate?.(TabKey.SYSTEM_SETTINGS, "email-admin");
}}
>
{t("Go to Settings")}
@@ -23,19 +23,21 @@ interface FaqSettingsProps {
onSave?: (config: FaqItem[]) => void;
config?: FaqItem[];
}
const defaultFaqs = [{ question: "", answer: "" }];
export const FaqSettings: React.FC<FaqSettingsProps> = ({
onSave,
config = [],
}) => {
const { t } = useTranslation();
const [faqs, setFaqs] = useState<FaqItem[]>(config || []);
const [faqs, setFaqs] = useState<FaqItem[]>(
config && config.length > 0 ? config : defaultFaqs
);
const [isSaving, setIsSaving] = useState(false);
const [focusedAnswer, setFocusedAnswer] = useState<number | null>(null);
const draggedItem = useRef<number | null>(null);
const draggedOverItem = useRef<number | null>(null);
useEffect(() => {
setFaqs(config);
setFaqs(config && config.length > 0 ? config : defaultFaqs);
}, [config]);
const handleQuestionChange = (index: number, value: string) => {
@@ -54,6 +56,10 @@ export const FaqSettings: React.FC<FaqSettingsProps> = ({
const handleDelete = (index: number) => {
setFaqs((prev) => {
// Ensure at least one record remains
if (prev.length <= 1) {
return defaultFaqs;
}
return prev.filter((_, idx) => idx !== index);
});
};
@@ -27,19 +27,24 @@ interface TopNavigationSettingsProps {
onSave?: (config: TopNavigationItem[]) => void;
config?: TopNavigationItem[];
}
const defaultNavigationItems = [
{ title: "", link: "", target: TopNavigationTargetEnum.BLANK },
];
export const TopNavigationSettings: React.FC<TopNavigationSettingsProps> = ({
onSave,
config = [],
}) => {
const { t } = useTranslation();
const [navigationItems, setNavigationItems] =
useState<TopNavigationItem[]>(config);
const [navigationItems, setNavigationItems] = useState<TopNavigationItem[]>(
config && config.length > 0 ? config : defaultNavigationItems
);
const [isSaving, setIsSaving] = useState(false);
const draggedItem = useRef<number | null>(null);
const draggedOverItem = useRef<number | null>(null);
useEffect(() => {
setNavigationItems(config);
setNavigationItems(
config && config.length > 0 ? config : defaultNavigationItems
);
}, [config]);
const handleTitleChange = (index: number, value: string) => {
@@ -67,6 +72,10 @@ export const TopNavigationSettings: React.FC<TopNavigationSettingsProps> = ({
const handleDelete = (index: number) => {
setNavigationItems((prev) => {
// Ensure at least one record remains
if (prev.length <= 1) {
return defaultNavigationItems;
}
return prev.filter((_, idx) => idx !== index);
});
};
@@ -17,6 +17,14 @@ export const AboutThemeSelector: React.FC = () => {
const currentTheme = platformConfig.theme || Theme.DEFAULT;
const navigationItems = [
...NavigationItems,
...(platformConfig.about_page
? [
{
label: "About",
href: "/about",
},
]
: []),
...topNavigation.map((item) => ({
label: item.title,
href: item.link,
@@ -36,6 +36,14 @@ export const ProductDetailThemeSelector: React.FC<
const { t } = useTranslation();
const navigationItems = [
...NavigationItems,
...(platformConfig.about_page
? [
{
label: "About",
href: "/about",
},
]
: []),
...topNavigation.map((item) => ({
label: item.title,
href: item.link,
@@ -45,7 +53,10 @@ export const ProductDetailThemeSelector: React.FC<
useEffect(() => {
if (url || !product.slug_name) return;
setUrl(
`${mcpServerPrefix || `${window.location.protocol}//${window.location.hostname}:8002`}/mcp/${product.slug_name}`
`${
mcpServerPrefix ||
`${window.location.protocol}//${window.location.hostname}:8002`
}/mcp/${product.slug_name}`
);
}, [product.slug_name]);
function sanitizeMCPServerName(rawName: string | undefined): string {
@@ -5,8 +5,4 @@ export const NavigationItems: NavigationItem[] = [
label: "Home",
href: "/",
},
{
label: "About",
href: "/about",
},
];
@@ -38,6 +38,14 @@ export const ThemeSelector: React.FC<ThemeSelectorProps> = ({
const currentTheme = platformConfig.theme || Theme.DEFAULT;
const navigationItems = [
...NavigationItems,
...(platformConfig.about_page
? [
{
label: "About",
href: "/about",
},
]
: []),
...topNavigation.map((item) => ({
label: item.title,
href: item.link,
+6 -7
View File
@@ -54,12 +54,11 @@ export const fetchAPI = async <T = any>(
};
}
} catch (error) {
console.error("API fetch error:", error);
return {
success: false,
code: "ERROR",
error_message: error instanceof Error ? error.message : "Unknown error",
data: null as T,
};
if (error instanceof Error && error.name === "AbortError") {
console.log("Request aborted:", url);
} else {
console.error("Fetch error:", error);
}
throw error;
}
};
+1 -1
View File
@@ -17,7 +17,7 @@ echo "login qiniu..."
qshell account ${AccessKey} ${SecretKey} ${QINIU_NAME}
echo "qshell rput ${QINIU_BUCKET} \"xpack/images/${Tar}\" ${Tar}"
qshell rput ${QINIU_BUCKET} "xpack/images/${Tar}" ${Tar}
qshell rput --overwrite ${QINIU_BUCKET} "xpack/images/${Tar}" ${Tar}
rm -f ${Tar}
docker rmi -f ${ImageName}:${Version}
-1
View File
@@ -21,4 +21,3 @@ ALTER TABLE `user_wallet_history` MODIFY COLUMN `balance_after` decimal(16, 6) N
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
VALUES ('xpack-version','version', '1.0.0', 'User wallet history max count', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
+20
View File
@@ -0,0 +1,20 @@
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
VALUES ('xpack-is_showcased','is_showcased', '1', 'Is showcase', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
VALUES ('xpack-login_google_enable','login_google_enable', '1', 'Login google enable', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
VALUES ('xpack-login_email_enable','login_email_enable', '1', 'Login email enable', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
VALUES ('xpack-login_email_mode','email_mode', 'password', 'Login email mode', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
VALUES ('xpack-version','version', '1.0.1', 'User wallet history max count', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
+1 -1
View File
@@ -5,7 +5,7 @@
"downloads": {
"program": {
"xpack_mcp_market": {
"version": "v1.0.0",
"version": "v1.0.1",
"docker": "xpackai/xpack-mcp-market",
"tar": "xpack-mcp-market.tar.gz",
"url": "https://public.eolinker.com/xpack/images/xpack-mcp-market.${VERSION}.${ARCH}.tar.gz"
@@ -37,7 +37,7 @@ async def payment_channel_list(
"name": item.name,
"config": cfg,
"is_enabled": enable,
"updated_time": item.update_at,
"updated_time": item.updated_at,
}
)
return ResponseUtils.success_page(data=result, total=total, page_num=page, page_size=page_size)
@@ -65,7 +65,7 @@ async def payment_channel_enable(
"name": data.name,
"config": data.config,
"is_enabled": data.status == 1,
"updated_time": data.update_at,
"updated_time": data.updated_at,
}
)
return ResponseUtils.success(data={})
@@ -92,7 +92,7 @@ async def payment_channel_disable(
"name": data.name,
"config": data.config,
"is_enabled": data.status == 1,
"updated_time": data.update_at,
"updated_time": data.updated_at,
}
)
return ResponseUtils.success(data={})
@@ -119,7 +119,7 @@ async def payment_channel_config(
"name": data.name,
"config": config,
"is_enabled": data.status == 1,
"updated_time": data.update_at,
"updated_time": data.updated_at,
}
)
return ResponseUtils.success(data={})
@@ -13,8 +13,8 @@ logger = get_logger(__name__)
router = APIRouter()
@router.get("/key_call_tool_count")
async def get_key_call_tool_count(
@router.get("/key_call_tool")
async def get_key_call_tool(
apikey_id: str = Query(..., description="apikey ID (not the apikey itself)"),
last_day: int = Query(30, description="Days to query, default 30"),
db: Session = Depends(get_db),
@@ -9,6 +9,7 @@ from sqlalchemy import func, and_
from services.common.models.mcp_call_log import McpCallLog
from services.common.models.user_apikey import UserApiKey
from services.common.logging_config import get_logger
from decimal import Decimal, getcontext
logger = get_logger(__name__)
@@ -49,7 +50,11 @@ class UserStatsService:
# Query statistics data
stats_query = (
self.db.query(func.date(McpCallLog.call_start_time).label("stats_day"), func.count(McpCallLog.id).label("call_tool_count"))
self.db.query(
func.date(McpCallLog.call_start_time).label("stats_day"),
func.count(McpCallLog.id).label("call_tool_count"),
func.sum(McpCallLog.unit_price).label("amount"),
)
.join(UserApiKey, UserApiKey.id == McpCallLog.apikey_id)
.filter(
and_(
@@ -63,7 +68,7 @@ class UserStatsService:
)
# Convert to dictionary for easy lookup
stats_dict = {str(row.stats_day): row.call_tool_count for row in stats_query}
stats_dict = {str(row.stats_day): [row.call_tool_count,row.amount] for row in stats_query}
# Generate complete date sequence, including dates with no calls
result = []
@@ -71,9 +76,14 @@ class UserStatsService:
while current_date <= end_date:
date_str = current_date.strftime("%Y-%m-%d")
call_count = stats_dict.get(date_str, 0)
columns = stats_dict.get(date_str, [])
if len(columns) == 0:
result.append({"stats_day": date_str, "call_tool_count": 0, "amount": "0.0"})
else:
#columns[1]不用科学记数法,保留六位小数
result.append({"stats_day": date_str, "call_tool_count": columns[0], "amount": columns[1]})
result.append({"stats_day": date_str, "call_tool_count": call_count})
# result.append({"stats_day": date_str, "call_tool_count": call_count, "amount": amount})
current_date += timedelta(days=1)
+1 -1
View File
@@ -15,4 +15,4 @@ class PaymentChannel(Base):
name: Mapped[str] = mapped_column(String(255), nullable=False, comment="Channel name")
status: Mapped[int] = mapped_column(Integer, nullable=False, comment="Channel status, 0: disabled, 1: enabled")
config: Mapped[str] = mapped_column(Text, nullable=True, comment="Channel config")
update_at: Mapped[datetime] = mapped_column(DateTime, nullable=True, comment="Update time")
updated_at: Mapped[datetime] = mapped_column(DateTime, nullable=True, comment="Update time")