Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Failsafe Server

БесплатноНе проверен

Credential resilience for AI agents, providing AES-256 encrypted storage, automatic health checks, and failover to backup credentials for providers like OpenAI,

GitHubEmbed

Описание

Credential resilience for AI agents, providing AES-256 encrypted storage, automatic health checks, and failover to backup credentials for providers like OpenAI, Anthropic, GitHub, and Stripe.

README

Credential resilience for AI agents.

Your agent runs on 50+ credentials. Failsafe makes sure they never break.

  • 🔑 Store credentials with AES-256 encryption
  • 🏥 Monitor health with automatic provider-specific checks
  • 🔀 Failover to backup credentials when primary fails
  • Warn before credentials expire
  • 🔌 MCP native — works with Claude Code, Cursor, LangChain, and any MCP client

Quick Start

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "failsafe": {
      "command": "npx",
      "args": ["-y", "failsafe-mcp-server"]
    }
  }
}

With Claude Code

claude mcp add failsafe -- npx -y failsafe-mcp-server

Manual

npm install -g failsafe-mcp-server
failsafe-mcp-server

What It Does

Store a credential

> failsafe_store provider:"openai" key:"sk-abc123" backup_key:"sk-xyz789"

✓ Credential stored for openai. Backup configured.

Get a credential (with auto-failover)

> failsafe_get provider:"openai"

{
  "key": "sk-abc123",
  "source": "primary",
  "status": "healthy"
}

If the primary key is unhealthy, Failsafe automatically returns the backup:

> failsafe_get provider:"openai"

{
  "key": "sk-xyz789",
  "source": "backup",
  "warnings": ["Primary credential is unhealthy. Using backup."]
}

List all credentials

> failsafe_list

{
  "summary": { "total": 4, "healthy": 3, "unhealthy": 1, "expired": 0 },
  "credentials": [
    { "provider": "openai", "status": "healthy", "has_backup": true },
    { "provider": "anthropic", "status": "healthy", "has_backup": false },
    { "provider": "github", "status": "unhealthy", "has_backup": true },
    { "provider": "stripe", "status": "healthy", "has_backup": false }
  ]
}

Run health checks

> failsafe_health

{
  "summary": { "total": 4, "healthy": 3, "unhealthy": 1 },
  "results": [
    { "provider": "openai", "status": "healthy", "latency_ms": 245 },
    { "provider": "anthropic", "status": "healthy", "latency_ms": 189 },
    { "provider": "github", "status": "unhealthy", "response_code": 401 },
    { "provider": "stripe", "status": "healthy", "latency_ms": 312 }
  ]
}

Supported Providers

Built-in health checks for:

Provider Health Check Endpoint
OpenAI GET /v1/models
Anthropic GET /v1/models
GitHub GET /user
Stripe GET /v1/balance

Any other provider works with a custom health_check_url:

> failsafe_store provider:"my-saas" key:"token_abc" health_check_url:"https://api.my-saas.com/health"

Security

  • All credentials encrypted with AES-256-GCM at rest
  • Master key auto-generated and stored in ~/.failsafe/master.key (mode 0600)
  • Or set FAILSAFE_MASTER_KEY environment variable
  • 100% local — credentials never leave your machine
  • No telemetry, no network calls except health checks to your own providers

How Failover Works

Agent requests credential for "openai"
  ↓
Failsafe checks primary key status
  ↓
├─ Healthy? → return primary key
├─ Unhealthy/Expired? → check for backup
│   ├─ Backup exists? → return backup key + warning
│   └─ No backup? → return primary key + warning

Data Storage

All data stored locally in ~/.failsafe/:

~/.failsafe/
├── master.key         # Encryption key (auto-generated)
└── credentials.json   # Encrypted credential store

Roadmap

  • Store / Get / List / Remove credentials
  • AES-256-GCM encryption
  • Health checks (OpenAI, Anthropic, GitHub, Stripe + custom)
  • Automatic failover (primary → backup)
  • Expiration warnings
  • Background health monitoring (cron)
  • Multi-key rotation / load balancing
  • Webhook notifications (Slack, Telegram)
  • Failsafe Cloud (hosted dashboard + team management)

License

MIT

Links

from github.com/sunglc/failsafe-mcp-server

Установка Failsafe Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/sunglc/failsafe-mcp-server

FAQ

Failsafe Server MCP бесплатный?

Да, Failsafe Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Failsafe Server?

Нет, Failsafe Server работает без API-ключей и переменных окружения.

Failsafe Server — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Failsafe Server в Claude Desktop, Claude Code или Cursor?

Открой Failsafe Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Failsafe Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development