Repository navigation
fix(cli-v3): fallback to context projectRef option in getProjectRef (#5139) - #5140
aftab8052tech wants to merge 1 commit into
Conversation
|
|
Hi @aftab8052tech, thanks for your interest in contributing! This project requires that pull request authors are vouched, and you are not in the list of vouched users. This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details. |
| if (this.options.projectRef) { | ||
| return this.options.projectRef; | ||
| } |
There was a problem hiding this comment.
🟡 Missing changeset for MCP fix
The getProjectRef fix changes published CLI behavior, but the PR contains no changeset. Release requirements require one for user-facing package fixes, leaving this fix outside the changeset release plan.
Learn more
The published trigger.dev package uses Changesets for package releases. This PR fixes MCP tools failing when a startup project reference is provided without a local config, which meets the user-facing fix criteria. No changeset is included in the diff.
Example: A user running trigger.dev mcp --project-ref proj_example outside a configured project can now use project tools, but no release entry communicates that fix.
Recommended fix: Add a changeset with "trigger.dev": patch and a user-facing sentence explaining that MCP tools now honor --project-ref without requiring a local project config.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Overview
Fixes #5139
When running
trigger.dev mcp --project-ref <ref>from a directory without atrigger.config.ts,toMcpContextOptionsforwardsprojectReftoMcpContextOptions. However,McpContext.getProjectRefonly checked the tool call'soptions.projectRefand then attempted to loadtrigger.config.ts. It never checkedthis.options.projectRef.As a result, tools like
list_runsfailed with "No project ref found. Please provide a projectRef." even when--project-refwas supplied on startup.Changes
McpContext.getProjectRef, fall back tothis.options.projectRefwhen the tool invocation provides noprojectRef.