SaaS Connector & Autonomous MCP Architecture Skill
This skill guides AI agents in implementing and extending the enterprise SaaS capabilities of the **GitHub Backup Automation System**, including UI connectors, encrypted secret vaults, multi-cloud storage backends, and Model Context Protocol (MCP) server integrations.
1. UI Connector Hub & Encrypted Credential Vault
When implementing or modifying connectors:
2. Pluggable Multi-Cloud Storage Engine
When extending backup archiving and storage destinations:
```go
type StorageProvider interface {
Upload(ctx context.Context, key string, r io.Reader, size int64) error
Download(ctx context.Context, key string, w io.Writer) error
VerifyChecksum(ctx context.Context, key string, expectedSHA256 string) (bool, error)
Delete(ctx context.Context, key string) error
List(ctx context.Context, prefix string) ([]ObjectMetadata, error)
}
```
3. Model Context Protocol (MCP) Server Integration
When adding new MCP tools to the LangChain / FastAPI agent:
- Read-only tools (`query_database_state`, `list_backups`, `inspect_container`) execute automatically.
- Destructive or external actions (`restart_service`, `restore_database_snapshot`, `trigger_incident_alert`, `apply_schema_migration`) MUST trigger the HITL confirmation protocol via SSE event.
- All MCP tool outputs must be synthesized concisely in structured Markdown without emojis or conversational filler.
4. Exposing the Native GitHub Backup MCP Server (`github-backup-mcp`)
When maintaining or extending the native MCP server exposed to external IDEs/agents:
- `get_system_health`: Real-time status of services, DB, and latest runs.
- `trigger_backup_run`: Autonomous run triggers for specified repos.
- `search_observatory_knowledge`: Hybrid pgvector search across system logs.
- `verify_archive_integrity`: SHA-256 validation of `.tar.gz` archives.
- `extract_backup_file`: Surgical extraction from remote S3/R2 backups.