@hoststack.dev/mcp 0.1.1 → 0.1.2
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 +4 -4
- package/dist/hoststack-mcp.js +3 -3
- package/dist/hoststack-mcp.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Model Context Protocol (MCP) server for [HostStack](https://hoststack.dev) — l
|
|
|
4
4
|
|
|
5
5
|
Two ways to run it:
|
|
6
6
|
|
|
7
|
-
- **Hosted** (recommended) — point your client at `https://
|
|
7
|
+
- **Hosted** (recommended) — point your client at `https://hoststack.dev/api/mcp` with a Bearer API key. No local install.
|
|
8
8
|
- **Local stdio** — `npx -y @hoststack.dev/mcp` runs the same server in-process and talks JSON-RPC over stdin/stdout.
|
|
9
9
|
|
|
10
10
|
## Quick start
|
|
@@ -58,7 +58,7 @@ claude mcp add hoststack -- npx -y @hoststack.dev/mcp -e HOSTSTACK_API_KEY=hs_li
|
|
|
58
58
|
#### Any other client (hosted)
|
|
59
59
|
|
|
60
60
|
```http
|
|
61
|
-
POST https://
|
|
61
|
+
POST https://hoststack.dev/api/mcp
|
|
62
62
|
Authorization: Bearer hs_live_...
|
|
63
63
|
Content-Type: application/json
|
|
64
64
|
```
|
|
@@ -99,14 +99,14 @@ A few design notes worth knowing as a caller:
|
|
|
99
99
|
- **`list_env_vars` masks secret values.** Anything stored with `is_secret: true` comes back as `••••••`. The masking happens server-side, so you can't accidentally leak a secret to the agent's context window.
|
|
100
100
|
- **`get_service_logs` and `get_deploy_logs` are snapshots.** Streaming logs over MCP isn't supported — re-call the tool to get newer entries. Use the dashboard's `/dashboard/services/:id/logs` for live tails.
|
|
101
101
|
- **No `delete_project`, `delete_service`, or `create_service`.** Destructive cascades and the wizard flow are dashboard-only — too risky / too complex for v0.x.
|
|
102
|
-
- **Telemetry, hosted only.** When you use `https://
|
|
102
|
+
- **Telemetry, hosted only.** When you use `https://hoststack.dev/api/mcp`, we record one row per tool call (tool name, duration, ok/error, SHA-derived hash of input args — never the args themselves) for the analytics page and on-call alerts. Retained 30 days. The local stdio install records nothing.
|
|
103
103
|
|
|
104
104
|
## Environment variables
|
|
105
105
|
|
|
106
106
|
| Var | Required | Default | Notes |
|
|
107
107
|
|---|---|---|---|
|
|
108
108
|
| `HOSTSTACK_API_KEY` | yes | — | Bearer token. `hs_live_…` for prod, `hs_test_…` for the test team. |
|
|
109
|
-
| `HOSTSTACK_BASE_URL` | no | `https://
|
|
109
|
+
| `HOSTSTACK_BASE_URL` | no | `https://hoststack.dev` | Override for self-hosted or staging. |
|
|
110
110
|
| `HOSTSTACK_MCP_TRACE` | no | unset | Set to `1` to emit one NDJSON line per tool call to stderr. Useful for `2> mcp-trace.log` debugging without colliding with the JSON-RPC body on stdout. |
|
|
111
111
|
|
|
112
112
|
## License
|
package/dist/hoststack-mcp.js
CHANGED
|
@@ -1371,9 +1371,9 @@ defineTool({
|
|
|
1371
1371
|
|
|
1372
1372
|
// src/server-factory.ts
|
|
1373
1373
|
var PACKAGE_NAME = "hoststack";
|
|
1374
|
-
var PACKAGE_VERSION = "0.1.
|
|
1374
|
+
var PACKAGE_VERSION = "0.1.2";
|
|
1375
1375
|
function createMcpServer(options) {
|
|
1376
|
-
const baseUrl2 = (options.baseUrl ?? "https://
|
|
1376
|
+
const baseUrl2 = (options.baseUrl ?? "https://hoststack.dev").replace(/\/$/, "");
|
|
1377
1377
|
const hoststack = new HostStack({ apiKey: options.apiKey, baseUrl: baseUrl2 });
|
|
1378
1378
|
const api = new ApiClient(options.apiKey, baseUrl2);
|
|
1379
1379
|
const server2 = new McpServer({
|
|
@@ -1447,7 +1447,7 @@ if (!apiKey) {
|
|
|
1447
1447
|
console.error("HOSTSTACK_API_KEY environment variable is required");
|
|
1448
1448
|
process.exit(1);
|
|
1449
1449
|
}
|
|
1450
|
-
var baseUrl = process.env["HOSTSTACK_BASE_URL"] ?? "https://
|
|
1450
|
+
var baseUrl = process.env["HOSTSTACK_BASE_URL"] ?? "https://hoststack.dev";
|
|
1451
1451
|
var traceEnabled = process.env["HOSTSTACK_MCP_TRACE"] === "1";
|
|
1452
1452
|
var onToolCall = traceEnabled ? (event) => {
|
|
1453
1453
|
process.stderr.write(
|