@@ -195,6 +195,9 @@ func ListWorkflowRuns(getClient GetClientFn, t translations.TranslationHelperFun
195
195
func RunWorkflow (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
196
196
return mcp .NewTool ("run_workflow" ,
197
197
mcp .WithDescription (t ("TOOL_RUN_WORKFLOW_DESCRIPTION" , "Run an Actions workflow" )),
198
+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
199
+ ReadOnlyHint : toBoolPtr (false ),
200
+ }),
198
201
mcp .WithString ("owner" ,
199
202
mcp .Required (),
200
203
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
549
552
func RerunWorkflowRun (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
550
553
return mcp .NewTool ("rerun_workflow_run" ,
551
554
mcp .WithDescription (t ("TOOL_RERUN_WORKFLOW_RUN_DESCRIPTION" , "Re-run an entire workflow run" )),
555
+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
556
+ ReadOnlyHint : toBoolPtr (false ),
557
+ }),
552
558
mcp .WithString ("owner" ,
553
559
mcp .Required (),
554
560
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
608
614
func RerunFailedJobs (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
609
615
return mcp .NewTool ("rerun_failed_jobs" ,
610
616
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
+ }),
611
620
mcp .WithString ("owner" ,
612
621
mcp .Required (),
613
622
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
667
676
func CancelWorkflowRun (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
668
677
return mcp .NewTool ("cancel_workflow_run" ,
669
678
mcp .WithDescription (t ("TOOL_CANCEL_WORKFLOW_RUN_DESCRIPTION" , "Cancel a workflow run" )),
679
+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
680
+ ReadOnlyHint : toBoolPtr (false ),
681
+ }),
670
682
mcp .WithString ("owner" ,
671
683
mcp .Required (),
672
684
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
868
880
return mcp .NewTool ("delete_workflow_run_logs" ,
869
881
mcp .WithDescription (t ("TOOL_DELETE_WORKFLOW_RUN_LOGS_DESCRIPTION" , "Delete logs for a workflow run" )),
870
882
mcp .WithToolAnnotation (mcp.ToolAnnotation {
883
+ ReadOnlyHint : toBoolPtr (false ),
871
884
DestructiveHint : toBoolPtr (true ),
872
885
}),
873
886
mcp .WithString ("owner" ,
0 commit comments