basicdeploy-mcp
Advanced tools
+1
-1
| { | ||
| "name": "basicdeploy-mcp", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "MCP server for BasicDeploy - lets AI coding agents deploy and manage containers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+1
-1
@@ -47,3 +47,3 @@ <p align="center"><img src="./logo.svg" width="96" alt="BasicDeploy"></p> | ||
| |---|---|---| | ||
| | `BASICDEPLOY_API_KEY` | Yes | Your API key (`bd_…`). The server refuses to start without it. | | ||
| | `BASICDEPLOY_API_KEY` | Yes | Your API key (`bd_…`). Required to call any tool (the server still starts and lists its tools without it, so clients can introspect it). | | ||
| | `BASICDEPLOY_URL` | No | API base URL. Defaults to `https://basicdeploy.com`. | | ||
@@ -50,0 +50,0 @@ |
+9
-8
@@ -7,10 +7,5 @@ // Thin REST client for the BasicDeploy API. | ||
| if (!API_KEY) { | ||
| console.error( | ||
| "Error: BASICDEPLOY_API_KEY environment variable is not set.\n" + | ||
| "Create an API key in the BasicDeploy dashboard (API Keys -> Create) and set:\n" + | ||
| ' BASICDEPLOY_API_KEY="bd_..."' | ||
| ); | ||
| process.exit(1); | ||
| } | ||
| // The API key is required to CALL any tool, but NOT to start the server or list its | ||
| // tools — so MCP clients (and registries like Glama) can introspect the server | ||
| // without credentials. The check happens per request, below. | ||
@@ -23,2 +18,8 @@ /** | ||
| async function request(path, { method = "GET", body, headers = {} } = {}) { | ||
| if (!API_KEY) { | ||
| throw new Error( | ||
| "BASICDEPLOY_API_KEY is not set. Create an API key at https://basicdeploy.com/api-keys " + | ||
| 'and set BASICDEPLOY_API_KEY="bd_..." in the server env.' | ||
| ); | ||
| } | ||
| const url = `${BASE_URL}${path}`; | ||
@@ -25,0 +26,0 @@ const init = { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
24038
1.09%467
0.21%