Skip to content

Commit 81466e7

Browse files
committed
feat(mcp): disable create ticket for doers
1 parent 740bf17 commit 81466e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doit-mcp-server/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ export class DoitMCPAgent extends McpAgent {
254254

255255
// Tickets tools
256256
this.registerTool(listTicketsTool, ListTicketsArgumentsSchema);
257-
this.registerTool(createTicketTool, CreateTicketArgumentsSchema);
257+
if (this.props.isDoitUser !== "true") {
258+
this.registerTool(createTicketTool, CreateTicketArgumentsSchema);
259+
}
258260

259261
// Invoices tools
260262
this.registerTool(listInvoicesTool, ListInvoicesArgumentsSchema);

0 commit comments

Comments
 (0)