agend CLI — install and configure agend environments for any MCP-compatible AI agent
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agend-sh --env AGEND_API_TOKEN='<AGEND_API_TOKEN>' -- docker run -i --rm -e AGEND_API_TOKEN ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f~/.codex/config.toml
[mcp_servers.agend-sh]
command = "docker"
args = ["run", "-i", "--rm", "-e", "AGEND_API_TOKEN", "ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f"]
env = { AGEND_API_TOKEN = "<AGEND_API_TOKEN>" }
# codex mcp add agend-sh --env AGEND_API_TOKEN='<AGEND_API_TOKEN>' -- docker run -i --rm -e AGEND_API_TOKEN ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f~/.cursor/mcp.json
{
"mcpServers": {
"agend-sh": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"AGEND_API_TOKEN",
"ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f"
],
"env": {
"AGEND_API_TOKEN": "<AGEND_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agend-sh": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"AGEND_API_TOKEN",
"ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f"
],
"env": {
"AGEND_API_TOKEN": "<AGEND_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agend-sh": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"AGEND_API_TOKEN",
"ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f"
],
"env": {
"AGEND_API_TOKEN": "<AGEND_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agend-sh": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"AGEND_API_TOKEN",
"ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f"
],
"env": {
"AGEND_API_TOKEN": "<AGEND_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agend-sh": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"AGEND_API_TOKEN",
"ghcr.io/agend-sh/agend-mcp@sha256:4462e2571be0e69003e1be93255e04523342e1e5aa17482ec3d63bd7506bb82f"
],
"env": {
"AGEND_API_TOKEN": "<AGEND_API_TOKEN>"
}
}
}
}需要的环境变量
AGEND_API_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。