# mcprapi **Repository Path**: mcp-zero/mcprapi ## Basic Information - **Project Name**: mcprapi - **Description**: 🔐 MCP RAPI - 企业级多租户API权限管理系统 | Enterprise Multi-tenant API Permission Management System with MCP Protocol Support - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-29 - **Last Updated**: 2025-07-29 ## 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
└── 🔧 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
```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/yourusername/mcp-rapi) • [🐛 Report Bug](https://github.com/yourusername/mcp-rapi/issues) • [💡 Request Feature](https://github.com/yourusername/mcp-rapi/issues) • [💬 Join Discussion](https://github.com/yourusername/mcp-rapi/discussions)
**🚀 Ready to revolutionize your API permission management? Get started now!**
|