fix(cli): hide mutating tools in read-only MCP mode
📦 Preview packages (pkg.pr.new) / Build and publish previews (push) Has been cancelled
📦 Preview packages (pkg.pr.new) / Build and publish previews (push) Has been cancelled
This commit is contained in:
@@ -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.
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user