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
Copy file name to clipboardExpand all lines: AGENTS.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -351,6 +351,9 @@ if apiErr, ok := err.(*hookdeck.APIError); ok {
351
351
- **Always run tests** when changing code. Run unit tests (`go test ./pkg/...`) and, for CLI-facing changes, acceptance tests (`go test ./test/acceptance/...`). If tests fail due to TLS/network/sandbox (e.g. `x509`, `operation not permitted`), prompt the user and re-run with elevated permissions (e.g. `required_permissions: ["all"]`) so tests can pass.
352
352
- **Create tests for new functionality.** Add unit tests for validation and business logic; add acceptance tests for flows that use the CLI as a user or agent would (success and failure paths). Acceptance tests must pass or fail—no skipping to avoid failures.
353
353
354
+
### Acceptance Test Setup
355
+
Acceptance tests require a Hookdeck API key. See [`test/acceptance/README.md`](test/acceptance/README.md) for full details. Quick setup: create `test/acceptance/.env` with `HOOKDECK_CLI_TESTING_API_KEY=<key>`. The `.env` file is git-ignored and must never be committed.
Copy file name to clipboardExpand all lines: plans/hookdeck_mcp_detailed_implementation_plan.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,17 @@ This document maps the high-level MCP build-out plan against the existing hookde
12
12
13
13
---
14
14
15
-
## Current Status (updated 2026-03-09)
15
+
## Current Status (updated 2026-03-10)
16
16
17
17
| Part | Description | Status |
18
18
|------|-------------|--------|
19
19
| Part 1 | Issues CLI Backfill (prerequisite) |**COMPLETE**|
20
20
| Part 2 | Metrics CLI Consolidation (prerequisite) |**COMPLETE**|
21
21
| Part 3 | MCP Server Skeleton |**COMPLETE**|
22
22
| Part 4 | MCP Tool Implementations |**COMPLETE**|
23
-
| Part 5 | Integration Testing & Polish |PENDING|
23
+
| Part 5 | Integration Testing & Polish |**COMPLETE**|
24
24
25
-
**What's done:** Parts 1–4 are complete. The MCP server is fully functional with all 11 resource tools and the `hookdeck_login` tool implemented. All tools have been manually tested against the live Hookdeck API (sources, connections, destinations, transformations, requests, events, attempts, issues, metrics, projects, help). Both auth paths verified: pre-authenticated via `--api-key` flag (11 tools, no login) and unauthenticated startup (12 tools including `hookdeck_login`, resource tools return auth error).
26
-
27
-
**What's next:** Part 5 — integration testing and polish. Two schema/UX issues were found and fixed during testing: `measures` was not marked required in `hookdeck_metrics` (caused confusing 422), and `hookdeck_help` gave a poor error for non-tool-name topics.
25
+
**What's done:** All 5 parts are complete. The MCP server is fully functional with all 11 resource tools and the `hookdeck_login` tool. 80 unit/integration tests cover all tools, actions, error scenarios (404, 422, 429), auth guards, and project switching. Acceptance test suite passes with no regressions from MCP changes (transient 502s and listen-test timeouts are pre-existing issues). Tool descriptions have been polished for accuracy (event-centric terminology, destination types: HTTP/CLI/MOCK). AGENTS.md updated with acceptance test setup guidance.
0 commit comments