Skip to content

Delete the dead pkg/vmcp/server/adapter package #6191

Open

Description

@JAORMX

Surfaced in jhrozek's review of #6180.

Problem

pkg/vmcp/server/adapter/ (capability_adapter.go, handler_factory.go) has no non-test callers — NewCapabilityAdapter/NewDefaultHandlerFactory are dead code. Its CreateResourceHandler (handler_factory.go:164) still drops result.Meta while its sibling CreateToolHandler preserves it — it's now the only surviving copy of the resource-_meta drop that #6180 removed from the live paths, which invites re-divergence if anyone ever wires it back in.

Work

Delete the package and its tests. Verify with a repo-wide reference check first (the review found no non-test callers; confirm nothing in cmd/ or the operator imports it).

Activity

  1. added
    needs-triage
    on Aug 4, 2026
  2. suantea commented on Oct 10, 2026

    @suantea

    I'd like to take this one. Confirmed the package has no non-test importers (repo-wide grep for server/adapter and for NewCapabilityAdapter/NewDefaultHandlerFactory/CapabilityAdapter/DefaultHandlerFactory finds nothing outside pkg/vmcp/server/adapter/ itself). Will delete the package and its tests together with the mocks/ subdir. Happy to have it assigned.

  3. removed
    needs-triage
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions