Exposes a self-hosted AppCrane instance's deploy and ops tools so agents can deploy apps, manage secrets, read logs and roll back on your own server.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add appcrane --env APPCRANE_KEY='<APPCRANE_KEY>' --env APPCRANE_GITHUB_TOKEN='<APPCRANE_GITHUB_TOKEN>' -- npx -y appcrane-mcp~/.codex/config.toml
[mcp_servers.appcrane]
command = "npx"
args = ["-y", "appcrane-mcp"]
env = { APPCRANE_KEY = "<APPCRANE_KEY>", APPCRANE_GITHUB_TOKEN = "<APPCRANE_GITHUB_TOKEN>" }
# codex mcp add appcrane --env APPCRANE_KEY='<APPCRANE_KEY>' --env APPCRANE_GITHUB_TOKEN='<APPCRANE_GITHUB_TOKEN>' -- npx -y appcrane-mcp~/.cursor/mcp.json
{
"mcpServers": {
"appcrane": {
"command": "npx",
"args": [
"-y",
"appcrane-mcp"
],
"env": {
"APPCRANE_KEY": "<APPCRANE_KEY>",
"APPCRANE_GITHUB_TOKEN": "<APPCRANE_GITHUB_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"appcrane": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"appcrane-mcp"
],
"env": {
"APPCRANE_KEY": "<APPCRANE_KEY>",
"APPCRANE_GITHUB_TOKEN": "<APPCRANE_GITHUB_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"appcrane": {
"command": "npx",
"args": [
"-y",
"appcrane-mcp"
],
"env": {
"APPCRANE_KEY": "<APPCRANE_KEY>",
"APPCRANE_GITHUB_TOKEN": "<APPCRANE_GITHUB_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"appcrane": {
"command": "npx",
"args": [
"-y",
"appcrane-mcp"
],
"env": {
"APPCRANE_KEY": "<APPCRANE_KEY>",
"APPCRANE_GITHUB_TOKEN": "<APPCRANE_GITHUB_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"appcrane": {
"command": "npx",
"args": [
"-y",
"appcrane-mcp"
],
"env": {
"APPCRANE_KEY": "<APPCRANE_KEY>",
"APPCRANE_GITHUB_TOKEN": "<APPCRANE_GITHUB_TOKEN>"
}
}
}
}需要的环境变量
APPCRANE_KEYAPPCRANE_GITHUB_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。