You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: accept connection name or ID in pause/unpause commands (#277)
* feat: accept connection name or ID in pause/unpause commands
* test(cli,mcp): finish connection name/ID resolution for issue #276
Completes the pause/unpause name-or-ID work from the parent commit and
aligns MCP, tests, and user-facing copy.
CLI
- Document pause/unpause with examples (ID and name) in command Long text.
- Add httptest coverage for resolveConnectionID: direct web_* ID, lookup
by name via ListConnections, and web_* GET 404 falling back to name.
Gateway MCP (hookdeck_connections)
- Resolve connection ID or name for get, pause, and unpause using the same
rules as the CLI (prefix probe, then list-by-name).
- Surface API errors during resolution through TranslateAPIError so
responses match other tools (e.g. authentication failures).
- Validation errors: id or name is required for get/pause/unpause.
- Refresh tool description, static help, and JSON schema text for get by
name.
Tests
- MCP server tests: stub GET /connections/{id} before pause/unpause;
include pagination limit in list mocks so name resolution succeeds;
add get/pause/unpause-by-name cases; update missing-parameter assertions.
- Acceptance: TestConnectionPauseUnpauseByName exercises pause/unpause by
name against the real API and checks paused_at via connection get.
Refs: #276
Made-with: Cursor
---------
Co-authored-by: leggetter <leggetter@users.noreply.github.com>
0 commit comments