{"record":{"id":"3a79a3c09764de97","repo":"different-ai/openwork","slug":"plugin-mcp-setup-response-was-incomplete","errorCode":null,"errorMessage":"Plugin MCP setup response was incomplete.","messagePattern":"Plugin MCP setup response was incomplete\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx","lineNumber":360,"sourceCode":"  apiKey?: string;\n  oauthClient?: {\n    clientId: string;\n    clientSecret?: string;\n  };\n};\n\nexport type ConfiguredPluginMcpConnection = {\n  connectionId: string;\n  yourConnectionsUrl: string | null;\n};\n\nfunction parseConfiguredPluginMcpConnection(payload: unknown): ConfiguredPluginMcpConnection {\n  const item = isRecord(payload) && isRecord(payload.item) ? payload.item : null;\n  const connection = item && isRecord(item.connection) ? item.connection : null;\n  const links = item && isRecord(item.links) ? item.links : null;\n  const connectionId = connection ? asString(connection.id) : null;\n  if (!connectionId) {\n    throw new Error(\"Plugin MCP setup response was incomplete.\");\n  }\n  return {\n    connectionId,\n    yourConnectionsUrl: links ? asString(links.yourConnections) : null,\n  };\n}\n\nexport function useConfigurePluginMcpConnection() {\n  const queryClient = useQueryClient();\n  const { runReauthableAction } = useOrgDashboard();\n\n  return useMutation({\n    mutationFn: async (input: ConfigurePluginMcpConnectionInput): Promise<ConfiguredPluginMcpConnection> => {\n      let configured: ConfiguredPluginMcpConnection | null = null;\n      await runReauthableAction(\"configure-plugin-mcp-connection\", async () => {\n        const { response, payload } = await requestJson(\n          `/v1/plugins/${encodeURIComponent(input.pluginId)}/mcp-connections`,\n          {","sourceCodeStart":342,"sourceCodeEnd":378,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx#L342-L378","documentation":"Error \"Plugin MCP setup response was incomplete.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx:360 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}