{"record":{"id":"6631abcbbe98ca3c","repo":"Tencent/WeKnora","slug":"unsupported-transport-type","errorCode":null,"errorMessage":"unsupported transport type","messagePattern":"unsupported transport type","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/mcp/errors.go","lineNumber":7,"sourceCode":"package mcp\n\nimport \"errors\"\n\nvar (\n\t// ErrUnsupportedTransport is returned when transport type is not supported\n\tErrUnsupportedTransport = errors.New(\"unsupported transport type\")\n\n\t// ErrNotConnected is returned when operation requires connection but client is not connected\n\tErrNotConnected = errors.New(\"client not connected\")\n\n\t// ErrAlreadyConnected is returned when trying to connect an already connected client\n\tErrAlreadyConnected = errors.New(\"client already connected\")\n\n\t// ErrInitializeFailed is returned when MCP initialize handshake fails\n\tErrInitializeFailed = errors.New(\"MCP initialize handshake failed\")\n\n\t// ErrToolNotFound is returned when requested tool is not found\n\tErrToolNotFound = errors.New(\"tool not found\")\n\n\t// ErrResourceNotFound is returned when requested resource is not found\n\tErrResourceNotFound = errors.New(\"resource not found\")\n\n\t// ErrInvalidResponse is returned when server response is invalid\n\tErrInvalidResponse = errors.New(\"invalid response from server\")","sourceCodeStart":1,"sourceCodeEnd":25,"githubUrl":"https://github.com/Tencent/WeKnora/blob/988cbb03305e055d8ebb7d46d9ac6cc0803cd074/internal/mcp/errors.go#L1-L25","documentation":"Sentinel returned by the MCP client's transport factory when the configured transport type matches no known implementation. The stdio case is explicitly rejected earlier for security reasons; anything other than the supported SSE / HTTP Streamable types lands in the default branch.","triggerScenarios":"Thrown at internal/mcp/errors.go:7 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the MCP transport type to a supported value: sse or http-streamable","Verify the config/env value spelling (e.g. 'stdio' is deliberately disabled)","If stdio is required, deploy a separate gateway since it is disabled in-process for security"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"988cbb03305e055d8ebb7d46d9ac6cc0803cd074","analyzedAt":"2026-09-02T14:41:08.344Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}