: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): expose inbox source config write MCP tools (#61851)
Andrew Maguirec14e2e901baf
diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex ecbd491c47c3..29e0ad3bd016 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -89,7 +89,25 @@ tools:again later. Returns 409 if the transition is not allowed from the report's current status.inbox-source-configs-create:operation: signals_source_configs_create- enabled: false+ enabled: true+ scopes:+ - task:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: false+ title: Create signal source config+ description: >+ Create a signal source config for the current project, switching an inbox signal source on. A source ties a+ `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay,+ llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid+ `source_type` values: session_analysis_cluster, evaluation, issue, ticket, issue_created, issue_reopened,+ issue_spiking, cross_source_issue, alert_state_change. To turn the Signals scout source on for a project,+ create `source_product=signals_scout`, `source_type=cross_source_issue`, `enabled=true` — this is the+ team-level source gate that scout emit also requires (the per-scout `emit` flag is set separately via+ `signals-scout-config-update`). There is at most one config per (source_product, source_type) per project;+ if one already exists, update it instead. Enabling the session_analysis_cluster source requires the+ organization to have approved AI data processing.inbox-source-configs-destroy:operation: signals_source_configs_destroyenabled: false@@ -120,7 +138,19 @@ tools:- updated_atinbox-source-configs-partial-update:operation: signals_source_configs_partial_update- enabled: false+ enabled: true+ scopes:+ - task:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ title: Update signal source config+ description: >+ Partially update an existing signal source config by ID — typically to flip its `enabled` flag on or off, or+ to adjust its `config`. Only the fields you pass are changed. To turn the Signals scout source off for a+ project, set `enabled=false` on its `signals_scout` / `cross_source_issue` config. Enabling the+ session_analysis_cluster source requires the organization to have approved AI data processing.inbox-source-configs-retrieve:operation: signals_source_configs_retrieveenabled: true@@ -136,7 +166,19 @@ tools:enabled flag, configuration JSON, and current status of the underlying data import or workflow.inbox-source-configs-update:operation: signals_source_configs_update- enabled: false+ enabled: true+ scopes:+ - task:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ title: Replace signal source config+ description: >+ Replace an existing signal source config by ID (full update — `source_product` and `source_type` are+ required; `enabled` and `config` are optional and keep their current values if omitted). Prefer+ `inbox-source-configs-partial-update` when you only need to flip `enabled` or tweak `config`. Enabling the+ session_analysis_cluster source requires the organization to have approved AI data processing.signals-scout-config-list:operation: signals_scout_config_listenabled: truediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex a45e8c0fbd4e..5026efea69e9 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -2613,6 +2613,20 @@"readOnlyHint": false}},+ "inbox-source-configs-create": {+ "description": "Create a signal source config for the current project, switching an inbox signal source on. A source ties a `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay, llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid `source_type` values: session_analysis_cluster, evaluation, issue, ticket, issue_created, issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To turn the Signals scout source on for a project, create `source_product=signals_scout`, `source_type=cross_source_issue`, `enabled=true` — this is the team-level source gate that scout emit also requires (the per-scout `emit` flag is set separately via `signals-scout-config-update`). There is at most one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "category": "Signals",+ "feature": "signals",+ "summary": "Create signal source config",+ "title": "Create signal source config",+ "required_scopes": ["task:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"inbox-source-configs-list": {"description": "List the configured signal sources for the current project. A signal source ties a product (e.g. error_tracking, session_replay, github, linear, zendesk) and a source_type to an enabled flag and configuration. The 'status' field reflects the current state of the underlying data import or workflow (running, completed, failed) when applicable.","category": "Signals",@@ -2627,6 +2641,20 @@"readOnlyHint": true}},+ "inbox-source-configs-partial-update": {+ "description": "Partially update an existing signal source config by ID — typically to flip its `enabled` flag on or off, or to adjust its `config`. Only the fields you pass are changed. To turn the Signals scout source off for a project, set `enabled=false` on its `signals_scout` / `cross_source_issue` config. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "category": "Signals",+ "feature": "signals",+ "summary": "Update signal source config",+ "title": "Update signal source config",+ "required_scopes": ["task:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"inbox-source-configs-retrieve": {"description": "Get a single signal source config by ID. Returns the full record including source_product, source_type, enabled flag, configuration JSON, and current status of the underlying data import or workflow.","category": "Signals",@@ -2641,6 +2669,20 @@"readOnlyHint": true}},+ "inbox-source-configs-update": {+ "description": "Replace an existing signal source config by ID (full update — `source_product` and `source_type` are required; `enabled` and `config` are optional and keep their current values if omitted). Prefer `inbox-source-configs-partial-update` when you only need to flip `enabled` or tweak `config`. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "category": "Signals",+ "feature": "signals",+ "summary": "Replace signal source config",+ "title": "Replace signal source config",+ "required_scopes": ["task:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"insight-create": {"description": "Create a new saved insight from a name and query definition. Test queries with query-trends / query-funnel / query-retention / query-paths / query-stickiness / query-lifecycle first to confirm the shape, then save. Returns insight metadata only — after creating, call the insight-query tool with the returned `short_id` if you want to see the computed results.","category": "Product analytics",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 7f7aa05ac11c..9e57ef9bb531 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -2853,6 +2853,20 @@"readOnlyHint": false}},+ "inbox-source-configs-create": {+ "description": "Create a signal source config for the current project, switching an inbox signal source on. A source ties a `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay, llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid `source_type` values: session_analysis_cluster, evaluation, issue, ticket, issue_created, issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To turn the Signals scout source on for a project, create `source_product=signals_scout`, `source_type=cross_source_issue`, `enabled=true` — this is the team-level source gate that scout emit also requires (the per-scout `emit` flag is set separately via `signals-scout-config-update`). There is at most one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "category": "Signals",+ "feature": "signals",+ "summary": "Create signal source config",+ "title": "Create signal source config",+ "required_scopes": ["task:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"inbox-source-configs-list": {"description": "List the configured signal sources for the current project. A signal source ties a product (e.g. error_tracking, session_replay, github, linear, zendesk) and a source_type to an enabled flag and configuration. The 'status' field reflects the current state of the underlying data import or workflow (running, completed, failed) when applicable.","category": "Signals",@@ -2867,6 +2881,20 @@"readOnlyHint": true}},+ "inbox-source-configs-partial-update": {+ "description": "Partially update an existing signal source config by ID — typically to flip its `enabled` flag on or off, or to adjust its `config`. Only the fields you pass are changed. To turn the Signals scout source off for a project, set `enabled=false` on its `signals_scout` / `cross_source_issue` config. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "category": "Signals",+ "feature": "signals",+ "summary": "Update signal source config",+ "title": "Update signal source config",+ "required_scopes": ["task:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"inbox-source-configs-retrieve": {"description": "Get a single signal source config by ID. Returns the full record including source_product, source_type, enabled flag, configuration JSON, and current status of the underlying data import or workflow.","category": "Signals",@@ -2881,6 +2909,20 @@"readOnlyHint": true}},+ "inbox-source-configs-update": {+ "description": "Replace an existing signal source config by ID (full update — `source_product` and `source_type` are required; `enabled` and `config` are optional and keep their current values if omitted). Prefer `inbox-source-configs-partial-update` when you only need to flip `enabled` or tweak `config`. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "category": "Signals",+ "feature": "signals",+ "summary": "Replace signal source config",+ "title": "Replace signal source config",+ "required_scopes": ["task:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"insight-create": {"description": "Create a new saved insight from a name and query definition. Test queries with query-trends / query-funnel / query-retention / query-paths / query-stickiness / query-lifecycle first to confirm the shape, then save. Returns insight metadata only — after creating, call the insight-query tool with the returned `short_id` if you want to see the computed results.","category": "Product analytics",diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex db7a0b6c3857..92e7f6e924ee 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -3,7 +3,7 @@* MCP service uses these Zod schemas for generated tool handlers.* To regenerate: hogli build:openapi*- * PostHog API - MCP 14 enabled ops+ * PostHog API - MCP 17 enabled ops* OpenAPI spec version: 1.0.0*/import * as zod from 'zod'@@ -437,6 +437,50 @@ export const SignalsSourceConfigsListQueryParams = /* @__PURE__ */ zod.object({offset: zod.number().optional().describe('The initial index from which to return the results.'),})+export const SignalsSourceConfigsCreateParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})++export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({+ source_product: zod+ .enum([+ 'session_replay',+ 'llm_analytics',+ 'github',+ 'linear',+ 'zendesk',+ 'conversations',+ 'error_tracking',+ 'pganalyze',+ 'signals_scout',+ 'logs',+ ])+ .describe(+ '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs'+ ),+ source_type: zod+ .enum([+ 'session_analysis_cluster',+ 'evaluation',+ 'issue',+ 'ticket',+ 'issue_created',+ 'issue_reopened',+ 'issue_spiking',+ 'cross_source_issue',+ 'alert_state_change',+ ])+ .describe(+ '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change'+ ),+ enabled: zod.boolean().optional(),+ config: zod.unknown().optional(),+})+export const SignalsSourceConfigsRetrieveParams = /* @__PURE__ */ zod.object({id: zod.string().describe('A UUID string identifying this signal source config.'),project_id: zod@@ -445,3 +489,95 @@ export const SignalsSourceConfigsRetrieveParams = /* @__PURE__ */ zod.object({"Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."),})++export const SignalsSourceConfigsUpdateParams = /* @__PURE__ */ zod.object({+ id: zod.string().describe('A UUID string identifying this signal source config.'),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})++export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({+ source_product: zod+ .enum([+ 'session_replay',+ 'llm_analytics',+ 'github',+ 'linear',+ 'zendesk',+ 'conversations',+ 'error_tracking',+ 'pganalyze',+ 'signals_scout',+ 'logs',+ ])+ .describe(+ '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs'+ ),+ source_type: zod+ .enum([+ 'session_analysis_cluster',+ 'evaluation',+ 'issue',+ 'ticket',+ 'issue_created',+ 'issue_reopened',+ 'issue_spiking',+ 'cross_source_issue',+ 'alert_state_change',+ ])+ .describe(+ '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change'+ ),+ enabled: zod.boolean().optional(),+ config: zod.unknown().optional(),+})++export const SignalsSourceConfigsPartialUpdateParams = /* @__PURE__ */ zod.object({+ id: zod.string().describe('A UUID string identifying this signal source config.'),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})++export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object({+ source_product: zod+ .enum([+ 'session_replay',+ 'llm_analytics',+ 'github',+ 'linear',+ 'zendesk',+ 'conversations',+ 'error_tracking',+ 'pganalyze',+ 'signals_scout',+ 'logs',+ ])+ .optional()+ .describe(+ '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs'+ ),+ source_type: zod+ .enum([+ 'session_analysis_cluster',+ 'evaluation',+ 'issue',+ 'ticket',+ 'issue_created',+ 'issue_reopened',+ 'issue_spiking',+ 'cross_source_issue',+ 'alert_state_change',+ ])+ .optional()+ .describe(+ '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change'+ ),+ enabled: zod.boolean().optional(),+ config: zod.unknown().optional(),+})diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.tsindex 481a3baaca92..d18300067533 100644--- a/services/mcp/src/tools/generated/signals.ts+++ b/services/mcp/src/tools/generated/signals.ts@@ -17,8 +17,13 @@ import {SignalsScoutScratchpadForgetBody,SignalsScoutScratchpadRememberBody,SignalsScoutScratchpadSearchQueryParams,+ SignalsSourceConfigsCreateBody,SignalsSourceConfigsListQueryParams,+ SignalsSourceConfigsPartialUpdateBody,+ SignalsSourceConfigsPartialUpdateParams,SignalsSourceConfigsRetrieveParams,+ SignalsSourceConfigsUpdateBody,+ SignalsSourceConfigsUpdateParams,} from '@/generated/signals/api'import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'@@ -127,6 +132,35 @@ const inboxReportsSetState = (): ToolBase<typeof InboxReportsSetStateSchema, Wit},})+const InboxSourceConfigsCreateSchema = SignalsSourceConfigsCreateBody++const inboxSourceConfigsCreate = (): ToolBase<typeof InboxSourceConfigsCreateSchema, Schemas.SignalSourceConfig> => ({+ name: 'inbox-source-configs-create',+ schema: InboxSourceConfigsCreateSchema,+ handler: async (context: Context, params: z.infer<typeof InboxSourceConfigsCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.source_product !== undefined) {+ body['source_product'] = params.source_product+ }+ if (params.source_type !== undefined) {+ body['source_type'] = params.source_type+ }+ if (params.enabled !== undefined) {+ body['enabled'] = params.enabled+ }+ if (params.config !== undefined) {+ body['config'] = params.config+ }+ const result = await context.api.request<Schemas.SignalSourceConfig>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/signals/source_configs/`,+ body,+ })+ return result+ },+})+const InboxSourceConfigsListSchema = SignalsSourceConfigsListQueryParamsconst inboxSourceConfigsList = (): ToolBase<@@ -163,6 +197,40 @@ const inboxSourceConfigsList = (): ToolBase<},})+const InboxSourceConfigsPartialUpdateSchema = SignalsSourceConfigsPartialUpdateParams.omit({ project_id: true }).extend(+ SignalsSourceConfigsPartialUpdateBody.shape+)++const inboxSourceConfigsPartialUpdate = (): ToolBase<+ typeof InboxSourceConfigsPartialUpdateSchema,+ Schemas.SignalSourceConfig+> => ({+ name: 'inbox-source-configs-partial-update',+ schema: InboxSourceConfigsPartialUpdateSchema,+ handler: async (context: Context, params: z.infer<typeof InboxSourceConfigsPartialUpdateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.source_product !== undefined) {+ body['source_product'] = params.source_product+ }+ if (params.source_type !== undefined) {+ body['source_type'] = params.source_type+ }+ if (params.enabled !== undefined) {+ body['enabled'] = params.enabled+ }+ if (params.config !== undefined) {+ body['config'] = params.config+ }+ const result = await context.api.request<Schemas.SignalSourceConfig>({+ method: 'PATCH',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/signals/source_configs/${encodeURIComponent(String(params.id))}/`,+ body,+ })+ return result+ },+})+const InboxSourceConfigsRetrieveSchema = SignalsSourceConfigsRetrieveParams.omit({ project_id: true })const inboxSourceConfigsRetrieve = (): ToolBase<@@ -181,6 +249,37 @@ const inboxSourceConfigsRetrieve = (): ToolBase<},})+const InboxSourceConfigsUpdateSchema = SignalsSourceConfigsUpdateParams.omit({ project_id: true }).extend(+ SignalsSourceConfigsUpdateBody.shape+)++const inboxSourceConfigsUpdate = (): ToolBase<typeof InboxSourceConfigsUpdateSchema, Schemas.SignalSourceConfig> => ({+ name: 'inbox-source-configs-update',+ schema: InboxSourceConfigsUpdateSchema,+ handler: async (context: Context, params: z.infer<typeof InboxSourceConfigsUpdateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.source_product !== undefined) {+ body['source_product'] = params.source_product+ }+ if (params.source_type !== undefined) {+ body['source_type'] = params.source_type+ }+ if (params.enabled !== undefined) {+ body['enabled'] = params.enabled+ }+ if (params.config !== undefined) {+ body['config'] = params.config+ }+ const result = await context.api.request<Schemas.SignalSourceConfig>({+ method: 'PUT',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/signals/source_configs/${encodeURIComponent(String(params.id))}/`,+ body,+ })+ return result+ },+})+const SignalsScoutConfigListSchema = z.object({})const signalsScoutConfigList = (): ToolBase<@@ -418,8 +517,11 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {'inbox-reports-list': inboxReportsList,'inbox-reports-retrieve': inboxReportsRetrieve,'inbox-reports-set-state': inboxReportsSetState,+ 'inbox-source-configs-create': inboxSourceConfigsCreate,'inbox-source-configs-list': inboxSourceConfigsList,+ 'inbox-source-configs-partial-update': inboxSourceConfigsPartialUpdate,'inbox-source-configs-retrieve': inboxSourceConfigsRetrieve,+ 'inbox-source-configs-update': inboxSourceConfigsUpdate,'signals-scout-config-list': signalsScoutConfigList,'signals-scout-config-update': signalsScoutConfigUpdate,'signals-scout-emit-signal': signalsScoutEmitSignal,diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.jsonnew file mode 100644index 000000000000..34c60b26f6e9--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.json@@ -0,0 +1,42 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "config": {},+ "enabled": {+ "type": "boolean"+ },+ "source_product": {+ "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs",+ "enum": [+ "session_replay",+ "llm_analytics",+ "github",+ "linear",+ "zendesk",+ "conversations",+ "error_tracking",+ "pganalyze",+ "signals_scout",+ "logs"+ ],+ "type": "string"+ },+ "source_type": {+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change",+ "enum": [+ "session_analysis_cluster",+ "evaluation",+ "issue",+ "ticket",+ "issue_created",+ "issue_reopened",+ "issue_spiking",+ "cross_source_issue",+ "alert_state_change"+ ],+ "type": "string"+ }+ },+ "required": ["source_product", "source_type"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.jsonnew file mode 100644index 000000000000..efcea9f369f6--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.json@@ -0,0 +1,46 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "config": {},+ "enabled": {+ "type": "boolean"+ },+ "id": {+ "description": "A UUID string identifying this signal source config.",+ "type": "string"+ },+ "source_product": {+ "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs",+ "enum": [+ "session_replay",+ "llm_analytics",+ "github",+ "linear",+ "zendesk",+ "conversations",+ "error_tracking",+ "pganalyze",+ "signals_scout",+ "logs"+ ],+ "type": "string"+ },+ "source_type": {+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change",+ "enum": [+ "session_analysis_cluster",+ "evaluation",+ "issue",+ "ticket",+ "issue_created",+ "issue_reopened",+ "issue_spiking",+ "cross_source_issue",+ "alert_state_change"+ ],+ "type": "string"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.jsonnew file mode 100644index 000000000000..94dd7e5331d3--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.json@@ -0,0 +1,46 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "config": {},+ "enabled": {+ "type": "boolean"+ },+ "id": {+ "description": "A UUID string identifying this signal source config.",+ "type": "string"+ },+ "source_product": {+ "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs",+ "enum": [+ "session_replay",+ "llm_analytics",+ "github",+ "linear",+ "zendesk",+ "conversations",+ "error_tracking",+ "pganalyze",+ "signals_scout",+ "logs"+ ],+ "type": "string"+ },+ "source_type": {+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change",+ "enum": [+ "session_analysis_cluster",+ "evaluation",+ "issue",+ "ticket",+ "issue_created",+ "issue_reopened",+ "issue_spiking",+ "cross_source_issue",+ "alert_state_change"+ ],+ "type": "string"+ }+ },+ "required": ["id", "source_product", "source_type"],+ "type": "object"+}