|
1 | 1 | # trigger.dev |
2 | 2 |
|
| 3 | +## 4.4.4 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- Fix dev CLI leaking build directories on rebuild, causing disk space accumulation. Deprecated workers are now pruned (capped at 2 retained) when no active runs reference them. The watchdog process also cleans up `.trigger/tmp/` when the dev CLI is killed ungracefully (e.g. SIGKILL from pnpm). ([#3224](https://github.com/triggerdotdev/trigger.dev/pull/3224)) |
| 8 | +- MCP server improvements: new tools, bug fixes, and new flags. ([#3224](https://github.com/triggerdotdev/trigger.dev/pull/3224)) |
| 9 | + |
| 10 | + **New tools:** |
| 11 | + |
| 12 | + - `get_query_schema` — discover available TRQL tables and columns |
| 13 | + - `query` — execute TRQL queries against your data |
| 14 | + - `list_dashboards` — list built-in dashboards and their widgets |
| 15 | + - `run_dashboard_query` — execute a single dashboard widget query |
| 16 | + - `whoami` — show current profile, user, and API URL |
| 17 | + - `list_profiles` — list all configured CLI profiles |
| 18 | + - `switch_profile` — switch active profile for the MCP session |
| 19 | + - `start_dev_server` — start `trigger dev` in the background and stream output |
| 20 | + - `stop_dev_server` — stop the running dev server |
| 21 | + - `dev_server_status` — check dev server status and view recent logs |
| 22 | + |
| 23 | + **New API endpoints:** |
| 24 | + |
| 25 | + - `GET /api/v1/query/schema` — query table schema discovery |
| 26 | + - `GET /api/v1/query/dashboards` — list built-in dashboards |
| 27 | + |
| 28 | + **New features:** |
| 29 | + |
| 30 | + - `--readonly` flag hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes |
| 31 | + - `read:query` JWT scope for query endpoint authorization |
| 32 | + - `get_run_details` trace output is now paginated with cursor support |
| 33 | + - MCP tool annotations (`readOnlyHint`, `destructiveHint`) for all tools |
| 34 | + |
| 35 | + **Bug fixes:** |
| 36 | + |
| 37 | + - Fixed `search_docs` tool failing due to renamed upstream Mintlify tool (`SearchTriggerDev` → `search_trigger_dev`) |
| 38 | + - Fixed `list_deploys` failing when deployments have null `runtime`/`runtimeVersion` fields (#3139) |
| 39 | + - Fixed `list_preview_branches` crashing due to incorrect response shape access |
| 40 | + - Fixed `metrics` table column documented as `value` instead of `metric_value` in query docs |
| 41 | + - Fixed dev CLI leaking build directories on rebuild — deprecated workers now clean up their build dirs when their last run completes |
| 42 | + |
| 43 | + **Context optimizations:** |
| 44 | + |
| 45 | + - `get_query_schema` now requires a table name and returns only one table's schema (was returning all tables) |
| 46 | + - `get_current_worker` no longer inlines payload schemas; use new `get_task_schema` tool instead |
| 47 | + - Query results formatted as text tables instead of JSON (~50% fewer tokens) |
| 48 | + - `cancel_run`, `list_deploys`, `list_preview_branches` formatted as text instead of raw JSON |
| 49 | + - Schema and dashboard API responses cached to avoid redundant fetches |
| 50 | + |
| 51 | +- Adapted the CLI API client to propagate the trigger source via http headers. ([#3241](https://github.com/triggerdotdev/trigger.dev/pull/3241)) |
| 52 | +- Updated dependencies: |
| 53 | + - `@trigger.dev/core@4.4.4` |
| 54 | + - `@trigger.dev/build@4.4.4` |
| 55 | + - `@trigger.dev/schema-to-json@4.4.4` |
| 56 | + |
3 | 57 | ## 4.4.3 |
4 | 58 |
|
5 | 59 | ### Patch Changes |
|
0 commit comments