Repository navigation
fix(mcp,genkit): clear unavailable vision backend hints on local servers and remove computed allocation size in mergeDependsOn - #60
Merged
Conversation
…ers and clamp mergeDependsOn map capacity
Collaborator
|
Reviewed |
ghchinoy
approved these changes
Nov 10, 2026
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves two focused platform and static-analysis findings without touching files owned by in-flight PR #47:
MCP vision tool schemas on local-only servers (Closes MCP: locate_bounding_boxes backend description names unavailable backends on local-only servers #33):
visionBackendChoicesSchema(cmd/mcp_schema.go) so whenconfiguredVisionBackends()is empty (dgem mcp --local/dgem serve --local, wherelocalhas no SigLIP vision tower),properties.backendkeeps noenum(emptyenumis invalid for Gemini) and sets its description to"No vision-capable backend on this server ('local' has no vision tower); this tool returns an error."instead of retaining the static struct-tag description advertising'vertex_first','vertex', and'cloudrun'.visionToolDescriptiononlocate_bounding_boxesandlocate_object(cmd/mcp.go) so MCP clients see"Unavailable on this server ('local' has no vision tower). ..."intools/liston local-only servers, while leaving multi-backend tool descriptions unchanged.TestMCPBackendSchemaListsOnlyConfiguredBackends(cmd/mcp_backend_schema_test.go) to assert bothlocate_bounding_boxesandlocate_objectomitenum, omit'vertex_first'/'vertex'/'cloudrun'frombackend.description, and surface the unavailability prefix on local-only servers.Genkit
mergeDependsOnallocation hygiene (CodeQL feat(templates): add retail catalog QA, 32-way taxonomy, and merchandising policies #26 / docs: fix broken anchors in batch and architecture docs #27):len(deps)+len(askIf)map capacity expression (and unguardedlen(askIf)slice preallocation) inmergeDependsOn(examples/dgemgenkit/bridge.go) so untrusted template JSON cannot triggergo/allocation-size-overflowor oversized initial allocations.TestMergeDependsOnDeduplicatesAndPreservesOrder(examples/dgemgenkit/bridge_test.go) covering large dependency lists, deduplication acrossdepsandaskIf, and deterministic sortedaskIfordering.Verification
go vet ./...andgo test -race ./cmd/... ./pkg/...go -C examples vet ./...andgo -C examples test -race ./...