Skip to content

Container-toolchain failures classify as MCPX_UNKNOWN_UNCLASSIFIED and tell the user to file a bug #1144

Closed

Description

@Dumbris

Summary

Toolchain failures reported on the isolated container's stderr are not classified, so they fall through to MCPX_UNKNOWN_UNCLASSIFIED, whose user message is "mcpproxy could not classify this failure. Please file a bug report so we can add a specific code." — shown for a problem the user can fix in one line of their own config.

Evidence

Feeding the real error (from #1143) through the classifier with the docker hint:

Classify(err, ClassifierHints{DockerIsolated: true})
// → "MCPX_UNKNOWN_UNCLASSIFIED"

where err is the actual runtime error:

failed to connect: stdio transport (command="/usr/local/bin/docker", docker_isolation=true):
server process exited before completing the MCP initialize handshake; recent stderr:
  | ├─▶ Git operation failed
  | ╰─▶ Git executable not found. Ensure that Git is installed and available.

classifyDocker has no git pattern, and the message doesn't incidentally match the image-pull, permission, or OCI arms either.

Why it matters

classifier_selfmessages_test.go exists specifically to enforce "mcpproxy's own error message must never ask the user to file a bug". The same principle applies here: this isn't mcpproxy's message, but it is just as much a user-fixable configuration problem, and the "file a bug report" CTA is the worst possible response to it.

The general gap: container-toolchain stderr is a different failure surface from mcpproxy's own errors, and the classifier was built mostly for the latter. Anything the isolated image happens to lack lands in UNKNOWN — git today, uvx missing from python:3.11 previously (the case MCPX_DOCKER_EXEC_NOT_FOUND was added for).

Suggested fix

Add a MCPX_DOCKER_MISSING_TOOLCHAIN code (or extend DockerExecNotFound) matching, under the DockerIsolated hint:

  • git executable not found
  • git operation failed
  • the generic <tool>: not found / command not found shapes seen in container stderr

Remediation text should name the concrete fix: set a per-server isolation.image that contains the missing tool, with the -bookworm example spelled out. A docs/errors/MCPX_DOCKER_MISSING_TOOLCHAIN.md page alongside the existing MCPX_DOCKER_EXEC_NOT_FOUND.md would fit the established pattern.

Worth pairing with a test asserting that a container-stderr sample never classifies as UNKNOWN, mirroring the self-messages test.

Activity

  1. added
    kind/bug
    area/docker
    priority/medium
    on Aug 31, 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

    area/dockerkind/bugpriority/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions