Skip to main content

Overview

System endpoints provide critical administrative operations for the Secure MCP Gateway, including health checks, configuration backup and restore, and system reset functionality.

Health Check

Check the health and status of the API server.
This endpoint does not require authentication and can be used for monitoring and load balancer health checks.
Response: 200 OK
string
required
Server health status message
string
required
Current gateway version
string
required
Path to the active configuration file

Use Cases

Monitoring & Alerting:
Load Balancer Configuration (NGINX):
Kubernetes Liveness Probe:

System Health Check (Detailed)

Perform a comprehensive system health check with detailed diagnostics.
This endpoint requires authentication and provides more detailed system information.
Response: 200 OK
string
required
Overall system health: healthy, degraded, or unhealthy
boolean
required
Whether the configuration file is valid
string
required
Cache configuration: local or external
integer
required
API server uptime in seconds

System Backup

Create a complete backup of the system configuration.
Backups contain sensitive data including API keys. Store them securely.
string
required
Absolute path where the backup file will be created
Response: 200 OK

Backup Contents

The backup file contains:
  • All MCP configurations
  • All projects
  • All users
  • All API keys (encrypted)
  • Admin API key
  • Plugin configurations
  • Common gateway settings

Automated Backup Script

Cron Configuration:

System Restore

Restore the system configuration from a backup file.
Restore operations will overwrite the current configuration. Ensure you have a recent backup before restoring.
string
required
Absolute path to the backup file to restore from
Response: 200 OK
After a successful restore, restart the API server and gateway for changes to take full effect.

Restore with Verification


System Reset

Reset the system to default configuration, removing all configurations, projects, users, and API keys.
DANGER: This operation is irreversible and will delete all data. Always create a backup before resetting.
boolean
required
Must be true to confirm the reset operation
Response: 200 OK
Error Response: 400 Bad Request (if confirm is not true)

Safe Reset Procedure


Disaster Recovery

Complete DR Workflow


Monitoring Examples

Health Check Monitoring Script


Next Steps

Configuration Endpoints

Manage MCP configurations

User Management

Create and manage users

API Keys

Manage API keys

Projects

Project management