Authn8
ทางการAccess your team's 2FA codes from AI agents without sharing secrets. List accounts, generate TOTP codes, and maintain full audit trails
เอกสาร
@authn8/mcp-server
เซิร์ฟเวอร์ MCP ที่ให้เอเจนต์ AI เข้าถึงรหัส 2FA ของ Authn8 ผ่านการตรวจสอบสิทธิ์ด้วย PAT
ข้อกำหนดเบื้องต้น
- บัญชี Authn8
- โทเค็นการเข้าถึงส่วนบุคคล (PAT) ที่สร้างขึ้นในแดชบอร์ด Authn8
เริ่มต้นอย่างรวดเร็ว
npx @authn8/mcp-server
ตั้งค่าตัวแปรสภาพแวดล้อม AUTHN8_API_KEY เป็นโทเค็น PAT ของคุณ
Docker
docker run -e AUTHN8_API_KEY=pat_xxx ghcr.io/authn8/mcp-server
การกำหนดค่า
Claude Desktop
เพิ่มลงในไฟล์การกำหนดค่า Claude Desktop ของคุณ:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}
Claude Code (CLI)
เพิ่มลงในไฟล์การกำหนดค่า Claude Code ของคุณ:
macOS: ~/.claude.json
Windows: %USERPROFILE%\.claude.json
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}
Cursor
เพิ่มลงในการตั้งค่า Cursor MCP ของคุณ:
{
"mcpServers": {
"authn8": {
"command": "npx",
"args": ["-y", "@authn8/mcp-server"],
"env": {
"AUTHN8_API_KEY": "pat_your_token_here"
}
}
}
}
ตัวแปรสภาพแวดล้อม
| ตัวแปร | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
AUTHN8_API_KEY | ใช่ | - | โทเค็น PAT ของคุณจาก Authn8 |
AUTHN8_API_URL | ไม่ใช่ | https://api.authn8.com | URL ปลายทางของ API |
เครื่องมือที่พร้อมใช้งาน
list_accounts
ส่งคืนบัญชี 2FA ทั้งหมดที่โทเค็นนี้เข้าถึงได้
ตัวอย่างการตอบกลับ:
[
{
"id": "924c52a6-4457-4970-a39f-4dc620217683",
"name": "AWS Production",
"issuer": "amazon.com"
}
]
get_otp
สร้างรหัส TOTP สำหรับบัญชีที่ระบุ
พารามิเตอร์:
account_id(สตริง, ไม่บังคับ) - UUID ของบัญชีaccount_name(สตริง, ไม่บังคับ) - ชื่อที่ต้องการค้นหา (การจับคู่บางส่วน)
ระบุ account_id หรือ account_name หากมีหลายบัญชีที่ตรงกับชื่อ เครื่องมือจะส่งคืนรายการที่ตรงกัน
ตัวอย่างการตอบกลับ:
{
"account": "AWS Production",
"code": "483920"
}
whoami
ส่งคืนข้อมูลเกี่ยวกับโทเค็นปัจจุบัน
ตัวอย่างการตอบกลับ:
{
"business": "Bytecode Solutions",
"token_name": "MCP Server 2",
"scoped_groups": ["HR"],
"account_count": 1,
"expires_at": "2025-12-25T23:59:59Z"
}
ลิงก์
- Authn8 - สร้างบัญชีและจัดการโทเค็น 2FA
- ที่เก็บ GitHub