# mcprapi **Repository Path**: chuangyeshuo/mcprapi ## Basic Information - **Project Name**: mcprapi - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2025-07-27 - **Last Updated**: 2025-07-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
|
## ๐ ๏ธ Tech Stack
### Backend







### Frontend





### DevOps & Infrastructure




## ๐ Project Structure
```
๐ฆ mcp-rapi/
โโโ ๐ง backend/ # Go Backend Service
โ โโโ ๐ cmd/ # Application Entry Point
โ โ โโโ main.go # Main application
โ โโโ โ๏ธ configs/ # Configuration Files
โ โ โโโ dev.yaml # Development config
โ โ โโโ prod.yaml # Production config
โ โ โโโ casbin_model.conf # Casbin RBAC model
โ โโโ ๐๏ธ internal/ # Internal Application Code
โ โ โโโ ๐ฏ domain/ # Business Domain Layer
โ โ โ โโโ ๐ entity/ # Domain Entities
โ โ โ โโโ ๐๏ธ repository/ # Repository Interfaces
โ โ โ โโโ ๐ง service/ # Business Services
โ โ โโโ ๐ญ infrastructure/ # Infrastructure Layer
โ โ โ โโโ ๐พ cache/ # Redis Cache Implementation
โ โ โ โโโ ๐ฆ container/ # Dependency Injection
โ โ โ โโโ ๐๏ธ database/ # Database Connection
โ โ โ โโโ ๐๏ธ repository/ # Repository Implementation
โ โ โโโ ๐ ๏ธ pkg/ # Internal Utilities
โ โ โโโ ๐ transport/ # Transport Layer
โ โ โโโ ๐ http/ # HTTP Handlers
โ โ โโโ ๐ middleware/ # HTTP Middleware
โ โโโ ๐ pkg/ # Public Utilities
โ โ โโโ casbinx/ # Casbin Extensions
โ โโโ ๐ scripts/ # Utility Scripts
โ โโโ init_admin.go # Admin Initialization
โโโ ๐จ frontend/ # Vue.js Frontend
โ โโโ ๐ public/ # Static Assets
โ โโโ ๐ src/ # Source Code
โ โ โโโ ๐ api/ # API Client
โ โ โโโ ๐ญ assets/ # Assets
โ โ โโโ ๐งฉ components/ # Vue Components
โ โ โโโ ๐บ๏ธ router/ # Vue Router Configuration
โ โ โโโ ๐๏ธ store/ # Vuex Store
โ โ โโโ ๐จ styles/ # Global Styles
โ โ โโโ ๐ ๏ธ utils/ # Utility Functions
โ โ โโโ ๐๏ธ views/ # Vue Views/Pages
โ โโโ ๐ฆ package.json # NPM Dependencies
โ โโโ โ๏ธ vue.config.js # Vue CLI Configuration
โโโ ๐ณ docker-compose.yml # Docker Compose Configuration
โโโ ๐ณ docker-compose.dev.yml # Development Docker Compose
โโโ ๐ .env.example # Environment Variables Template
โโโ ๐จ assets/ # Project Assets
โ โโโ logo.svg # Project Logo
โโโ ๐ docs/ # Documentation
โโโ ๐ deploy/ # Deployment & Container Management
โ โโโ ๐ณ docker-compose.ghcr.yml # GHCR Docker Compose
โ โโโ ๐ง build-and-push.sh # Build & Push Images Script
โ โโโ ๐ deploy-ghcr.sh # GHCR Deployment Script
โ โโโ โ๏ธ .env.production # Production Environment Config
โ โโโ ๐ README.md # Deployment Guide
โ โโโ ๐ GITHUB_CONTAINER_REGISTRY_GUIDE.md # GHCR Guide
โโโ ๐ง mcp-example/ # MCP Integration Examples
โโโ fastmcp_http_server.py # FastMCP HTTP Server
โโโ requirements.txt # Python Dependencies
โโโ start_fastmcp_http_server.sh # Startup Script
```
## ๐ Quick Start
### ๐ณ One-Click Docker Setup (Recommended)
Get up and running in under 2 minutes:
```bash
# 1. Clone the repository
git clone https://github.com/chuangyeshuo/mcprapi.git
cd mcprapi
# 2. Start development environment (with hot reload & admin tools)
docker-compose -f docker-compose.dev.yml up -d
# 3. Check service status
docker-compose -f docker-compose.dev.yml ps
# ๐ Your MCP RAPI system is now running!
```
**๐ Access URLs:**
- **Frontend Dashboard**: http://localhost:8082
- **Backend API**: http://localhost:8081
- **API Documentation**: http://localhost:8081/swagger/index.html
- **Health Check**: http://localhost:8081/health
- **Database Admin**: http://localhost:8083 (Adminer)
- **Redis Admin**: http://localhost:8084 (Redis Commander)
**๐ Default Login:**
```
Username: admin
Password: admin
```
> โ ๏ธ **Security Note**: Please change the default password immediately after first login!
### ๐ญ Production Deployment
#### ๐ณ GitHub Container Registry (ๆจ่)
ไฝฟ็จ้ขๆๅปบ็Docker้ๅๅฟซ้้จ็ฝฒ๏ผ
```bash
# 1. ่ฟๅ
ฅ้จ็ฝฒ็ฎๅฝ
cd deploy
# 2. ้
็ฝฎ็ฏๅขๅ้
cp .env.production .env
# ็ผ่พ .env ๆไปถ๏ผ่ฎพ็ฝฎๅฟ
่ฆ็็ฏๅขๅ้
# 3. ไฝฟ็จGHCR้ๅๅฏๅจๆๅก
docker-compose -f docker-compose.ghcr.yml up -d
# 4. ๆฃๆฅๆๅก็ถๆ
docker-compose -f docker-compose.ghcr.yml ps
```
**๐ ่ฏฆ็ปๆๅ**: ๆฅ็ [`deploy/README.md`](deploy/README.md) ่ทๅๅฎๆด็้จ็ฝฒ่ฏดๆ
#### ๐๏ธ ๆฌๅฐๆๅปบ้จ็ฝฒ
```bash
# 1. Configure environment variables
cp .env.example .env
# Edit .env file with your production settings
# 2. Start production environment
docker-compose up -d
# 3. Check service status
docker-compose ps
```
**Production URLs:**
- **Frontend**: http://localhost:8082
- **Backend API**: http://localhost:8081
- **API Documentation**: http://localhost:8081/swagger/index.html
- **Health Check**: http://localhost:8081/health
### ๐ป Local Development Setup
๐ Prerequisites- **Go** 1.21+ ([Download](https://golang.org/dl/)) - **Node.js** 18+ ([Download](https://nodejs.org/)) - **MySQL** 8.0+ ([Download](https://dev.mysql.com/downloads/)) - **Redis** 6.0+ ([Download](https://redis.io/download)) - **Python** 3.8+ (for MCP integration)
**Made with โค๏ธ by the MCP RAPI Community**
[โญ Star us on GitHub](https://github.com/chuangyeshuo/mcprapi) โข [๐ Report Bug](https://github.com/chuangyeshuo/mcprapi/issues) โข [๐ก Request Feature](https://github.com/chuangyeshuo/mcprapi/issues) โข [๐ฌ Join Discussion](https://github.com/chuangyeshuo/mcprapi/issues)
**๐ Ready to revolutionize your API permission management? Get started now!**
|