Package Exports
- goploy-cli
- goploy-cli/dist/mcp.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (goploy-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
goploy-cli
CLI & MCP server for the Goploy deployment system.
Tested against Goploy ≥ 1.17.5
Installation
# Global CLI
npm i -g goploy-cli
goploy config check
# npx (recommended for MCP)
npx -y goploy-cli config check
# From source
git clone https://github.com/goploy-devops/goploy-cli
cd goploy-cli && npm i && npm run build && npm linkConfiguration
Set environment variables:
| Variable | Required | Description |
|---|---|---|
GOPLOY_URL |
Yes | Goploy server URL (e.g. https://goploy.example.com) |
GOPLOY_API_KEY |
Yes | API key (generate in Goploy UI → User → API Key) |
GOPLOY_NAMESPACE_ID |
No | Namespace ID (default: 1) |
GOPLOY_DEBUG |
No | Set to 1 for debug HTTP logging |
GOPLOY_INSECURE_SKIP_VERIFY |
No | Set to 1 for self-signed certs |
export GOPLOY_URL=https://goploy.example.com
export GOPLOY_API_KEY=your-api-key-here
export GOPLOY_NAMESPACE_ID=1CLI Usage
# List projects
goploy ls
goploy ls --keyword myapp
# Deploy
goploy publish my-project --branch main --wait
goploy publish 42 --commit abc123
# Check status
goploy status <token>
goploy wait <token> --timeout 300
# View trace
goploy trace <token> --detail
# Rollback
goploy rebuild <token>
# History
goploy history my-project --limit 10
# Reset stuck project
goploy reset my-project
# Verify config
goploy config checkMCP Server (for AI Agents)
Claude Code
export GOPLOY_URL=https://goploy.example.com
export GOPLOY_API_KEY=xxx
export GOPLOY_NAMESPACE_ID=1
claude mcp add goploy -- npx -y goploy-cli mcpCursor / Other MCP Clients
Add to your MCP configuration:
{
"mcpServers": {
"goploy": {
"command": "npx",
"args": ["-y", "goploy-cli", "mcp"],
"env": {
"GOPLOY_URL": "https://goploy.example.com",
"GOPLOY_API_KEY": "your-key",
"GOPLOY_NAMESPACE_ID": "1"
}
}
}
}Available MCP Tools
| Tool | Description |
|---|---|
list_projects |
List deployable projects (optional keyword filter) |
resolve_project |
Resolve project by name or ID (fuzzy match) |
publish |
Trigger deployment (returns token) |
get_publish_status |
Get deployment status snapshot |
wait_for_publish |
Poll until deployment finishes |
get_publish_trace |
Get deployment trace logs |
rebuild |
Rollback to previous deployment |
list_recent_deployments |
View deployment history |
reset_project_state |
Unlock stuck project |
Generating an API Key
- Log in to your Goploy web UI
- Go to User settings
- Click "Generate API Key"
- Copy the key and set it as
GOPLOY_API_KEY
Or via API:
curl -X PUT https://goploy.example.com/user/generateApiKey \
-H "Cookie: your-session-cookie"Development
npm install
npm run dev # watch mode
npm test # run tests
npm run build # production buildLicense
MIT