@@ -75,8 +75,7 @@ func ListWorkflows(t translations.TranslationHelperFunc) inventory.ServerTool {
7575 Required : []string {"owner" , "repo" },
7676 }),
7777 },
78- scopes .ToStringSlice (scopes .Repo ),
79- scopes .ToStringSlice (scopes .Repo ),
78+ []scopes.Scope {scopes .Repo },
8079 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
8180 client , err := deps .GetClient (ctx )
8281 if err != nil {
@@ -203,8 +202,7 @@ func ListWorkflowRuns(t translations.TranslationHelperFunc) inventory.ServerTool
203202 Required : []string {"owner" , "repo" , "workflow_id" },
204203 }),
205204 },
206- scopes .ToStringSlice (scopes .Repo ),
207- scopes .ToStringSlice (scopes .Repo ),
205+ []scopes.Scope {scopes .Repo },
208206 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
209207 client , err := deps .GetClient (ctx )
210208 if err != nil {
@@ -316,8 +314,7 @@ func RunWorkflow(t translations.TranslationHelperFunc) inventory.ServerTool {
316314 Required : []string {"owner" , "repo" , "workflow_id" , "ref" },
317315 },
318316 },
319- scopes .ToStringSlice (scopes .Repo ),
320- scopes .ToStringSlice (scopes .Repo ),
317+ []scopes.Scope {scopes .Repo },
321318 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
322319 client , err := deps .GetClient (ctx )
323320 if err != nil {
@@ -422,8 +419,7 @@ func GetWorkflowRun(t translations.TranslationHelperFunc) inventory.ServerTool {
422419 Required : []string {"owner" , "repo" , "run_id" },
423420 },
424421 },
425- scopes .ToStringSlice (scopes .Repo ),
426- scopes .ToStringSlice (scopes .Repo ),
422+ []scopes.Scope {scopes .Repo },
427423 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
428424 client , err := deps .GetClient (ctx )
429425 if err != nil {
@@ -492,8 +488,7 @@ func GetWorkflowRunLogs(t translations.TranslationHelperFunc) inventory.ServerTo
492488 Required : []string {"owner" , "repo" , "run_id" },
493489 },
494490 },
495- scopes .ToStringSlice (scopes .Repo ),
496- scopes .ToStringSlice (scopes .Repo ),
491+ []scopes.Scope {scopes .Repo },
497492 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
498493 client , err := deps .GetClient (ctx )
499494 if err != nil {
@@ -577,8 +572,7 @@ func ListWorkflowJobs(t translations.TranslationHelperFunc) inventory.ServerTool
577572 Required : []string {"owner" , "repo" , "run_id" },
578573 }),
579574 },
580- scopes .ToStringSlice (scopes .Repo ),
581- scopes .ToStringSlice (scopes .Repo ),
575+ []scopes.Scope {scopes .Repo },
582576 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
583577 client , err := deps .GetClient (ctx )
584578 if err != nil {
@@ -691,8 +685,7 @@ func GetJobLogs(t translations.TranslationHelperFunc) inventory.ServerTool {
691685 Required : []string {"owner" , "repo" },
692686 },
693687 },
694- scopes .ToStringSlice (scopes .Repo ),
695- scopes .ToStringSlice (scopes .Repo ),
688+ []scopes.Scope {scopes .Repo },
696689 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
697690 client , err := deps .GetClient (ctx )
698691 if err != nil {
@@ -941,8 +934,7 @@ func RerunWorkflowRun(t translations.TranslationHelperFunc) inventory.ServerTool
941934 Required : []string {"owner" , "repo" , "run_id" },
942935 },
943936 },
944- scopes .ToStringSlice (scopes .Repo ),
945- scopes .ToStringSlice (scopes .Repo ),
937+ []scopes.Scope {scopes .Repo },
946938 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
947939 client , err := deps .GetClient (ctx )
948940 if err != nil {
@@ -1018,8 +1010,7 @@ func RerunFailedJobs(t translations.TranslationHelperFunc) inventory.ServerTool
10181010 Required : []string {"owner" , "repo" , "run_id" },
10191011 },
10201012 },
1021- scopes .ToStringSlice (scopes .Repo ),
1022- scopes .ToStringSlice (scopes .Repo ),
1013+ []scopes.Scope {scopes .Repo },
10231014 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
10241015 client , err := deps .GetClient (ctx )
10251016 if err != nil {
@@ -1095,8 +1086,7 @@ func CancelWorkflowRun(t translations.TranslationHelperFunc) inventory.ServerToo
10951086 Required : []string {"owner" , "repo" , "run_id" },
10961087 },
10971088 },
1098- scopes .ToStringSlice (scopes .Repo ),
1099- scopes .ToStringSlice (scopes .Repo ),
1089+ []scopes.Scope {scopes .Repo },
11001090 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
11011091 client , err := deps .GetClient (ctx )
11021092 if err != nil {
@@ -1174,8 +1164,7 @@ func ListWorkflowRunArtifacts(t translations.TranslationHelperFunc) inventory.Se
11741164 Required : []string {"owner" , "repo" , "run_id" },
11751165 }),
11761166 },
1177- scopes .ToStringSlice (scopes .Repo ),
1178- scopes .ToStringSlice (scopes .Repo ),
1167+ []scopes.Scope {scopes .Repo },
11791168 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
11801169 client , err := deps .GetClient (ctx )
11811170 if err != nil {
@@ -1256,8 +1245,7 @@ func DownloadWorkflowRunArtifact(t translations.TranslationHelperFunc) inventory
12561245 Required : []string {"owner" , "repo" , "artifact_id" },
12571246 },
12581247 },
1259- scopes .ToStringSlice (scopes .Repo ),
1260- scopes .ToStringSlice (scopes .Repo ),
1248+ []scopes.Scope {scopes .Repo },
12611249 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
12621250 client , err := deps .GetClient (ctx )
12631251 if err != nil {
@@ -1336,8 +1324,7 @@ func DeleteWorkflowRunLogs(t translations.TranslationHelperFunc) inventory.Serve
13361324 Required : []string {"owner" , "repo" , "run_id" },
13371325 },
13381326 },
1339- scopes .ToStringSlice (scopes .Repo ),
1340- scopes .ToStringSlice (scopes .Repo ),
1327+ []scopes.Scope {scopes .Repo },
13411328 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
13421329 client , err := deps .GetClient (ctx )
13431330 if err != nil {
@@ -1413,8 +1400,7 @@ func GetWorkflowRunUsage(t translations.TranslationHelperFunc) inventory.ServerT
14131400 Required : []string {"owner" , "repo" , "run_id" },
14141401 },
14151402 },
1416- scopes .ToStringSlice (scopes .Repo ),
1417- scopes .ToStringSlice (scopes .Repo ),
1403+ []scopes.Scope {scopes .Repo },
14181404 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
14191405 client , err := deps .GetClient (ctx )
14201406 if err != nil {
@@ -1579,8 +1565,7 @@ Use this tool to list workflows in a repository, or list workflow runs, jobs, an
15791565 Required : []string {"method" , "owner" , "repo" },
15801566 },
15811567 },
1582- scopes .ToStringSlice (scopes .Repo ),
1583- scopes .ToStringSlice (scopes .Repo ),
1568+ []scopes.Scope {scopes .Repo },
15841569 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
15851570 owner , err := RequiredParam [string ](args , "owner" )
15861571 if err != nil {
@@ -1699,8 +1684,7 @@ Use this tool to get details about individual workflows, workflow runs, jobs, an
16991684 Required : []string {"method" , "owner" , "repo" , "resource_id" },
17001685 },
17011686 },
1702- scopes .ToStringSlice (scopes .Repo ),
1703- scopes .ToStringSlice (scopes .Repo ),
1687+ []scopes.Scope {scopes .Repo },
17041688 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
17051689 owner , err := RequiredParam [string ](args , "owner" )
17061690 if err != nil {
@@ -1814,8 +1798,7 @@ func ActionsRunTrigger(t translations.TranslationHelperFunc) inventory.ServerToo
18141798 Required : []string {"method" , "owner" , "repo" },
18151799 },
18161800 },
1817- scopes .ToStringSlice (scopes .Repo ),
1818- scopes .ToStringSlice (scopes .Repo ),
1801+ []scopes.Scope {scopes .Repo },
18191802 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
18201803 owner , err := RequiredParam [string ](args , "owner" )
18211804 if err != nil {
@@ -1930,8 +1913,7 @@ For single job logs, provide job_id. For all failed jobs in a run, provide run_i
19301913 Required : []string {"owner" , "repo" },
19311914 },
19321915 },
1933- scopes .ToStringSlice (scopes .Repo ),
1934- scopes .ToStringSlice (scopes .Repo ),
1916+ []scopes.Scope {scopes .Repo },
19351917 func (ctx context.Context , deps ToolDependencies , _ * mcp.CallToolRequest , args map [string ]any ) (* mcp.CallToolResult , any , error ) {
19361918 owner , err := RequiredParam [string ](args , "owner" )
19371919 if err != nil {
0 commit comments