Skip to content

Commit 9d256a1

Browse files
committed
fix(cli): hide mutating tools in read-only MCP mode
1 parent 6e943f2 commit 9d256a1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Hide profile switching and local dev-server process controls when the MCP server runs in read-only mode.

packages/cli-v3/src/mcp/tools.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ const WRITE_TOOLS = new Set([
4848
startAgentChatTool.name,
4949
sendAgentMessageTool.name,
5050
closeAgentChatTool.name,
51+
switchProfileTool.name,
52+
startDevServerTool.name,
53+
stopDevServerTool.name,
5154
]);
5255

5356
export function registerTools(context: McpContext) {

0 commit comments

Comments
 (0)