Claude Desktop
Claude Desktop: dùng connector tùy chỉnh giống như trên web, hoặc claude_desktop_config.json thông qua aicharged CLI (stdio).
- Khóa API (Bearer)
- Đăng nhập bằng OAuth
- Cầu nối cục bộ (stdio)
- Mở Customize → Connectors.
- Nhấp + Add → Add custom connector.
- Name: aicharged · Remote MCP server URL: https://aicharged.io/api/v1/mcp
- Authentication: No sign in · Request headers: Authorization: Bearer <API_KEY>
- Lưu, rồi bật aicharged trong cuộc trò chuyện từ menu +.
- Cách thay thế không cần connector: ghi claude_desktop_config.json (bên dưới) và khởi động lại Claude Desktop.
URL máy chủ MCP từ xa
Khuyên dùnghttps://aicharged.io/api/v1/mcp
Header yêu cầu
Authorization: Bearer <API_KEY>
claude_desktop_config.json thông qua aicharged CLI (stdio)
claude_desktop_config.json
· cần aicharged CLI
{
"mcpServers": {
"aicharged": {
"command": "aicharged",
"args": [
"mcp",
"serve"
]
}
}
}
macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\ (Settings → Developer → Edit Config).
claude_desktop_config.json thông qua cầu nối mcp-remote
claude_desktop_config.json
{
"mcpServers": {
"aicharged": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://aicharged.io/api/v1/mcp",
"--header",
"Authorization:${AUTH_HEADER}",
"--transport",
"http-only"
],
"env": {
"AUTH_HEADER": "Bearer <API_KEY>"
}
}
}
}
Không có dấu cách sau dấu hai chấm trong Authorization:${AUTH_HEADER} — giá trị thuộc về env.