@digitalocean/mcp 0.0.12 → 1.0.0-aplha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -152
- package/dist/app-create-schema.json +1946 -0
- package/dist/app-update-schema.json +1957 -0
- package/dist/mcp-digitalocean-darwin-amd64 +0 -0
- package/dist/mcp-digitalocean-darwin-arm64 +0 -0
- package/dist/mcp-digitalocean-linux-386 +0 -0
- package/dist/mcp-digitalocean-linux-amd64 +0 -0
- package/dist/mcp-digitalocean-linux-arm +0 -0
- package/dist/mcp-digitalocean-linux-arm64 +0 -0
- package/dist/mcp-digitalocean-windows-386.exe +0 -0
- package/dist/mcp-digitalocean-windows-amd64.exe +0 -0
- package/dist/mcp-digitalocean-windows-arm.exe +0 -0
- package/dist/mcp-digitalocean-windows-arm64.exe +0 -0
- package/index.js +87 -0
- package/package.json +36 -30
- package/build/DOMcpServer.js +0 -18
- package/build/api.js +0 -94
- package/build/index.js +0 -18
- package/build/index.js.map +0 -7
- package/build/logger.js +0 -47
- package/build/server.js +0 -29
- package/build/specs/digitalocean-openapi.yaml.zod.js +0 -10231
- package/build/tools/app.js +0 -613
- package/build/tools/databases.js +0 -306
- package/build/version.js +0 -5
package/README.md
CHANGED
|
@@ -1,153 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Digitalocean MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
This MCP server exposes DigitalOcean App Platform functionality through standardized tools that can be used by any MCP client, including Claude Desktop and [Cursor](https://docs.cursor.com/context/model-context-protocol). It enables AI assistants to directly manage your DigitalOcean apps without needing to write code or remember complex API endpoints.
|
|
8
|
-
|
|
9
|
-
## Features
|
|
10
|
-
|
|
11
|
-
- Manage apps (create, update, delete, restart)
|
|
12
|
-
- Work with deployments (list, create, get, cancel)
|
|
13
|
-
- Access logs for apps and deployments
|
|
14
|
-
- Retrieve execution URLs for components
|
|
15
|
-
- View instance sizes and regions
|
|
16
|
-
- Validate app specifications
|
|
17
|
-
- Manage app alerts
|
|
18
|
-
- Handle app rollbacks
|
|
19
|
-
- View bandwidth metrics
|
|
20
|
-
|
|
21
|
-
## Setting up with Claude Desktop
|
|
22
|
-
|
|
23
|
-
1. Open Claude Desktop
|
|
24
|
-
2. Go to Settings → Developer → Edit Config
|
|
25
|
-
3. This will open `claude_desktop_config.json`
|
|
26
|
-
4. Add or update the configuration with:
|
|
27
|
-
|
|
28
|
-
```json
|
|
29
|
-
{
|
|
30
|
-
"mcpServers": {
|
|
31
|
-
"digitalocean": {
|
|
32
|
-
"command": "npx",
|
|
33
|
-
"args": ["@digitalocean/mcp"],
|
|
34
|
-
"env": {
|
|
35
|
-
"DIGITALOCEAN_API_TOKEN": "your_personal_access_token"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
5. Replace `your_personal_access_token` with your actual DigitalOcean API token
|
|
43
|
-
6. Save the file and restart Claude Desktop
|
|
44
|
-
|
|
45
|
-
## Setting up with Cursor
|
|
46
|
-
|
|
47
|
-
1. Go to Cursor Settings → MCP → Click on "Add a new global MCP server"
|
|
48
|
-
2. This will open `~/.cursor/mcp.json`
|
|
49
|
-
3. Add or update the configuration with the same JSON as used for Claude Desktop:
|
|
50
|
-
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"mcpServers": {
|
|
54
|
-
"digitalocean": {
|
|
55
|
-
"command": "npx",
|
|
56
|
-
"args": ["@digitalocean/mcp"],
|
|
57
|
-
"env": {
|
|
58
|
-
"DIGITALOCEAN_API_TOKEN": "your_personal_access_token"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
4. Replace `your_personal_access_token` with your actual DigitalOcean API token
|
|
66
|
-
5. Save the file and ensure the server is activated in Cursor Settings → MCP
|
|
67
|
-
|
|
68
|
-
## Using with Claude Desktop or Cursor
|
|
69
|
-
|
|
70
|
-
Once configured, you can start chatting with the AI assistant using natural language to manage your DigitalOcean App Platform resources. Here are some examples of what you can ask:
|
|
71
|
-
|
|
72
|
-
### Basic App Management
|
|
73
|
-
|
|
74
|
-
- "How many DigitalOcean apps do I have?"
|
|
75
|
-
- "List all my current apps on DigitalOcean"
|
|
76
|
-
- "Show me details for my app called 'customer-portal'"
|
|
77
|
-
- "Restart my app 'api-backend'"
|
|
78
|
-
- "Delete the app named 'test-environment'"
|
|
79
|
-
|
|
80
|
-
### Deployments
|
|
81
|
-
|
|
82
|
-
- "When was the last deployment for my 'production-website' app?"
|
|
83
|
-
- "Show me all deployments for my 'user-service' app"
|
|
84
|
-
- "Cancel the current deployment for my 'staging-env' app"
|
|
85
|
-
- "What's the status of the latest deployment for my 'data-processor' app?"
|
|
86
|
-
|
|
87
|
-
### Creating and Updating Apps
|
|
88
|
-
|
|
89
|
-
- "Create a new static site app on DigitalOcean that deploys from my GitHub repo yourusername/static-website"
|
|
90
|
-
- "Create a Flask app on DigitalOcean with the following specification: Python 3.9, 1 CPU, 1GB RAM, connected to my GitHub repo yourusername/flask-app"
|
|
91
|
-
- "Update my 'api-service' app to use 2GB of RAM instead of 1GB"
|
|
92
|
-
- "Set up a Node.js app that uses a managed PostgreSQL database"
|
|
93
|
-
|
|
94
|
-
### Logs and Debugging
|
|
95
|
-
|
|
96
|
-
- "Show me the logs for the 'web' component of my 'ecommerce' app"
|
|
97
|
-
- "Get the latest build logs for my 'backend-api' app"
|
|
98
|
-
- "What errors are showing up in my 'auth-service' deployment logs?"
|
|
99
|
-
|
|
100
|
-
### Infrastructure Information
|
|
101
|
-
|
|
102
|
-
- "What regions can I deploy my DigitalOcean apps to?"
|
|
103
|
-
- "List all available instance sizes for app components"
|
|
104
|
-
- "What's the smallest instance size I can use for a service component?"
|
|
105
|
-
- "Show me my bandwidth usage across all apps this month"
|
|
106
|
-
|
|
107
|
-
## Available Tools
|
|
108
|
-
|
|
109
|
-
Here's a quick overview of the available tools:
|
|
110
|
-
|
|
111
|
-
- `list_apps` - List all apps on your account
|
|
112
|
-
- `create_app` - Create a new app with an app specification
|
|
113
|
-
- `get_app` - Get details about a specific app
|
|
114
|
-
- `update_app` - Update an existing app
|
|
115
|
-
- `delete_app` - Delete an app
|
|
116
|
-
- `restart_app` - Restart an app
|
|
117
|
-
- `list_deployments` - List all deployments for an app
|
|
118
|
-
- `create_deployment` - Create a new deployment
|
|
119
|
-
- `get_deployment` - Get details about a specific deployment
|
|
120
|
-
- `cancel_deployment` - Cancel a deployment
|
|
121
|
-
- `retrieve_active_deployment_logs` - Get logs for a component of the active deployment
|
|
122
|
-
- `download_logs` - Download logs from a URL
|
|
123
|
-
- `list_app_regions` - List all regions supported by App Platform
|
|
124
|
-
- `list_instance_sizes` - List all instance sizes for components
|
|
125
|
-
- `validate_app_spec` - Validate an app specification
|
|
126
|
-
- `list_app_alerts` - List alerts for an app
|
|
127
|
-
- `update_app_alert_destinations` - Update alert destinations
|
|
128
|
-
- `rollback_app` - Rollback an app to a previous deployment
|
|
129
|
-
- `validate_app_rollback` - Validate an app rollback
|
|
130
|
-
- `commit_app_rollback` - Commit an app rollback
|
|
131
|
-
- `revert_app_rollback` - Revert an app rollback
|
|
132
|
-
- `get_app_bandwidth_daily_metrics` - Get bandwidth metrics for an app
|
|
133
|
-
- `get_all_app_bandwidth_daily_metrics` - Get bandwidth metrics for all apps
|
|
134
|
-
|
|
135
|
-
## Troubleshooting
|
|
136
|
-
|
|
137
|
-
### Common Issues
|
|
138
|
-
|
|
139
|
-
- **Authentication Problems**: Ensure your DigitalOcean API token is valid and has the necessary permissions
|
|
140
|
-
|
|
141
|
-
### If Tools Are Not Showing Up
|
|
142
|
-
|
|
143
|
-
1. Check that the MCP server icon appears in the UI
|
|
144
|
-
2. Verify your API token has the necessary permissions
|
|
145
|
-
3. Check the app logs for any error messages
|
|
146
|
-
|
|
147
|
-
## License
|
|
148
|
-
|
|
149
|
-
[MIT License](LICENSE)
|
|
150
|
-
|
|
151
|
-
## Contributing
|
|
152
|
-
|
|
153
|
-
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
3
|
+
NPM package for DigitalOcean MCP server, providing integration with DigitalOcean's services. For full documentation, see [DigitalOcean MCP](https://github.com/digitalocean-labs/mcp-digitalocean/blob/main/README.md)
|