@straitlink/mcp 0.2.0 → 0.2.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 CHANGED
@@ -39,8 +39,8 @@ workspaces. The tools report iPhone results the same way, but treat iPhone insta
39
39
  | `create_link` | Create one link and get its `shortUrl` | secret |
40
40
  | `batch_create_links` | Create up to 500 links in one call (safe to re-run: existing slugs are per-item 409s) | secret |
41
41
  | `get_link` | Read one link by slug | secret |
42
- | `list_links` | List links, one page at a time | secret |
43
- | `update_link` | Change destination, title, tags or expiry. **Asks for `confirm: true`**: without it you get a preview and nothing changes | secret |
42
+ | `list_links` | List links, one page at a time. `status: "paused"` lists turned-off links (0.2.1) | secret |
43
+ | `update_link` | Change destination, title, tags or expiry, or `isActive` on its own (false pauses, true turns a paused link back on; 0.2.1). **Asks for `confirm: true`**: without it you get a preview and nothing changes | secret |
44
44
  | `get_analytics` | Taps, app opens, installs, conversions and revenue, by day / channel / link / platform (`GET /v1/analytics`). iPhone installs come from beta install matching | secret |
45
45
  | `check_app_links` | Check a domain's `assetlinks.json` and `apple-app-site-association`, with a fix for each problem | none |
46
46
  | `simulate_tap` | Dry-run one tap from one device or app (nothing recorded or billed) | secret |
@@ -50,7 +50,7 @@ workspaces. The tools report iPhone results the same way, but treat iPhone insta
50
50
  | `list_webhook_deliveries` | A webhook's deliveries (status, attempts, last HTTP status, next retry; no payloads). Without `webhookId`: the workspace's webhooks (id, receiver site, events) | secret |
51
51
  | `test_webhook` | Send one `ping` to a webhook now and see the receiver's status and time (not stored, not retried) | secret |
52
52
  | `redeliver_webhook_delivery` | Send a failed delivery again (same `X-Strait-Delivery` id). **Asks for `confirm: true`** | secret |
53
- | `deactivate_link` | Turn a link off: taps then get the "link not found" page. **Asks for `confirm: true`**; the API can't turn it back on yet | secret |
53
+ | `deactivate_link` | Turn a link off: taps then get the "link not found" page. **Asks for `confirm: true`**; turn it back on with `update_link` `isActive: true` | secret |
54
54
  | `search_docs` | Search the Strait docs offline (bundled index) | none |
55
55
 
56
56
  Every tool carries MCP annotations (`readOnlyHint`, `destructiveHint`, …) and its description starts with
package/dist/client.js CHANGED
@@ -77,7 +77,7 @@ export class StraitClient {
77
77
  return this.call('getLink', 'GET', `/v1/links/${encodeURIComponent(slug)}`);
78
78
  }
79
79
  listLinks(opts = {}) {
80
- return this.call('listLinks', 'GET', '/v1/links', { query: { limit: opts.limit ?? 50, cursor: opts.cursor } });
80
+ return this.call('listLinks', 'GET', '/v1/links', { query: { limit: opts.limit ?? 50, cursor: opts.cursor, status: opts.status } });
81
81
  }
82
82
  updateLink(slug, patch) {
83
83
  return this.call('updateLink', 'PATCH', `/v1/links/${encodeURIComponent(slug)}`, { body: patch });