@@ -195,6 +195,9 @@ func ListWorkflowRuns(getClient GetClientFn, t translations.TranslationHelperFun
195195func RunWorkflow (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
196196 return mcp .NewTool ("run_workflow" ,
197197 mcp .WithDescription (t ("TOOL_RUN_WORKFLOW_DESCRIPTION" , "Run an Actions workflow" )),
198+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
199+ ReadOnlyHint : toBoolPtr (false ),
200+ }),
198201 mcp .WithString ("owner" ,
199202 mcp .Required (),
200203 mcp .Description ("The account owner of the repository. The name is not case sensitive." ),
@@ -549,6 +552,9 @@ func GetJobLogs(getClient GetClientFn, t translations.TranslationHelperFunc) (to
549552func RerunWorkflowRun (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
550553 return mcp .NewTool ("rerun_workflow_run" ,
551554 mcp .WithDescription (t ("TOOL_RERUN_WORKFLOW_RUN_DESCRIPTION" , "Re-run an entire workflow run" )),
555+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
556+ ReadOnlyHint : toBoolPtr (false ),
557+ }),
552558 mcp .WithString ("owner" ,
553559 mcp .Required (),
554560 mcp .Description ("The account owner of the repository. The name is not case sensitive." ),
@@ -608,6 +614,9 @@ func RerunWorkflowRun(getClient GetClientFn, t translations.TranslationHelperFun
608614func RerunFailedJobs (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
609615 return mcp .NewTool ("rerun_failed_jobs" ,
610616 mcp .WithDescription (t ("TOOL_RERUN_FAILED_JOBS_DESCRIPTION" , "Re-run only the failed jobs in a workflow run" )),
617+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
618+ ReadOnlyHint : toBoolPtr (false ),
619+ }),
611620 mcp .WithString ("owner" ,
612621 mcp .Required (),
613622 mcp .Description ("The account owner of the repository. The name is not case sensitive." ),
@@ -667,6 +676,9 @@ func RerunFailedJobs(getClient GetClientFn, t translations.TranslationHelperFunc
667676func CancelWorkflowRun (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
668677 return mcp .NewTool ("cancel_workflow_run" ,
669678 mcp .WithDescription (t ("TOOL_CANCEL_WORKFLOW_RUN_DESCRIPTION" , "Cancel a workflow run" )),
679+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
680+ ReadOnlyHint : toBoolPtr (false ),
681+ }),
670682 mcp .WithString ("owner" ,
671683 mcp .Required (),
672684 mcp .Description ("The account owner of the repository. The name is not case sensitive." ),
@@ -868,6 +880,7 @@ func DeleteWorkflowRunLogs(getClient GetClientFn, t translations.TranslationHelp
868880 return mcp .NewTool ("delete_workflow_run_logs" ,
869881 mcp .WithDescription (t ("TOOL_DELETE_WORKFLOW_RUN_LOGS_DESCRIPTION" , "Delete logs for a workflow run" )),
870882 mcp .WithToolAnnotation (mcp.ToolAnnotation {
883+ ReadOnlyHint : toBoolPtr (false ),
871884 DestructiveHint : toBoolPtr (true ),
872885 }),
873886 mcp .WithString ("owner" ,
0 commit comments