{"record":{"id":"45aebabd87225fe9","repo":"paperclipai/paperclip","slug":"plugin-tools-disabled","errorCode":"plugin_tools_disabled","errorMessage":"Plugin tool dispatch is not enabled","messagePattern":"Plugin tool dispatch is not enabled","errorType":"http","errorClass":"ToolGatewayHttpError","httpStatus":501,"severity":"error","filePath":"server/src/services/tool-gateway.ts","lineNumber":6212,"sourceCode":"        issueId: input.body.issueId === undefined ? existing.issueId : input.body.issueId,\n      });\n      const [updated] = await db\n        .update(toolMcpGateways)\n        .set({\n          ...(input.body.name !== undefined ? { name: input.body.name } : {}),\n          ...(input.body.slug !== undefined || input.body.displaySlug !== undefined ? { slug: input.body.displaySlug ?? input.body.slug } : {}),\n          ...(input.body.slug !== undefined || input.body.displaySlug !== undefined ? { displaySlug: input.body.displaySlug ?? input.body.slug } : {}),\n          ...(input.body.description !== undefined ? { description: input.body.description ?? null } : {}),\n          ...(input.body.status !== undefined ? { status: input.body.status } : {}),\n          ...(input.body.profileId !== undefined ? { profileId: input.body.profileId } : {}),\n          ...(input.body.defaultProfileMode !== undefined ? { defaultProfileMode: input.body.defaultProfileMode } : {}),\n          ...(input.body.contextScopeType !== undefined ? { contextScopeType: input.body.contextScopeType } : {}),\n          ...(input.body.contextScopeId !== undefined ? { contextScopeId: input.body.contextScopeId ?? null } : {}),\n          ...(input.body.agentId !== undefined ? { agentId: input.body.agentId ?? null } : {}),\n          ...(input.body.projectId !== undefined ? { projectId: input.body.projectId ?? null } : {}),\n          ...(input.body.issueId !== undefined ? { issueId: input.body.issueId ?? null } : {}),\n          ...(input.body.approvalIssueId !== undefined ? { approvalIssueId: input.body.approvalIssueId ?? null } : {}),\n          ...(input.body.authConfig !== undefined ? { authConfig: input.body.authConfig } : {}),\n          ...(input.body.headerPolicy !== undefined ? { headerPolicy: input.body.headerPolicy } : {}),\n          ...(input.body.metadataPolicy !== undefined ? { metadataPolicy: input.body.metadataPolicy } : {}),\n          ...(input.body.onDemandToolsConfig !== undefined ? { onDemandToolsConfig: input.body.onDemandToolsConfig } : {}),\n          ...(input.body.metadata !== undefined ? { metadata: input.body.metadata ?? {} } : {}),\n          updatedAt: new Date(),\n        })\n        .where(and(eq(toolMcpGateways.companyId, input.companyId), eq(toolMcpGateways.id, input.gatewayId)))\n        .returning();\n      if (input.body.profileId && input.body.profileId !== existing.profileId) {\n        await db\n          .insert(toolProfileBindings)\n          .values({\n            companyId: input.companyId,\n            profileId: input.body.profileId,\n            targetType: \"gateway\",\n            targetId: input.gatewayId,\n            priority: 10,\n            metadata: { source: \"named_mcp_gateway\" },","sourceCodeStart":6194,"sourceCodeEnd":6230,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/services/tool-gateway.ts#L6194-L6230","documentation":"executePluginTool guard: the service was constructed without a pluginToolDispatcher, so the plugin tool subsystem is not wired into this deployment. The 501 plugin_tools_disabled signals the capability is intentionally absent (feature flag/build config), not a transient failure; do not retry, enable plugin dispatch instead.","triggerScenarios":"Thrown at server/src/services/tool-gateway.ts:6025 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable plugin tool dispatch (plugins feature) for this instance/session before calling plugin-provided tools."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}