Skip to content

Commit 160cc90

Browse files
committed
Add list preview branches tool
1 parent 7329ac4 commit 160cc90

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

docs/mcp-tools.mdx

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,32 @@ List deployments for a project with comprehensive filtering options.
496496
```
497497
</CodeGroup>
498498

499+
### list_preview_branches
500+
501+
List all preview branches in the project.
502+
503+
<ParamField query="projectRef" type="string" optional>
504+
The trigger.dev project ref, starts with `proj_`. We will attempt to automatically detect the
505+
project ref if running inside a directory that includes a trigger.config.ts file.
506+
</ParamField>
507+
508+
<ParamField query="configPath" type="string" optional>
509+
The path to the trigger.config.ts file. Only used when the trigger.config.ts file is not at the
510+
root dir (like in a monorepo setup). If not provided, we will try to find the config file in the
511+
current working directory.
512+
</ParamField>
513+
514+
<CodeGroup>
515+
```json Example Usage
516+
{
517+
"tool": "list_preview_branches",
518+
"arguments": {
519+
"projectRef": "proj_abc123"
520+
}
521+
}
522+
```
523+
</CodeGroup>
524+
499525
<Callout type="warning">
500-
The deploy tool is not available when the MCP server is running with the `--dev-only` flag.
526+
The deploy tool and list_preview_branches tool are not available when the MCP server is running with the `--dev-only` flag.
501527
</Callout>

0 commit comments

Comments
 (0)