Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(mcp): oxfmt generated tool clients (#73354)

Raúl Negrón-Otero39456d7a98b9
diff --git a/services/mcp/src/tools/generated/actions.ts b/services/mcp/src/tools/generated/actions.ts
index 20794a3e0675..eb6cca916925 100644
--- a/services/mcp/src/tools/generated/actions.ts
+++ b/services/mcp/src/tools/generated/actions.ts
@@ -1,13 +1,7 @@
// AUTO-GENERATED from products/actions/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
ActionsCreateBody,
ActionsDestroyParams,
@@ -16,6 +10,10 @@ import {
ActionsPartialUpdateParams,
ActionsRetrieveParams,
} from '@/generated/actions/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ActionCreateSchema = ActionsCreateBody.omit({ _create_in_folder: true }).extend({
name: ActionsCreateBody.shape['name'].describe('Name of the action (must be unique within the project)'),
diff --git a/services/mcp/src/tools/generated/agent_platform.ts b/services/mcp/src/tools/generated/agent_platform.ts
index 3f7c1bc592d2..67bc289cf2f4 100644
--- a/services/mcp/src/tools/generated/agent_platform.ts
+++ b/services/mcp/src/tools/generated/agent_platform.ts
@@ -1,10 +1,7 @@
// AUTO-GENERATED from services/mcp/definitions/agent_platform.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-
import type { Schemas } from '@/api/generated'
-
import {
AgentApplicationsCreateBody,
AgentApplicationsDestroyParams,
@@ -66,6 +63,7 @@ import {
AgentRevisionsEnvKeysGetParams,
AgentRevisionsEnvKeysListParams,
} from '@/generated/agent_platform/api'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const AgentApplicationsCreateSchema = AgentApplicationsCreateBody
diff --git a/services/mcp/src/tools/generated/ai_observability.ts b/services/mcp/src/tools/generated/ai_observability.ts
index d21b03e4859b..e6554c360de3 100644
--- a/services/mcp/src/tools/generated/ai_observability.ts
+++ b/services/mcp/src/tools/generated/ai_observability.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/ai_observability/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { PromptListInputSchema, ScoreDefinitionConfigSchema } from '@/schema/tool-inputs'
-
import {
EvaluationRunsCreateBody,
EvaluationsCreateBody,
@@ -77,6 +72,9 @@ import {
TaggersListQueryParams,
TaggersTestHogCreateBody,
} from '@/generated/ai_observability/api'
+import { PromptListInputSchema, ScoreDefinitionConfigSchema } from '@/schema/tool-inputs'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const LlmaClusteringConfigGetSchema = z.object({})
diff --git a/services/mcp/src/tools/generated/alerts.ts b/services/mcp/src/tools/generated/alerts.ts
index fa04c73f75c2..4d42f258738e 100644
--- a/services/mcp/src/tools/generated/alerts.ts
+++ b/services/mcp/src/tools/generated/alerts.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/alerts/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
AlertsCreateBody,
AlertsDestroyParams,
@@ -16,6 +12,8 @@ import {
AlertsRetrieveQueryParams,
AlertsSimulateCreateBody,
} from '@/generated/alerts/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const AlertCreateSchema = AlertsCreateBody
diff --git a/services/mcp/src/tools/generated/annotations.ts b/services/mcp/src/tools/generated/annotations.ts
index 8123570f9e82..ce51fff73175 100644
--- a/services/mcp/src/tools/generated/annotations.ts
+++ b/services/mcp/src/tools/generated/annotations.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/annotations/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
AnnotationsCreateBody,
AnnotationsDestroyParams,
@@ -15,6 +10,9 @@ import {
AnnotationsPartialUpdateParams,
AnnotationsRetrieveParams,
} from '@/generated/annotations/api'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const AnnotationCreateSchema = AnnotationsCreateBody.omit({
creation_type: true,
diff --git a/services/mcp/src/tools/generated/batch_exports.ts b/services/mcp/src/tools/generated/batch_exports.ts
index 48641cfcda79..c441fa8a02a7 100644
--- a/services/mcp/src/tools/generated/batch_exports.ts
+++ b/services/mcp/src/tools/generated/batch_exports.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/batch_exports/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
BatchExportsCreateBody,
BatchExportsDestroyParams,
@@ -18,6 +14,8 @@ import {
FileDownloadBatchExportsCreateBody,
FileDownloadBatchExportsRetrieveParams,
} from '@/generated/batch_exports/api'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const BatchExportCreateSchema = BatchExportsCreateBody
diff --git a/services/mcp/src/tools/generated/business_knowledge.ts b/services/mcp/src/tools/generated/business_knowledge.ts
index a79ac458c600..b1736d6b493c 100644
--- a/services/mcp/src/tools/generated/business_knowledge.ts
+++ b/services/mcp/src/tools/generated/business_knowledge.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/business_knowledge/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { BusinessKnowledgeUrlSourceCreateSchema } from '@/schema/tool-inputs'
-
import {
BusinessKnowledgeDocumentsSearchListQueryParams,
BusinessKnowledgeDocumentsWindowListParams,
@@ -17,6 +12,9 @@ import {
BusinessKnowledgeSourcesPartialUpdateParams,
BusinessKnowledgeSourcesRetrieveParams,
} from '@/generated/business_knowledge/api'
+import { BusinessKnowledgeUrlSourceCreateSchema } from '@/schema/tool-inputs'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const BusinessKnowledgeDocumentWindowRetrieveSchema = BusinessKnowledgeDocumentsWindowListParams.omit({
project_id: true,
diff --git a/services/mcp/src/tools/generated/cdp_function_templates.ts b/services/mcp/src/tools/generated/cdp_function_templates.ts
index 0a66f8089124..0da3a2798e56 100644
--- a/services/mcp/src/tools/generated/cdp_function_templates.ts
+++ b/services/mcp/src/tools/generated/cdp_function_templates.ts
@@ -1,15 +1,13 @@
// AUTO-GENERATED from products/cdp/mcp/cdp_function_templates.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
HogFunctionTemplatesListQueryParams,
HogFunctionTemplatesRetrieveParams,
} from '@/generated/cdp_function_templates/api'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const CdpFunctionTemplatesListSchema = HogFunctionTemplatesListQueryParams
diff --git a/services/mcp/src/tools/generated/cdp_functions.ts b/services/mcp/src/tools/generated/cdp_functions.ts
index 9fced4e9eaf5..56788dd29a21 100644
--- a/services/mcp/src/tools/generated/cdp_functions.ts
+++ b/services/mcp/src/tools/generated/cdp_functions.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/cdp/mcp/cdp_functions.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
HogFunctionsCreateBody,
HogFunctionsDestroyParams,
@@ -21,6 +17,8 @@ import {
HogFunctionsRearrangePartialUpdateBody,
HogFunctionsRetrieveParams,
} from '@/generated/cdp_functions/api'
+import { withPostHogUrl, omitResponseFields, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const CdpFunctionsCreateSchema = HogFunctionsCreateBody.extend({
type: HogFunctionsCreateBody.shape['type'].describe(
diff --git a/services/mcp/src/tools/generated/cohorts.ts b/services/mcp/src/tools/generated/cohorts.ts
index 367e938fe062..b5142fad8aba 100644
--- a/services/mcp/src/tools/generated/cohorts.ts
+++ b/services/mcp/src/tools/generated/cohorts.ts
@@ -1,13 +1,7 @@
// AUTO-GENERATED from products/cohorts/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
CohortsAddPersonsToStaticCohortPartialUpdateBody,
CohortsAddPersonsToStaticCohortPartialUpdateParams,
@@ -19,6 +13,10 @@ import {
CohortsRemovePersonFromStaticCohortPartialUpdateParams,
CohortsRetrieveParams,
} from '@/generated/cohorts/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, pickResponseFields, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const CohortsAddPersonsToStaticCohortPartialUpdateSchema = CohortsAddPersonsToStaticCohortPartialUpdateParams.omit({
project_id: true,
diff --git a/services/mcp/src/tools/generated/conversations.ts b/services/mcp/src/tools/generated/conversations.ts
index 94e6d4172423..66945a46b415 100644
--- a/services/mcp/src/tools/generated/conversations.ts
+++ b/services/mcp/src/tools/generated/conversations.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/conversations/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
ConversationsTicketsListQueryParams,
ConversationsTicketsMessagesListParams,
@@ -17,6 +13,8 @@ import {
ConversationsTicketsRetrieveParams,
ConversationsViewsListQueryParams,
} from '@/generated/conversations/api'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ConversationsTicketsListSchema = ConversationsTicketsListQueryParams
diff --git a/services/mcp/src/tools/generated/core.ts b/services/mcp/src/tools/generated/core.ts
index bfbc3da2f48f..4f75c3a51080 100644
--- a/services/mcp/src/tools/generated/core.ts
+++ b/services/mcp/src/tools/generated/core.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from services/mcp/definitions/core.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { omitResponseFields, pickResponseFields } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
DesktopFileSystemCanvasPartialUpdateBody,
DesktopFileSystemCanvasPartialUpdateParams,
@@ -23,6 +18,9 @@ import {
UsersPartialUpdateParams,
UsersRetrieveParams,
} from '@/generated/core/api'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { omitResponseFields, pickResponseFields } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const DesktopFileSystemCanvasPartialUpdateSchema = DesktopFileSystemCanvasPartialUpdateParams.omit({ project_id: true })
.extend(DesktopFileSystemCanvasPartialUpdateBody.shape)
diff --git a/services/mcp/src/tools/generated/customer_analytics.ts b/services/mcp/src/tools/generated/customer_analytics.ts
index b9d5c494401e..f0de9e101c00 100644
--- a/services/mcp/src/tools/generated/customer_analytics.ts
+++ b/services/mcp/src/tools/generated/customer_analytics.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/customer_analytics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { UsageMetricFiltersSchema } from '@/schema/tool-inputs'
-
import {
AccountRelationshipDefinitionsCreateBody,
AccountRelationshipDefinitionsDestroyParams,
@@ -59,6 +54,9 @@ import {
GroupsTypesMetricsPartialUpdateParams,
GroupsTypesMetricsRetrieveParams,
} from '@/generated/customer_analytics/api'
+import { UsageMetricFiltersSchema } from '@/schema/tool-inputs'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const AccountRelationshipDefinitionsCreateSchema = AccountRelationshipDefinitionsCreateBody
diff --git a/services/mcp/src/tools/generated/dashboards.ts b/services/mcp/src/tools/generated/dashboards.ts
index 9a1bd022ed80..ac2f2c169e42 100644
--- a/services/mcp/src/tools/generated/dashboards.ts
+++ b/services/mcp/src/tools/generated/dashboards.ts
@@ -1,18 +1,7 @@
// AUTO-GENERATED from products/dashboards/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import {
- withPostHogUrl,
- omitResponseFields,
- withInformationalResponse,
- type WithPostHogUrl,
- type WithInformationalResponse,
-} from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
DashboardTemplatesListQueryParams,
DashboardTemplatesRetrieveParams,
@@ -46,6 +35,15 @@ import {
DashboardsWidgetsBatchCreateBody,
DashboardsWidgetsBatchCreateParams,
} from '@/generated/dashboards/api'
+import { castStringToInt } from '@/tools/cast-helpers'
+import {
+ withPostHogUrl,
+ omitResponseFields,
+ withInformationalResponse,
+ type WithPostHogUrl,
+ type WithInformationalResponse,
+} from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const DashboardCreateSchema = DashboardsCreateQueryParams.omit({ format: true }).extend(DashboardsCreateBody.shape)
diff --git a/services/mcp/src/tools/generated/data_catalog.ts b/services/mcp/src/tools/generated/data_catalog.ts
index 853020c1d68a..0863b51ac4c7 100644
--- a/services/mcp/src/tools/generated/data_catalog.ts
+++ b/services/mcp/src/tools/generated/data_catalog.ts
@@ -1,16 +1,7 @@
// AUTO-GENERATED from products/data_catalog/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-
import type { Schemas } from '@/api/generated'
-import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'
-import {
- executeConfirmedAction,
- prepareConfirmedAction,
- type PrepareConfirmedActionResult,
-} from '@/tools/confirmed-action-runtime'
-
import {
DataCatalogCertificationsCertifyCreateParams,
DataCatalogCertificationsCreateBody,
@@ -27,6 +18,13 @@ import {
DataCatalogRelationshipProposalsRejectCreateBody,
DataCatalogRelationshipProposalsRejectCreateParams,
} from '@/generated/data_catalog/api'
+import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'
+import {
+ executeConfirmedAction,
+ prepareConfirmedAction,
+ type PrepareConfirmedActionResult,
+} from '@/tools/confirmed-action-runtime'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const DataCatalogCertificationCertifySchema = DataCatalogCertificationsCertifyCreateParams.omit({ project_id: true })
diff --git a/services/mcp/src/tools/generated/data_management.ts b/services/mcp/src/tools/generated/data_management.ts
index 118e4fb577f4..8a808dcfc66e 100644
--- a/services/mcp/src/tools/generated/data_management.ts
+++ b/services/mcp/src/tools/generated/data_management.ts
@@ -1,12 +1,10 @@
// AUTO-GENERATED from services/mcp/definitions/data_management.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import { IngestionWarningsV2ListQueryParams } from '@/generated/data_management/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const IngestionWarningsListSchema = IngestionWarningsV2ListQueryParams
diff --git a/services/mcp/src/tools/generated/data_warehouse.ts b/services/mcp/src/tools/generated/data_warehouse.ts
index 8e9252661dbd..3e2392023479 100644
--- a/services/mcp/src/tools/generated/data_warehouse.ts
+++ b/services/mcp/src/tools/generated/data_warehouse.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/data_warehouse/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
InsightVariablesCreateBody,
InsightVariablesDestroyParams,
@@ -32,6 +28,8 @@ import {
WarehouseSavedQueriesRunHistoryRetrieveParams,
WarehouseTablesRefreshSchemaCreateParams,
} from '@/generated/data_warehouse/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const SavedQueryColumnAnnotationsCreateSchema = SavedQueryColumnAnnotationsCreateBody.extend({
column_name: SavedQueryColumnAnnotationsCreateBody.shape['column_name'].describe(
diff --git a/services/mcp/src/tools/generated/docs.ts b/services/mcp/src/tools/generated/docs.ts
index 22bd38d828c8..5c196ff3806f 100644
--- a/services/mcp/src/tools/generated/docs.ts
+++ b/services/mcp/src/tools/generated/docs.ts
@@ -1,11 +1,9 @@
// AUTO-GENERATED from services/mcp/definitions/docs.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-
import type { Schemas } from '@/api/generated'
-
import { DocsSearchBody } from '@/generated/docs/api'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const DocsSearchSchema = DocsSearchBody
diff --git a/services/mcp/src/tools/generated/early_access_features.ts b/services/mcp/src/tools/generated/early_access_features.ts
index 04a436833083..8a6ed4eff7db 100644
--- a/services/mcp/src/tools/generated/early_access_features.ts
+++ b/services/mcp/src/tools/generated/early_access_features.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/early_access_features/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
EarlyAccessFeatureCreateBody,
EarlyAccessFeatureDestroyParams,
@@ -14,6 +10,8 @@ import {
EarlyAccessFeaturePartialUpdateParams,
EarlyAccessFeatureRetrieveParams,
} from '@/generated/early_access_features/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const EarlyAccessFeatureCreateSchema = EarlyAccessFeatureCreateBody.omit({ _create_in_folder: true })
diff --git a/services/mcp/src/tools/generated/email_templates.ts b/services/mcp/src/tools/generated/email_templates.ts
index b6dbc72ca767..7ab4573a7d25 100644
--- a/services/mcp/src/tools/generated/email_templates.ts
+++ b/services/mcp/src/tools/generated/email_templates.ts
@@ -1,13 +1,7 @@
// AUTO-GENERATED from products/workflows/mcp/email_templates.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { EmailTemplateDesignPatchSchema } from '@/schema/tool-inputs'
-
import {
MessagingTemplatesCreateBody,
MessagingTemplatesListQueryParams,
@@ -15,6 +9,10 @@ import {
MessagingTemplatesPartialUpdateParams,
MessagingTemplatesRetrieveParams,
} from '@/generated/email_templates/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { EmailTemplateDesignPatchSchema } from '@/schema/tool-inputs'
+import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const WorkflowsCreateEmailTemplateSchema = MessagingTemplatesCreateBody
diff --git a/services/mcp/src/tools/generated/endpoints.ts b/services/mcp/src/tools/generated/endpoints.ts
index 471c0162bf0b..46e2dad828a4 100644
--- a/services/mcp/src/tools/generated/endpoints.ts
+++ b/services/mcp/src/tools/generated/endpoints.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/endpoints/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
EndpointsCreateBody,
EndpointsDestroyParams,
@@ -28,6 +24,8 @@ import {
EndpointsVersionsListParams,
EndpointsVersionsListQueryParams,
} from '@/generated/endpoints/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const EndpointCreateSchema = EndpointsCreateBody.omit({
is_active: true,
diff --git a/services/mcp/src/tools/generated/engineering_analytics.ts b/services/mcp/src/tools/generated/engineering_analytics.ts
index e1143485edc2..2297d23d9694 100644
--- a/services/mcp/src/tools/generated/engineering_analytics.ts
+++ b/services/mcp/src/tools/generated/engineering_analytics.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/engineering_analytics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
EngineeringAnalyticsBrokenTestsQueryParams,
EngineeringAnalyticsCiFailureLogsQueryParams,
@@ -19,6 +15,8 @@ import {
EngineeringAnalyticsWorkflowJobsQueryParams,
EngineeringAnalyticsWorkflowRunnerCostsQueryParams,
} from '@/generated/engineering_analytics/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const EngineeringAnalyticsBrokenTestsSchema = EngineeringAnalyticsBrokenTestsQueryParams
diff --git a/services/mcp/src/tools/generated/error_tracking.ts b/services/mcp/src/tools/generated/error_tracking.ts
index 73d96c218cc8..6366810730d5 100644
--- a/services/mcp/src/tools/generated/error_tracking.ts
+++ b/services/mcp/src/tools/generated/error_tracking.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/error_tracking/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-
import {
ErrorTrackingAssignmentRulesCreateBody,
ErrorTrackingAssignmentRulesListQueryParams,
@@ -37,6 +32,9 @@ import {
ErrorTrackingSymbolSetsListQueryParams,
ErrorTrackingSymbolSetsRetrieveParams,
} from '@/generated/error_tracking/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ErrorTrackingAssignmentRulesCreateSchema = ErrorTrackingAssignmentRulesCreateBody
diff --git a/services/mcp/src/tools/generated/error_tracking_alerts.ts b/services/mcp/src/tools/generated/error_tracking_alerts.ts
index 87ed90f2eefa..11f204ebd4af 100644
--- a/services/mcp/src/tools/generated/error_tracking_alerts.ts
+++ b/services/mcp/src/tools/generated/error_tracking_alerts.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/error_tracking/mcp/error_tracking_alerts.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
HogFunctionsCreateBody,
HogFunctionsDestroyParams,
@@ -13,6 +9,8 @@ import {
HogFunctionsPartialUpdateBody,
HogFunctionsPartialUpdateParams,
} from '@/generated/error_tracking_alerts/api'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ErrorTrackingAlertsCreateSchema = HogFunctionsCreateBody.extend({
type: HogFunctionsCreateBody.shape['type'].describe(
diff --git a/services/mcp/src/tools/generated/experiments.ts b/services/mcp/src/tools/generated/experiments.ts
index 98ca8a887f3c..c495cde3a9fe 100644
--- a/services/mcp/src/tools/generated/experiments.ts
+++ b/services/mcp/src/tools/generated/experiments.ts
@@ -1,14 +1,7 @@
// AUTO-GENERATED from products/experiments/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { SavedMetricsAttachSchema } from '@/schema/tool-inputs'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
ExperimentHoldoutsCreateBody,
ExperimentHoldoutsDestroyParams,
@@ -49,6 +42,11 @@ import {
ExperimentsUnarchiveCreateParams,
ExperimentsUnfreezeExposureCreateParams,
} from '@/generated/experiments/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { SavedMetricsAttachSchema } from '@/schema/tool-inputs'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ExperimentArchiveSchema = ExperimentsArchiveCreateParams.omit({ project_id: true })
.extend(ExperimentsArchiveCreateBody.shape)
diff --git a/services/mcp/src/tools/generated/feature_flags.ts b/services/mcp/src/tools/generated/feature_flags.ts
index 06b897b61210..836f4ec1345f 100644
--- a/services/mcp/src/tools/generated/feature_flags.ts
+++ b/services/mcp/src/tools/generated/feature_flags.ts
@@ -1,14 +1,7 @@
// AUTO-GENERATED from products/feature_flags/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { validateDistinctIdPersonIdExclusive } from '@/schema/tool-inputs'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
FeatureFlagsActivityRetrieveParams,
FeatureFlagsActivityRetrieveQueryParams,
@@ -36,6 +29,11 @@ import {
ScheduledChangesPartialUpdateParams,
ScheduledChangesRetrieveParams,
} from '@/generated/feature_flags/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { validateDistinctIdPersonIdExclusive } from '@/schema/tool-inputs'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const CreateFeatureFlagSchema = FeatureFlagsCreateBody.omit({ archived: true }).extend({
is_remote_configuration: FeatureFlagsCreateBody.shape['is_remote_configuration'].describe(
diff --git a/services/mcp/src/tools/generated/field_notes.ts b/services/mcp/src/tools/generated/field_notes.ts
index 05c6d1af55ce..72d430b802af 100644
--- a/services/mcp/src/tools/generated/field_notes.ts
+++ b/services/mcp/src/tools/generated/field_notes.ts
@@ -1,17 +1,15 @@
// AUTO-GENERATED from products/field_notes/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
FieldNotesListQueryParams,
FieldNotesPartialUpdateBody,
FieldNotesPartialUpdateParams,
FieldNotesRetrieveParams,
} from '@/generated/field_notes/api'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const FieldNotesGetSchema = FieldNotesRetrieveParams.omit({ project_id: true })
diff --git a/services/mcp/src/tools/generated/health_issues.ts b/services/mcp/src/tools/generated/health_issues.ts
index 925c98795caa..ffed524d74ec 100644
--- a/services/mcp/src/tools/generated/health_issues.ts
+++ b/services/mcp/src/tools/generated/health_issues.ts
@@ -1,12 +1,10 @@
// AUTO-GENERATED from services/mcp/definitions/health_issues.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import { HealthIssuesListQueryParams, HealthIssuesRetrieveParams } from '@/generated/health_issues/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const HealthIssuesGetSchema = HealthIssuesRetrieveParams.omit({ project_id: true })
diff --git a/services/mcp/src/tools/generated/integrations.ts b/services/mcp/src/tools/generated/integrations.ts
index 0df344b5cd0b..e666e955df9d 100644
--- a/services/mcp/src/tools/generated/integrations.ts
+++ b/services/mcp/src/tools/generated/integrations.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/integrations/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
IntegrationsChannelsRetrieveParams,
IntegrationsChannelsRetrieveQueryParams,
@@ -17,6 +13,8 @@ import {
IntegrationsListQueryParams,
IntegrationsRetrieveParams,
} from '@/generated/integrations/api'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const IntegrationDeleteSchema = IntegrationsDestroyParams.omit({ project_id: true })
diff --git a/services/mcp/src/tools/generated/logs.ts b/services/mcp/src/tools/generated/logs.ts
index ecf4486bee02..540bcf677dd2 100644
--- a/services/mcp/src/tools/generated/logs.ts
+++ b/services/mcp/src/tools/generated/logs.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/logs/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
LogsAlertsCreateBody,
LogsAlertsDestinationsCreateBody,
@@ -31,6 +27,8 @@ import {
LogsSparklineCreateBody,
LogsValuesRetrieveQueryParams,
} from '@/generated/logs/api'
+import { withPostHogUrl, pickResponseFields, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const LogsAlertsCreateSchema = LogsAlertsCreateBody
diff --git a/services/mcp/src/tools/generated/managed_migrations.ts b/services/mcp/src/tools/generated/managed_migrations.ts
index 0fa3575e84dd..2444f8505b3d 100644
--- a/services/mcp/src/tools/generated/managed_migrations.ts
+++ b/services/mcp/src/tools/generated/managed_migrations.ts
@@ -1,15 +1,13 @@
// AUTO-GENERATED from products/managed_migrations/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
ManagedMigrationsSupportListQueryParams,
ManagedMigrationsSupportRetrieveParams,
} from '@/generated/managed_migrations/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ManagedMigrationsSupportGetSchema = ManagedMigrationsSupportRetrieveParams
diff --git a/services/mcp/src/tools/generated/marketing_analytics.ts b/services/mcp/src/tools/generated/marketing_analytics.ts
index b137502b8b19..61233f931d6a 100644
--- a/services/mcp/src/tools/generated/marketing_analytics.ts
+++ b/services/mcp/src/tools/generated/marketing_analytics.ts
@@ -1,10 +1,7 @@
// AUTO-GENERATED from products/marketing_analytics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-
import type { Schemas } from '@/api/generated'
-
import {
MarketingAnalyticsDataSourcesRetrieveQueryParams,
MarketingAnalyticsDiagnoseRetrieveQueryParams,
@@ -13,6 +10,7 @@ import {
MarketingAnalyticsSuggestUtmMappingsRetrieveQueryParams,
MarketingAnalyticsUtmAuditRetrieveQueryParams,
} from '@/generated/marketing_analytics/api'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const MarketingAnalyticsConversionGoalsSchema = z.object({})
diff --git a/services/mcp/src/tools/generated/mcp_analytics.ts b/services/mcp/src/tools/generated/mcp_analytics.ts
index 44e36cb876b2..5134c92609f0 100644
--- a/services/mcp/src/tools/generated/mcp_analytics.ts
+++ b/services/mcp/src/tools/generated/mcp_analytics.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/mcp_analytics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { createQueryWrapper } from '@/tools/query-wrapper-factory'
-
import {
McpAnalyticsFeedbackCreateBody,
McpAnalyticsMissingCapabilitiesCreateBody,
@@ -16,6 +11,9 @@ import {
McpAnalyticsSessionsToolCallsParams,
McpAnalyticsSessionsToolCallsQueryParams,
} from '@/generated/mcp_analytics/api'
+import { createQueryWrapper } from '@/tools/query-wrapper-factory'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const McpAnalyticsIntentClustersRecomputeSchema = z.object({})
diff --git a/services/mcp/src/tools/generated/mcp_store.ts b/services/mcp/src/tools/generated/mcp_store.ts
index 8332fddacb4b..3615b7095d66 100644
--- a/services/mcp/src/tools/generated/mcp_store.ts
+++ b/services/mcp/src/tools/generated/mcp_store.ts
@@ -1,15 +1,13 @@
// AUTO-GENERATED from products/mcp_store/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
McpServerInstallationsListQueryParams,
McpServerInstallationsToolsRetrieveParams,
} from '@/generated/mcp_store/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const McpConnectionToolsListSchema = McpServerInstallationsToolsRetrieveParams.omit({ project_id: true })
diff --git a/services/mcp/src/tools/generated/metrics.ts b/services/mcp/src/tools/generated/metrics.ts
index be22d85411e4..72403997d411 100644
--- a/services/mcp/src/tools/generated/metrics.ts
+++ b/services/mcp/src/tools/generated/metrics.ts
@@ -1,16 +1,14 @@
// AUTO-GENERATED from products/metrics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { pickResponseFields } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
MetricsCharacterizeCreateBody,
MetricsQueryCreateBody,
MetricsValuesRetrieveQueryParams,
} from '@/generated/metrics/api'
+import { pickResponseFields } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const CharacterizeMetricAnomalySchema = MetricsCharacterizeCreateBody
diff --git a/services/mcp/src/tools/generated/notebooks.ts b/services/mcp/src/tools/generated/notebooks.ts
index 1db29051ee43..7ed7d8a45eac 100644
--- a/services/mcp/src/tools/generated/notebooks.ts
+++ b/services/mcp/src/tools/generated/notebooks.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/notebooks/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
NotebooksCreateBody,
NotebooksDestroyParams,
@@ -14,6 +10,8 @@ import {
NotebooksPartialUpdateParams,
NotebooksRetrieveParams,
} from '@/generated/notebooks/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const NotebooksCreateSchema = NotebooksCreateBody
diff --git a/services/mcp/src/tools/generated/persons.ts b/services/mcp/src/tools/generated/persons.ts
index ccae7e69f729..6c5b4be8d3e2 100644
--- a/services/mcp/src/tools/generated/persons.ts
+++ b/services/mcp/src/tools/generated/persons.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/persons/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
PersonsBulkDeleteCreateBody,
PersonsCohortsRetrieveQueryParams,
@@ -18,6 +13,9 @@ import {
PersonsUpdatePropertyCreateParams,
PersonsValuesRetrieveQueryParams,
} from '@/generated/persons/api'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const PersonsBulkDeleteSchema = PersonsBulkDeleteCreateBody
diff --git a/services/mcp/src/tools/generated/platform_features.ts b/services/mcp/src/tools/generated/platform_features.ts
index a30fbf17e0d9..2fa82bcae245 100644
--- a/services/mcp/src/tools/generated/platform_features.ts
+++ b/services/mcp/src/tools/generated/platform_features.ts
@@ -1,23 +1,7 @@
// AUTO-GENERATED from products/platform_features/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import {
- withPostHogUrl,
- pickResponseFields,
- withInformationalResponse,
- type WithPostHogUrl,
- type WithInformationalResponse,
-} from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'
-import {
- executeConfirmedAction,
- prepareConfirmedAction,
- type PrepareConfirmedActionResult,
-} from '@/tools/confirmed-action-runtime'
-
import {
AdvancedActivityLogsListQueryParams,
ApprovalPoliciesListQueryParams,
@@ -45,6 +29,20 @@ import {
UserHomeSettingsPartialUpdateParams,
UserHomeSettingsRetrieveParams,
} from '@/generated/platform_features/api'
+import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'
+import {
+ executeConfirmedAction,
+ prepareConfirmedAction,
+ type PrepareConfirmedActionResult,
+} from '@/tools/confirmed-action-runtime'
+import {
+ withPostHogUrl,
+ pickResponseFields,
+ withInformationalResponse,
+ type WithPostHogUrl,
+ type WithInformationalResponse,
+} from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const AdvancedActivityLogsFiltersSchema = z.object({})
diff --git a/services/mcp/src/tools/generated/product_analytics.ts b/services/mcp/src/tools/generated/product_analytics.ts
index c1a6295a30e5..f7837f37c25c 100644
--- a/services/mcp/src/tools/generated/product_analytics.ts
+++ b/services/mcp/src/tools/generated/product_analytics.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/product_analytics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { castStringToInt, normalizeParamAliases } from '@/tools/cast-helpers'
-
import {
ElementsStatsRetrieveQueryParams,
InsightsActivityRetrieveParams,
@@ -21,6 +16,9 @@ import {
InsightsRetrieveQueryParams,
InsightsTrendingRetrieveQueryParams,
} from '@/generated/product_analytics/api'
+import { castStringToInt, normalizeParamAliases } from '@/tools/cast-helpers'
+import { withPostHogUrl, omitResponseFields, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const AssistantInsightVizNode = z.object({
kind: z.literal('InsightVizNode').default('InsightVizNode'),
diff --git a/services/mcp/src/tools/generated/proxy-records.ts b/services/mcp/src/tools/generated/proxy-records.ts
index 4d699cc3196b..2df501065601 100644
--- a/services/mcp/src/tools/generated/proxy-records.ts
+++ b/services/mcp/src/tools/generated/proxy-records.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from services/mcp/definitions/proxy-records.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
ProxyRecordsCreateBody,
ProxyRecordsDestroyParams,
@@ -13,6 +9,8 @@ import {
ProxyRecordsRetrieveParams,
ProxyRecordsRetryCreateParams,
} from '@/generated/proxy-records/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ProxyCreateSchema = ProxyRecordsCreateBody
diff --git a/services/mcp/src/tools/generated/query-wrappers.ts b/services/mcp/src/tools/generated/query-wrappers.ts
index 7d58a18d1e1a..c03dbc9b39c4 100644
--- a/services/mcp/src/tools/generated/query-wrappers.ts
+++ b/services/mcp/src/tools/generated/query-wrappers.ts
@@ -1,8 +1,8 @@
// AUTO-GENERATED from services/mcp/definitions/query-wrappers.yaml + schema.json — do not edit
import { z } from 'zod'
-import type { ZodObjectAny } from '@/tools/types'
import { createQueryWrapper } from '@/tools/query-wrapper-factory'
+import type { ZodObjectAny } from '@/tools/types'
// --- Shared Zod schemas generated from schema.json ---
diff --git a/services/mcp/src/tools/generated/reminders.ts b/services/mcp/src/tools/generated/reminders.ts
index 5eb5c88c946d..8c39b4a74d67 100644
--- a/services/mcp/src/tools/generated/reminders.ts
+++ b/services/mcp/src/tools/generated/reminders.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/reminders/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
RemindersCreateBody,
RemindersDestroyParams,
@@ -14,6 +10,8 @@ import {
RemindersPartialUpdateParams,
RemindersRetrieveParams,
} from '@/generated/reminders/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ReminderCreateSchema = RemindersCreateBody
diff --git a/services/mcp/src/tools/generated/replay.ts b/services/mcp/src/tools/generated/replay.ts
index 94224244fcb1..9ee3bf7be104 100644
--- a/services/mcp/src/tools/generated/replay.ts
+++ b/services/mcp/src/tools/generated/replay.ts
@@ -1,13 +1,7 @@
// AUTO-GENERATED from products/replay/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { createQueryWrapper } from '@/tools/query-wrapper-factory'
-
import {
SessionRecordingPlaylistsCreateBody,
SessionRecordingPlaylistsListQueryParams,
@@ -20,6 +14,10 @@ import {
SingleSessionSummariesListQueryParams,
SingleSessionSummariesRetrieveParams,
} from '@/generated/replay/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { createQueryWrapper } from '@/tools/query-wrapper-factory'
+import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const SessionRecordingBulkDeleteSchema = SessionRecordingsBulkDeleteCreateBody
diff --git a/services/mcp/src/tools/generated/replay_vision.ts b/services/mcp/src/tools/generated/replay_vision.ts
index 8c83061e2682..b585362ea18e 100644
--- a/services/mcp/src/tools/generated/replay_vision.ts
+++ b/services/mcp/src/tools/generated/replay_vision.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/replay_vision/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
VisionActionsListQueryParams,
VisionActionsRetrieveParams,
@@ -43,6 +39,8 @@ import {
VisionScannersPromptSuggestionsGenerateCreateParams,
VisionScannersRetrieveParams,
} from '@/generated/replay_vision/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const VisionActionsListSchema = VisionActionsListQueryParams
diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.ts
index 5e8b55c6df25..3cb643d1070c 100644
--- a/services/mcp/src/tools/generated/signals.ts
+++ b/services/mcp/src/tools/generated/signals.ts
@@ -1,19 +1,7 @@
// AUTO-GENERATED from products/signals/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import {
- withPostHogUrl,
- withAgentNote,
- pickResponseFields,
- withInformationalResponse,
- type WithPostHogUrl,
- type WithAgentNote,
- type WithInformationalResponse,
-} from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
SignalsReportArtefactsCreateBody,
SignalsReportArtefactsCreateParams,
@@ -62,6 +50,16 @@ import {
SignalsSourceConfigsUpdateBody,
SignalsSourceConfigsUpdateParams,
} from '@/generated/signals/api'
+import {
+ withPostHogUrl,
+ withAgentNote,
+ pickResponseFields,
+ withInformationalResponse,
+ type WithPostHogUrl,
+ type WithAgentNote,
+ type WithInformationalResponse,
+} from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const InboxReportArtefactsCreateSchema = SignalsReportArtefactsCreateParams.omit({ project_id: true }).extend(
SignalsReportArtefactsCreateBody.shape
diff --git a/services/mcp/src/tools/generated/skills.ts b/services/mcp/src/tools/generated/skills.ts
index 67f5bf66abc1..8bdf52a0c2e3 100644
--- a/services/mcp/src/tools/generated/skills.ts
+++ b/services/mcp/src/tools/generated/skills.ts
@@ -1,10 +1,7 @@
// AUTO-GENERATED from products/skills/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-
import type { Schemas } from '@/api/generated'
-
import {
LlmSkillsCreateBody,
LlmSkillsListQueryParams,
@@ -25,6 +22,7 @@ import {
LlmSkillsNameRetrieveParams,
LlmSkillsNameRetrieveQueryParams,
} from '@/generated/skills/api'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const SkillArchiveSchema = LlmSkillsNameArchiveCreateParams.omit({ project_id: true }).extend({
skill_name: LlmSkillsNameArchiveCreateParams.shape['skill_name'].describe(
diff --git a/services/mcp/src/tools/generated/stamphog.ts b/services/mcp/src/tools/generated/stamphog.ts
index 98ba1bb7ef9f..395804f0d4a7 100644
--- a/services/mcp/src/tools/generated/stamphog.ts
+++ b/services/mcp/src/tools/generated/stamphog.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/stamphog/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
StamphogDigestChannelsCreateBody,
StamphogDigestChannelsDestroyParams,
@@ -19,6 +15,8 @@ import {
StamphogReviewRunsListQueryParams,
StamphogReviewRunsRetrieveParams,
} from '@/generated/stamphog/api'
+import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const StamphogDigestChannelsCreateSchema = StamphogDigestChannelsCreateBody
diff --git a/services/mcp/src/tools/generated/subscriptions.ts b/services/mcp/src/tools/generated/subscriptions.ts
index bb13d470f9a6..9d59de4c48c6 100644
--- a/services/mcp/src/tools/generated/subscriptions.ts
+++ b/services/mcp/src/tools/generated/subscriptions.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/subscriptions/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { castStringToInt } from '@/tools/cast-helpers'
-
import {
SubscriptionsCreateBody,
SubscriptionsDeliveriesListParams,
@@ -19,6 +14,9 @@ import {
SubscriptionsRetrieveParams,
SubscriptionsTestDeliveryCreateParams,
} from '@/generated/subscriptions/api'
+import { castStringToInt } from '@/tools/cast-helpers'
+import { withPostHogUrl, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const SubscriptionsCreateSchema = SubscriptionsCreateBody
diff --git a/services/mcp/src/tools/generated/surveys.ts b/services/mcp/src/tools/generated/surveys.ts
index 5a72aff0d070..7817017a5c60 100644
--- a/services/mcp/src/tools/generated/surveys.ts
+++ b/services/mcp/src/tools/generated/surveys.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/surveys/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-
import {
SurveysCreateBody,
SurveysDestroyParams,
@@ -25,6 +20,9 @@ import {
SurveysSummarizeResponsesCreateParams,
SurveysSummarizeResponsesCreateQueryParams,
} from '@/generated/surveys/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const SurveyCreateSchema = SurveysCreateBody.omit({
linked_insight_id: true,
diff --git a/services/mcp/src/tools/generated/tasks.ts b/services/mcp/src/tools/generated/tasks.ts
index 4d75199ceb7a..f9b56ce5ca60 100644
--- a/services/mcp/src/tools/generated/tasks.ts
+++ b/services/mcp/src/tools/generated/tasks.ts
@@ -1,17 +1,7 @@
// AUTO-GENERATED from products/tasks/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'
-import {
- executeConfirmedAction,
- prepareConfirmedAction,
- type PrepareConfirmedActionResult,
-} from '@/tools/confirmed-action-runtime'
-
import {
LoopsCreateBody,
LoopsDestroyParams,
@@ -33,6 +23,14 @@ import {
TasksRunsSessionLogsRetrieveParams,
TasksRunsSessionLogsRetrieveQueryParams,
} from '@/generated/tasks/api'
+import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'
+import {
+ executeConfirmedAction,
+ prepareConfirmedAction,
+ type PrepareConfirmedActionResult,
+} from '@/tools/confirmed-action-runtime'
+import { withPostHogUrl, pickResponseFields, omitResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const LoopsCreateSchema = LoopsCreateBody
diff --git a/services/mcp/src/tools/generated/tracing.ts b/services/mcp/src/tools/generated/tracing.ts
index ca24991b3c85..139fcee72025 100644
--- a/services/mcp/src/tools/generated/tracing.ts
+++ b/services/mcp/src/tools/generated/tracing.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/tracing/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, pickResponseFields } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-
import {
TracingSpansAggregateCreateBody,
TracingSpansAttributeBreakdownCreateBody,
@@ -22,6 +17,9 @@ import {
TracingSpansTreeCreateBody,
TracingSpansValuesRetrieveQueryParams,
} from '@/generated/tracing/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { withPostHogUrl, pickResponseFields } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ApmAttributeBreakdownSchema = TracingSpansAttributeBreakdownCreateBody
diff --git a/services/mcp/src/tools/generated/user_interviews.ts b/services/mcp/src/tools/generated/user_interviews.ts
index 57e16f78961b..d73fb545ed35 100644
--- a/services/mcp/src/tools/generated/user_interviews.ts
+++ b/services/mcp/src/tools/generated/user_interviews.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/user_interviews/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-
import {
UserInterviewTopicsAddIntervieweeCreateBody,
UserInterviewTopicsAddIntervieweeCreateParams,
@@ -38,6 +33,9 @@ import {
UserInterviewsRetrieveParams,
UserInterviewsSearchCreateBody,
} from '@/generated/user_interviews/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const UserInterviewTopicsAddIntervieweeSchema = UserInterviewTopicsAddIntervieweeCreateParams.omit({
project_id: true,
diff --git a/services/mcp/src/tools/generated/visual_review.ts b/services/mcp/src/tools/generated/visual_review.ts
index 54e498c45411..850fb45293bf 100644
--- a/services/mcp/src/tools/generated/visual_review.ts
+++ b/services/mcp/src/tools/generated/visual_review.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/visual_review/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-
import {
VisualReviewReposListQueryParams,
VisualReviewReposRetrieveParams,
@@ -25,6 +20,9 @@ import {
VisualReviewRunsToleratedHashesListParams,
VisualReviewRunsToleratedHashesListQueryParams,
} from '@/generated/visual_review/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const VisualReviewReposListSchema = VisualReviewReposListQueryParams
diff --git a/services/mcp/src/tools/generated/warehouse_sources.ts b/services/mcp/src/tools/generated/warehouse_sources.ts
index be8e3e0c415f..b88b7251ca24 100644
--- a/services/mcp/src/tools/generated/warehouse_sources.ts
+++ b/services/mcp/src/tools/generated/warehouse_sources.ts
@@ -1,12 +1,7 @@
// AUTO-GENERATED from products/warehouse_sources/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, omitResponseFields, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { ExternalDataSourcePayloadSchema, ExternalDataSourceTypeSchema } from '@/schema/tool-inputs'
-
import {
ExternalDataSchemasCancelCreateParams,
ExternalDataSchemasDeleteDataDestroyParams,
@@ -43,6 +38,9 @@ import {
ExternalDataSourcesWebhookInfoRetrieveParams,
ExternalDataSourcesWizardRetrieveQueryParams,
} from '@/generated/warehouse_sources/api'
+import { ExternalDataSourcePayloadSchema, ExternalDataSourceTypeSchema } from '@/schema/tool-inputs'
+import { withPostHogUrl, omitResponseFields, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const DataWarehouseSourceConnectLinkSchema = ExternalDataSourcesConnectLinkRetrieveQueryParams.extend({
source_type: ExternalDataSourceTypeSchema,
diff --git a/services/mcp/src/tools/generated/web_analytics.ts b/services/mcp/src/tools/generated/web_analytics.ts
index b3e052262da4..05907be4fae1 100644
--- a/services/mcp/src/tools/generated/web_analytics.ts
+++ b/services/mcp/src/tools/generated/web_analytics.ts
@@ -1,11 +1,7 @@
// AUTO-GENERATED from products/web_analytics/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-
import {
HeatmapsEventsRetrieveQueryParams,
HeatmapsListQueryParams,
@@ -17,6 +13,8 @@ import {
SavedRetrieveParams,
WebAnalyticsWeeklyDigestQueryParams,
} from '@/generated/web_analytics/api'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const HeatmapsEventsSchema = HeatmapsEventsRetrieveQueryParams
diff --git a/services/mcp/src/tools/generated/workflows.ts b/services/mcp/src/tools/generated/workflows.ts
index 5e1cb8cb96cc..c3a031fba4c4 100644
--- a/services/mcp/src/tools/generated/workflows.ts
+++ b/services/mcp/src/tools/generated/workflows.ts
@@ -1,13 +1,7 @@
// AUTO-GENERATED from products/workflows/mcp/tools.yaml + OpenAPI — do not edit
import { z } from 'zod'
-import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-
import type { Schemas } from '@/api/generated'
-import { withUiApp } from '@/resources/ui-apps'
-import { WorkflowGraphPatchSchema } from '@/schema/tool-inputs'
-
import {
HogFlowsBatchJobsListParams,
HogFlowsCreateBody,
@@ -36,6 +30,10 @@ import {
HogFlowsSchedulesPartialUpdateBody,
HogFlowsSchedulesPartialUpdateParams,
} from '@/generated/workflows/api'
+import { withUiApp } from '@/resources/ui-apps'
+import { WorkflowGraphPatchSchema } from '@/schema/tool-inputs'
+import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const WorkflowsCreateSchema = HogFlowsCreateBody
diff --git a/tools/hogli-commands/hogli_commands/build.py b/tools/hogli-commands/hogli_commands/build.py
index 078227a9d6ec..aa6098c5290b 100644
--- a/tools/hogli-commands/hogli_commands/build.py
+++ b/tools/hogli-commands/hogli_commands/build.py
@@ -30,6 +30,10 @@ TRIGGERS: dict[str, tuple[str, ...]] = {
"products/*/mcp/prompts/*",
"services/mcp/definitions/*",
"services/mcp/schema/tool-definitions.json",
+ # The generator formats its output, so lint/format scope decides the bytes
+ # that land in the generated trees — a config-only edit silently invalidates them.
+ ".oxfmtrc.json",
+ ".oxlintrc.json",
),
"build:grammar": ("posthog/hogql/grammar/*",),
"build:taxonomy-json": ("posthog/taxonomy/*",),
diff --git a/tools/hogli-commands/hogli_commands/tests/test_build.py b/tools/hogli-commands/hogli_commands/tests/test_build.py
index f48255a42d4c..0025941085bd 100644
--- a/tools/hogli-commands/hogli_commands/tests/test_build.py
+++ b/tools/hogli-commands/hogli_commands/tests/test_build.py
@@ -27,6 +27,8 @@ class TestTriggerMatching:
("products/surveys/backend/presentation/views.py", "build:openapi"),
("products/surveys/mcp/tools.yaml", "build:openapi"),
("services/mcp/definitions/core.yaml", "build:openapi"),
+ (".oxfmtrc.json", "build:openapi"),
+ (".oxlintrc.json", "build:openapi"),
("posthog/hogql/grammar/HogQLParser.g4", "build:grammar"),
("posthog/taxonomy/taxonomy.py", "build:taxonomy-json"),
("products/surveys/frontend/src/Survey.tsx", "build:products"),