Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/mcp/tools_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
}

func (s *Server) buildHandler(ctx context.Context, r *mcp.CallToolRequest, input BuildInput) (result *mcp.CallToolResult, output BuildOutput, err error) {
if s.readonly && input.Push != nil && *input.Push {

Check failure on line 23 in pkg/mcp/tools_build.go

View workflow job for this annotation

GitHub Actions / Precheck

invalid operation: s.readonly && input.Push != nil (mismatched types "sync/atomic".Bool and untyped bool) (typecheck)

Check failure on line 23 in pkg/mcp/tools_build.go

View workflow job for this annotation

GitHub Actions / verify / Verify Deps and Codegen

invalid operation: s.readonly && input.Push != nil (mismatched types "sync/atomic".Bool and untyped bool)

Check failure on line 23 in pkg/mcp/tools_build.go

View workflow job for this annotation

GitHub Actions / analyze / Go vulnerability Detection

invalid operation: s.readonly && input.Push != nil (mismatched types "sync/atomic".Bool and untyped bool)

Check failure on line 23 in pkg/mcp/tools_build.go

View workflow job for this annotation

GitHub Actions / analyze / Analyze CodeQL

invalid operation: s.readonly && input.Push != nil (mismatched types "sync/atomic".Bool and untyped bool)

Check failure on line 23 in pkg/mcp/tools_build.go

View workflow job for this annotation

GitHub Actions / style / Golang / Lint

invalid operation: s.readonly && input.Push != nil (mismatched types "sync/atomic".Bool and untyped bool) (typecheck)
err = fmt.Errorf("the server is in read-only mode; set FUNC_ENABLE_MCP_WRITE=true to push images")
Comment on lines +23 to +24
Comment on lines +23 to +24
return
}
out, err := s.executor.Execute(ctx, "build", input.Args()...)
if err != nil {
err = fmt.Errorf("%w\n%s", err, string(out))
Expand Down
Loading