You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: devops-mcp-server/cloudbuild/cloudbuild.go
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ package cloudbuild
17
17
import (
18
18
"context"
19
19
"fmt"
20
+
"regexp"
20
21
"strings"
21
22
22
23
"github.com/modelcontextprotocol/go-sdk/mcp"
@@ -85,7 +86,7 @@ type CreateTriggerArgs struct {
85
86
Locationstring`json:"location" jsonschema:"The Google Cloud location for the trigger."`
86
87
TriggerIDstring`json:"trigger_id" jsonschema:"The ID of the trigger."`
87
88
RepoLinkstring`json:"repo_link" jsonschema:"The Developer Connect repository link, use dev connect setup repo to create a connect and repo link"`
88
-
ServiceAccountstring`json:"service_account" jsonschema:"The service account to use for the build. E.g. serviceAccount:123-compute@developer.gserviceaccount.com"`
89
+
ServiceAccountstring`json:"service_account,omitempty" jsonschema:"The service account to use for the build. E.g. serviceAccount:name@project-id.iam.gserviceaccount.com optional"`
89
90
Branchstring`json:"branch,omitempty" jsonschema:"Create builds on push to branch. Should be regex e.g. '^main$'"`
90
91
Tagstring`json:"tag,omitempty" jsonschema:"Create builds on new tag push. Should be regex e.g. '^nightly$'"`
91
92
}
@@ -94,6 +95,9 @@ var createTriggerToolFunc func(ctx context.Context, req *mcp.CallToolRequest, ar
0 commit comments