fix(cli): hide mutating tools in read-only MCP mode
📦 Preview packages (pkg.pr.new) / Build and publish previews (push) Has been cancelled

This commit is contained in:
Chris Arderne
2026-07-13 16:43:58 +01:00
parent 6e943f2421
commit 9d256a11c7
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---
Hide profile switching and local dev-server process controls when the MCP server runs in read-only mode.
+3
View File
@@ -48,6 +48,9 @@ const WRITE_TOOLS = new Set([
startAgentChatTool.name,
sendAgentMessageTool.name,
closeAgentChatTool.name,
switchProfileTool.name,
startDevServerTool.name,
stopDevServerTool.name,
]);
export function registerTools(context: McpContext) {