1在 AI 客户端添加 MCP 服务器 (只需一次)Add the MCP server to your AI client (once)
https://admit.chenyouai.com/mcp- Claude Code
claude mcp add --transport http admit https://admit.chenyouai.com/mcp- Codex CLI
codex mcp add admit --url https://admit.chenyouai.com/mcp- Cursor
-
写入
~/.cursor/mcp.json:Add to
~/.cursor/mcp.json:{ "mcpServers": { "admit": { "url": "https://admit.chenyouai.com/mcp" } } } - claude.ai
- Customize › Connectors › Add custom connector,填入上面的地址,认证选 No sign-in。Customize › Connectors › Add custom connector, enter the address above and choose No sign-in.
- ChatGPT
- 在 Settings › Apps › Advanced settings 中开启 Developer mode,新建应用并填入上面的地址,认证选 No authentication。目前仅确认 Business、Enterprise、Edu 可用。Turn on Developer mode under Settings › Apps › Advanced settings, create an app with the address above and choose No authentication. Currently confirmed only for Business, Enterprise and Edu.
2在要操作的机器上运行 admitRun admit on the machine
- Linux / macOS
curl -fsSL https://admit.chenyouai.com/install.sh | sh- Windows
irm https://admit.chenyouai.com/install.ps1 | iex
需要在终端逐条确认修改操作时,加 --approve:
To confirm each change in the terminal, add --approve:
- Linux / macOS
curl -fsSL https://admit.chenyouai.com/install.sh | sh -s -- --approve- Windows
& ([scriptblock]::Create((irm https://admit.chenyouai.com/install.ps1))) -AdmitArguments '--approve'
其他参数:--read-only 只读 · --idle 30m 空闲退出 · --ttl 2h 总时限 · --cwd DIR 默认目录。多个参数依次追加,Windows 中用逗号分隔,如 '--read-only','--ttl','1h'。
Other options: --read-only read only · --idle 30m exit when idle · --ttl 2h time limit · --cwd DIR default directory. Append several in order; on Windows separate them with commas, e.g. '--read-only','--ttl','1h'.
3把终端显示的那句话发给 AISend the sentence shown in the terminal to the AI
请通过 admit 操作我的机器,machine 参数为 XXXX-XXXX-XXXX-XXXX
按 Ctrl+C 结束授权,会话码随即失效。
Send it as is (it is written in Chinese). Press Ctrl+C to revoke access; the code stops working immediately.
手动下载后运行 admit --relay https://admit.chenyouai.com:Manual download, then run admit --relay https://admit.chenyouai.com:
admit_linux_amd64 · admit_linux_arm64 · admit_darwin_amd64 · admit_darwin_arm64 · admit_windows_amd64.exe · admit_windows_arm64.exe · SHA256SUMS