: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
chore(auth): add mcp tools for idp configs (#111933)
Reece Jones5602f210027d
diff --git a/services/mcp/definitions/core.yaml b/services/mcp/definitions/core.yamlindex fac809012173..6c4807b3a15a 100644--- a/services/mcp/definitions/core.yaml+++ b/services/mcp/definitions/core.yaml@@ -87,7 +87,25 @@ tools:enabled: falsedomains-list:operation: domains_list- enabled: false+ enabled: true+ scopes:+ - organization:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ list: true+ title: List organization authentication domains+ description: >+ List authentication domains in the active organization with their IDs and verification status. Use a domain+ ID from this result in `organization_domain_ids` to link it to an identity provider configuration. Only+ verified domains are used for authentication routing.+ response:+ include:+ - id+ - domain+ - is_verified+ - verified_atdomains-partial-update:operation: domains_partial_updateenabled: false@@ -195,25 +213,116 @@ tools:enabled: falseidentity-provider-configs-create:operation: identity_provider_configs_create- enabled: false+ enabled: true+ scopes:+ - organization:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: false+ title: Create an identity provider configuration+ description: >+ Create an organization identity provider configuration for SAML, OIDC, SCIM, or XAA (ID-JAG). Set+ `config_scope` to `saml`, `oidc`, `scim`, or `xaa`. Use `domain_scope: selected` with+ `organization_domain_ids` to link specific organization domains, or `domain_scope: all` to cover all+ verified organization domains. SAML uses `saml_entity_id`, `saml_acs_url`, and `saml_x509_cert`; OIDC uses+ `oidc_issuer_url`, `oidc_client_id`, and `oidc_client_secret`; SCIM can be enabled with `scim_enabled`; XAA+ uses `id_jag_issuer_url` with optional JWKS and allowed-client settings. The create call requires explicit+ user confirmation before execution.+ confirmed_action:+ message: >+ Create an identity provider configuration using the supplied protocol, settings, and domain coverage.+ Review those values and reply 'confirm' to proceed.+ action_label: create identity provider configurationidentity-provider-configs-destroy:operation: identity_provider_configs_destroy- enabled: false+ enabled: true+ scopes:+ - organization:write+ annotations:+ readOnly: false+ destructive: true+ idempotent: true+ title: Delete an identity provider configuration+ description: >+ Permanently delete an identity provider configuration by its ID. This removes its SAML, OIDC, SCIM, or XAA+ settings and its linked organization domains. The delete call requires explicit user confirmation.+ confirmed_action:+ message: >+ Permanently delete identity provider configuration {id}, including its linked domains and authentication+ settings. Reply 'confirm' to proceed.+ action_label: delete identity provider configurationidentity-provider-configs-list:operation: identity_provider_configs_list- enabled: false+ enabled: true+ scopes:+ - organization:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ list: true+ title: List identity provider configurations+ description: >+ List identity provider configurations in the active organization. Configurations can use SAML, OIDC, SCIM,+ or XAA (ID-JAG). Results include the protocol settings, SCIM URL, configuration status, and linked domain+ IDs. A saved OIDC client secret and an existing SCIM bearer token are never returned.identity-provider-configs-partial-update:operation: identity_provider_configs_partial_update- enabled: false+ enabled: true+ scopes:+ - organization:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ title: Update an identity provider configuration+ description: >+ Update selected fields on an identity provider configuration by ID. Use this to change SAML, OIDC, SCIM, or+ XAA (ID-JAG) settings, link selected domains with `organization_domain_ids`, or set `domain_scope: all` to+ cover all verified organization domains. For selected domains, `organization_domain_ids` replaces the+ current links. Omit `oidc_client_secret` to keep the saved secret. The update call requires explicit user+ confirmation.+ confirmed_action:+ message: >+ Update identity provider configuration {id}. Review the requested settings and domain coverage, then+ reply 'confirm' to proceed.+ action_label: update identity provider configurationidentity-provider-configs-retrieve:operation: identity_provider_configs_retrieve- enabled: false+ enabled: true+ scopes:+ - organization:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ title: Get an identity provider configuration+ description: >+ Get an identity provider configuration by ID. Returns its protocol settings, SCIM URL, configuration status,+ and linked domain IDs. A saved OIDC client secret and an existing SCIM bearer token are never returned.identity-provider-configs-scim-logs-retrieve:operation: identity_provider_configs_scim_logs_retrieveenabled: falseidentity-provider-configs-scim-token-create:operation: identity_provider_configs_scim_token_create- enabled: false+ enabled: true+ scopes:+ - organization:write+ annotations:+ readOnly: false+ destructive: true+ idempotent: false+ title: Regenerate an identity provider SCIM token+ description: >+ Regenerate the SCIM bearer token for an identity provider configuration. The new token is returned once;+ existing SCIM clients stop working until configured with the new token. This call requires explicit user+ confirmation.+ confirmed_action:+ message: >+ Regenerate the SCIM bearer token for identity provider configuration {id}. Existing SCIM clients will+ stop working until updated. Reply 'confirm' to proceed.+ action_label: regenerate SCIM bearer tokenidentity-provider-configs-update:operation: identity_provider_configs_updateenabled: falsediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 5dfdf16daad9..9bc9a06e01ce 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -4045,6 +4045,20 @@"readOnlyHint": true}},+ "domains-list": {+ "description": "List authentication domains in the active organization with their IDs and verification status. Use a domain ID from this result in `organization_domain_ids` to link it to an identity provider configuration. Only verified domains are used for authentication routing.",+ "category": "Core",+ "feature": "core",+ "summary": "List organization authentication domains",+ "title": "List organization authentication domains",+ "required_scopes": ["organization:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },"early-access-feature-create": {"description": "Create a new early access feature. A feature flag is automatically created unless feature_flag_id is provided. Stage determines whether opted-in users get the feature enabled.","category": "Early access features",@@ -6692,6 +6706,146 @@"readOnlyHint": false}},+ "identity-provider-configs-create-execute": {+ "description": "Step 2 of 2 for create identity provider configuration. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Create an organization identity provider configuration for SAML, OIDC, SCIM, or XAA (ID-JAG). Set `config_scope` to `saml`, `oidc`, `scim`, or `xaa`. Use `domain_scope: selected` with `organization_domain_ids` to link specific organization domains, or `domain_scope: all` to cover all verified organization domains. SAML uses `saml_entity_id`, `saml_acs_url`, and `saml_x509_cert`; OIDC uses `oidc_issuer_url`, `oidc_client_id`, and `oidc_client_secret`; SCIM can be enabled with `scim_enabled`; XAA uses `id_jag_issuer_url` with optional JWKS and allowed-client settings. The create call requires explicit user confirmation before execution.",+ "category": "Core",+ "feature": "core",+ "summary": "Create an identity provider configuration (execute)",+ "title": "Create an identity provider configuration (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-create-prepare": {+ "description": "Step 1 of 2 for create identity provider configuration. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Create an organization identity provider configuration for SAML, OIDC, SCIM, or XAA (ID-JAG). Set `config_scope` to `saml`, `oidc`, `scim`, or `xaa`. Use `domain_scope: selected` with `organization_domain_ids` to link specific organization domains, or `domain_scope: all` to cover all verified organization domains. SAML uses `saml_entity_id`, `saml_acs_url`, and `saml_x509_cert`; OIDC uses `oidc_issuer_url`, `oidc_client_id`, and `oidc_client_secret`; SCIM can be enabled with `scim_enabled`; XAA uses `id_jag_issuer_url` with optional JWKS and allowed-client settings. The create call requires explicit user confirmation before execution.",+ "category": "Core",+ "feature": "core",+ "summary": "Create an identity provider configuration (prepare)",+ "title": "Create an identity provider configuration (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-destroy-execute": {+ "description": "Step 2 of 2 for delete identity provider configuration. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Permanently delete an identity provider configuration by its ID. This removes its SAML, OIDC, SCIM, or XAA settings and its linked organization domains. The delete call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Delete an identity provider configuration (execute)",+ "title": "Delete an identity provider configuration (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-destroy-prepare": {+ "description": "Step 1 of 2 for delete identity provider configuration. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Permanently delete an identity provider configuration by its ID. This removes its SAML, OIDC, SCIM, or XAA settings and its linked organization domains. The delete call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Delete an identity provider configuration (prepare)",+ "title": "Delete an identity provider configuration (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-list": {+ "description": "List identity provider configurations in the active organization. Configurations can use SAML, OIDC, SCIM, or XAA (ID-JAG). Results include the protocol settings, SCIM URL, configuration status, and linked domain IDs. A saved OIDC client secret and an existing SCIM bearer token are never returned.",+ "category": "Core",+ "feature": "core",+ "summary": "List identity provider configurations",+ "title": "List identity provider configurations",+ "required_scopes": ["organization:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-partial-update-execute": {+ "description": "Step 2 of 2 for update identity provider configuration. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Update selected fields on an identity provider configuration by ID. Use this to change SAML, OIDC, SCIM, or XAA (ID-JAG) settings, link selected domains with `organization_domain_ids`, or set `domain_scope: all` to cover all verified organization domains. For selected domains, `organization_domain_ids` replaces the current links. Omit `oidc_client_secret` to keep the saved secret. The update call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Update an identity provider configuration (execute)",+ "title": "Update an identity provider configuration (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-partial-update-prepare": {+ "description": "Step 1 of 2 for update identity provider configuration. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Update selected fields on an identity provider configuration by ID. Use this to change SAML, OIDC, SCIM, or XAA (ID-JAG) settings, link selected domains with `organization_domain_ids`, or set `domain_scope: all` to cover all verified organization domains. For selected domains, `organization_domain_ids` replaces the current links. Omit `oidc_client_secret` to keep the saved secret. The update call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Update an identity provider configuration (prepare)",+ "title": "Update an identity provider configuration (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-retrieve": {+ "description": "Get an identity provider configuration by ID. Returns its protocol settings, SCIM URL, configuration status, and linked domain IDs. A saved OIDC client secret and an existing SCIM bearer token are never returned.",+ "category": "Core",+ "feature": "core",+ "summary": "Get an identity provider configuration",+ "title": "Get an identity provider configuration",+ "required_scopes": ["organization:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-scim-token-create-execute": {+ "description": "Step 2 of 2 for regenerate SCIM bearer token. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Regenerate the SCIM bearer token for an identity provider configuration. The new token is returned once; existing SCIM clients stop working until configured with the new token. This call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Regenerate an identity provider SCIM token (execute)",+ "title": "Regenerate an identity provider SCIM token (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-scim-token-create-prepare": {+ "description": "Step 1 of 2 for regenerate SCIM bearer token. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Regenerate the SCIM bearer token for an identity provider configuration. The new token is returned once; existing SCIM clients stop working until configured with the new token. This call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Regenerate an identity provider SCIM token (prepare)",+ "title": "Regenerate an identity provider SCIM token (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },"inbox-report-artefacts-create": {"description": "Append an artefact to a signal report so it reads as a living document. Everything is append-only. Log types accumulate — `code_reference` (a contiguous span of source lines, at most 20: file_path, start_line, end_line, contents, relevance_note; a single line is just start_line == end_line), `commit` (one commit that has already been pushed to a remote branch: repository, branch, commit_sha, message — usually recorded automatically when you push via git_signed_commit. Only create one yourself for a commit pushed to a remote by other means; never record a commit that is not on a remote branch — an unpushed or local-only commit is always a mistake), `note` (free-form: note). Follow-up goals live in report checks, not artefacts. Status types are latest-wins — appending a new version supersedes the previous one as the report's canonical status: `priority_judgment` (explanation, priority P0–P4), `actionability_judgment` (explanation, actionability, already_addressed), `safety_judgment` (choice), `repo_selection` (repository, reason), `suggested_reviewers` (a list of {github_login}). Status judgments are consequential, not advisory: the canonical priority/actionability steer what humans and agents pick up next, and PostHog's automation uses them when deciding which reports to act on. `content` is a JSON object matching the chosen type and is validated against its schema. Writes are attributed to your task automatically. Pass claim_id to associate the work with your current claim; stale or foreign claims are rejected. Returns the created artefact including its id.","category": "Signals",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 3decbeebbcb8..de087915b433 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -4074,6 +4074,20 @@"readOnlyHint": true}},+ "domains-list": {+ "description": "List authentication domains in the active organization with their IDs and verification status. Use a domain ID from this result in `organization_domain_ids` to link it to an identity provider configuration. Only verified domains are used for authentication routing.",+ "category": "Core",+ "feature": "core",+ "summary": "List organization authentication domains",+ "title": "List organization authentication domains",+ "required_scopes": ["organization:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },"early-access-feature-create": {"description": "Create a new early access feature. A feature flag is automatically created unless feature_flag_id is provided. Stage determines whether opted-in users get the feature enabled.","category": "Early access features",@@ -6889,6 +6903,146 @@"readOnlyHint": false}},+ "identity-provider-configs-create-execute": {+ "description": "Step 2 of 2 for create identity provider configuration. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Create an organization identity provider configuration for SAML, OIDC, SCIM, or XAA (ID-JAG). Set `config_scope` to `saml`, `oidc`, `scim`, or `xaa`. Use `domain_scope: selected` with `organization_domain_ids` to link specific organization domains, or `domain_scope: all` to cover all verified organization domains. SAML uses `saml_entity_id`, `saml_acs_url`, and `saml_x509_cert`; OIDC uses `oidc_issuer_url`, `oidc_client_id`, and `oidc_client_secret`; SCIM can be enabled with `scim_enabled`; XAA uses `id_jag_issuer_url` with optional JWKS and allowed-client settings. The create call requires explicit user confirmation before execution.",+ "category": "Core",+ "feature": "core",+ "summary": "Create an identity provider configuration (execute)",+ "title": "Create an identity provider configuration (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-create-prepare": {+ "description": "Step 1 of 2 for create identity provider configuration. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Create an organization identity provider configuration for SAML, OIDC, SCIM, or XAA (ID-JAG). Set `config_scope` to `saml`, `oidc`, `scim`, or `xaa`. Use `domain_scope: selected` with `organization_domain_ids` to link specific organization domains, or `domain_scope: all` to cover all verified organization domains. SAML uses `saml_entity_id`, `saml_acs_url`, and `saml_x509_cert`; OIDC uses `oidc_issuer_url`, `oidc_client_id`, and `oidc_client_secret`; SCIM can be enabled with `scim_enabled`; XAA uses `id_jag_issuer_url` with optional JWKS and allowed-client settings. The create call requires explicit user confirmation before execution.",+ "category": "Core",+ "feature": "core",+ "summary": "Create an identity provider configuration (prepare)",+ "title": "Create an identity provider configuration (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-destroy-execute": {+ "description": "Step 2 of 2 for delete identity provider configuration. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Permanently delete an identity provider configuration by its ID. This removes its SAML, OIDC, SCIM, or XAA settings and its linked organization domains. The delete call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Delete an identity provider configuration (execute)",+ "title": "Delete an identity provider configuration (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-destroy-prepare": {+ "description": "Step 1 of 2 for delete identity provider configuration. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Permanently delete an identity provider configuration by its ID. This removes its SAML, OIDC, SCIM, or XAA settings and its linked organization domains. The delete call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Delete an identity provider configuration (prepare)",+ "title": "Delete an identity provider configuration (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-list": {+ "description": "List identity provider configurations in the active organization. Configurations can use SAML, OIDC, SCIM, or XAA (ID-JAG). Results include the protocol settings, SCIM URL, configuration status, and linked domain IDs. A saved OIDC client secret and an existing SCIM bearer token are never returned.",+ "category": "Core",+ "feature": "core",+ "summary": "List identity provider configurations",+ "title": "List identity provider configurations",+ "required_scopes": ["organization:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-partial-update-execute": {+ "description": "Step 2 of 2 for update identity provider configuration. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Update selected fields on an identity provider configuration by ID. Use this to change SAML, OIDC, SCIM, or XAA (ID-JAG) settings, link selected domains with `organization_domain_ids`, or set `domain_scope: all` to cover all verified organization domains. For selected domains, `organization_domain_ids` replaces the current links. Omit `oidc_client_secret` to keep the saved secret. The update call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Update an identity provider configuration (execute)",+ "title": "Update an identity provider configuration (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-partial-update-prepare": {+ "description": "Step 1 of 2 for update identity provider configuration. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Update selected fields on an identity provider configuration by ID. Use this to change SAML, OIDC, SCIM, or XAA (ID-JAG) settings, link selected domains with `organization_domain_ids`, or set `domain_scope: all` to cover all verified organization domains. For selected domains, `organization_domain_ids` replaces the current links. Omit `oidc_client_secret` to keep the saved secret. The update call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Update an identity provider configuration (prepare)",+ "title": "Update an identity provider configuration (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-retrieve": {+ "description": "Get an identity provider configuration by ID. Returns its protocol settings, SCIM URL, configuration status, and linked domain IDs. A saved OIDC client secret and an existing SCIM bearer token are never returned.",+ "category": "Core",+ "feature": "core",+ "summary": "Get an identity provider configuration",+ "title": "Get an identity provider configuration",+ "required_scopes": ["organization:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "identity-provider-configs-scim-token-create-execute": {+ "description": "Step 2 of 2 for regenerate SCIM bearer token. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Regenerate the SCIM bearer token for an identity provider configuration. The new token is returned once; existing SCIM clients stop working until configured with the new token. This call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Regenerate an identity provider SCIM token (execute)",+ "title": "Regenerate an identity provider SCIM token (execute)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "identity-provider-configs-scim-token-create-prepare": {+ "description": "Step 1 of 2 for regenerate SCIM bearer token. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Regenerate the SCIM bearer token for an identity provider configuration. The new token is returned once; existing SCIM clients stop working until configured with the new token. This call requires explicit user confirmation.",+ "category": "Core",+ "feature": "core",+ "summary": "Regenerate an identity provider SCIM token (prepare)",+ "title": "Regenerate an identity provider SCIM token (prepare)",+ "required_scopes": ["organization:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },"inbox-report-artefacts-create": {"description": "Append an artefact to a signal report so it reads as a living document. Everything is append-only. Log types accumulate — `code_reference` (a contiguous span of source lines, at most 20: file_path, start_line, end_line, contents, relevance_note; a single line is just start_line == end_line), `commit` (one commit that has already been pushed to a remote branch: repository, branch, commit_sha, message — usually recorded automatically when you push via git_signed_commit. Only create one yourself for a commit pushed to a remote by other means; never record a commit that is not on a remote branch — an unpushed or local-only commit is always a mistake), `note` (free-form: note). Follow-up goals live in report checks, not artefacts. Status types are latest-wins — appending a new version supersedes the previous one as the report's canonical status: `priority_judgment` (explanation, priority P0–P4), `actionability_judgment` (explanation, actionability, already_addressed), `safety_judgment` (choice), `repo_selection` (repository, reason), `suggested_reviewers` (a list of {github_login}). Status judgments are consequential, not advisory: the canonical priority/actionability steer what humans and agents pick up next, and PostHog's automation uses them when deciding which reports to act on. `content` is a JSON object matching the chosen type and is validated against its schema. Writes are attributed to your task automatically. Pass claim_id to associate the work with your current claim; stale or foreign claims are rejected. Returns the created artefact including its id.","category": "Signals",diff --git a/services/mcp/src/generated/core/api.ts b/services/mcp/src/generated/core/api.tsindex 1ed8eb8ba231..6fe7ccccf3db 100644--- a/services/mcp/src/generated/core/api.ts+++ b/services/mcp/src/generated/core/api.ts@@ -3,11 +3,292 @@* MCP service uses these Zod schemas for generated tool handlers.* To regenerate: hogli build:openapi*- * PostHog API - MCP 9 enabled ops+ * PostHog API - MCP 16 enabled ops* OpenAPI spec version: 1.0.0*/import * as zod from 'zod'+export const DomainsListParams = () => zod.object({+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})++export const DomainsListQueryParams = () => zod.object({+ limit: zod.number().optional().describe('Number of results to return per page.'),+ offset: zod.number().optional().describe('The initial index from which to return the results.'),+})++export const IdentityProviderConfigsListParams = () => zod.object({+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})++export const IdentityProviderConfigsListQueryParams = () => zod.object({+ limit: zod.number().optional().describe('Number of results to return per page.'),+ offset: zod.number().optional().describe('The initial index from which to return the results.'),+})++export const IdentityProviderConfigsCreateParams = () => zod.object({+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})++export const identityProviderConfigsCreateBodyNameMax = 255++export const identityProviderConfigsCreateBodyOidcIssuerUrlOneMax = 512++export const identityProviderConfigsCreateBodyOidcIssuerUrlTwoMax = 0++export const identityProviderConfigsCreateBodyOidcClientIdMax = 512++export const identityProviderConfigsCreateBodyOidcClientSecretMax = 4096++export const identityProviderConfigsCreateBodySamlEntityIdMax = 512++export const identityProviderConfigsCreateBodySamlAcsUrlMax = 512++export const identityProviderConfigsCreateBodyIdJagIssuerUrlMax = 512++export const identityProviderConfigsCreateBodyIdJagJwksUrlMax = 512++export const identityProviderConfigsCreateBodyIdJagAllowedClientsItemMax = 256++export const IdentityProviderConfigsCreateBody = () => zod.object({+ name: zod+ .string()+ .max(identityProviderConfigsCreateBodyNameMax)+ .optional()+ .describe("Display name for this IdP configuration (e.g. 'Okta production')."),+ domain_scope: zod+ .union([+ zod.enum(['all', 'selected']).describe('\* `all` - All\n\* `selected` - Selected'),+ zod.enum(['']),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Domains this configuration applies to. An unset value behaves like selected domains.\n\n\* `all` - All\n\* `selected` - Selected'+ ),+ config_scope: zod+ .union([+ zod+ .enum(['saml', 'oidc', 'scim', 'xaa'])+ .describe('\* `saml` - Saml\n\* `oidc` - Oidc\n\* `scim` - Scim\n\* `xaa` - Xaa'),+ zod.enum(['']),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Feature configured by this identity provider configuration.\n\n\* `saml` - Saml\n\* `oidc` - Oidc\n\* `scim` - Scim\n\* `xaa` - Xaa'+ ),+ organization_domain_ids: zod+ .array(zod.string())+ .optional()+ .describe('Organization domain IDs that this identity provider configuration applies to.'),+ oidc_issuer_url: zod+ .union([+ zod.url().max(identityProviderConfigsCreateBodyOidcIssuerUrlOneMax),+ zod.string().max(identityProviderConfigsCreateBodyOidcIssuerUrlTwoMax),+ ])+ .optional()+ .describe('HTTPS issuer URL. Must exactly match the issuer in the OIDC discovery document.'),+ oidc_client_id: zod+ .string()+ .max(identityProviderConfigsCreateBodyOidcClientIdMax)+ .optional()+ .describe("Client ID of the organization's OIDC application."),+ oidc_client_secret: zod+ .string()+ .max(identityProviderConfigsCreateBodyOidcClientSecretMax)+ .optional()+ .describe(+ 'OIDC client secret. Omit to keep the saved secret. Set to an empty string to remove it. Never returned in responses.'+ ),+ saml_entity_id: zod+ .string()+ .max(identityProviderConfigsCreateBodySamlEntityIdMax)+ .nullish()+ .describe('SAML IdP entity ID (issuer).'),+ saml_acs_url: zod+ .string()+ .max(identityProviderConfigsCreateBodySamlAcsUrlMax)+ .nullish()+ .describe('SAML single sign-on (ACS) URL the IdP redirects to.'),+ saml_x509_cert: zod.string().nullish().describe('SAML IdP X.509 signing certificate (PEM).'),+ scim_enabled: zod+ .boolean()+ .optional()+ .describe(+ 'Whether SCIM provisioning is enabled. Setting this true generates a bearer token (returned once); setting it false clears the token.'+ ),+ id_jag_issuer_url: zod+ .string()+ .max(identityProviderConfigsCreateBodyIdJagIssuerUrlMax)+ .nullish()+ .describe('Trusted IdP issuer URL for ID-JAG (XAA). Required to enable ID-JAG.'),+ id_jag_jwks_url: zod+ .string()+ .max(identityProviderConfigsCreateBodyIdJagJwksUrlMax)+ .nullish()+ .describe('Override JWKS URL. Defaults to OIDC discovery on the issuer URL.'),+ id_jag_allowed_clients: zod+ .array(zod.string().max(identityProviderConfigsCreateBodyIdJagAllowedClientsItemMax))+ .optional()+ .describe('Allowed ID-JAG client IDs. Empty list allows any client_id.'),+})++export const IdentityProviderConfigsRetrieveParams = () => zod.object({+ id: zod.string().describe('A UUID string identifying this identity provider config.'),+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})++export const IdentityProviderConfigsPartialUpdateParams = () => zod.object({+ id: zod.string().describe('A UUID string identifying this identity provider config.'),+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})++export const identityProviderConfigsPartialUpdateBodyNameMax = 255++export const identityProviderConfigsPartialUpdateBodyOidcIssuerUrlOneMax = 512++export const identityProviderConfigsPartialUpdateBodyOidcIssuerUrlTwoMax = 0++export const identityProviderConfigsPartialUpdateBodyOidcClientIdMax = 512++export const identityProviderConfigsPartialUpdateBodyOidcClientSecretMax = 4096++export const identityProviderConfigsPartialUpdateBodySamlEntityIdMax = 512++export const identityProviderConfigsPartialUpdateBodySamlAcsUrlMax = 512++export const identityProviderConfigsPartialUpdateBodyIdJagIssuerUrlMax = 512++export const identityProviderConfigsPartialUpdateBodyIdJagJwksUrlMax = 512++export const identityProviderConfigsPartialUpdateBodyIdJagAllowedClientsItemMax = 256++export const IdentityProviderConfigsPartialUpdateBody = () => zod.object({+ name: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodyNameMax)+ .optional()+ .describe("Display name for this IdP configuration (e.g. 'Okta production')."),+ domain_scope: zod+ .union([+ zod.enum(['all', 'selected']).describe('\* `all` - All\n\* `selected` - Selected'),+ zod.enum(['']),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Domains this configuration applies to. An unset value behaves like selected domains.\n\n\* `all` - All\n\* `selected` - Selected'+ ),+ config_scope: zod+ .union([+ zod+ .enum(['saml', 'oidc', 'scim', 'xaa'])+ .describe('\* `saml` - Saml\n\* `oidc` - Oidc\n\* `scim` - Scim\n\* `xaa` - Xaa'),+ zod.enum(['']),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Feature configured by this identity provider configuration.\n\n\* `saml` - Saml\n\* `oidc` - Oidc\n\* `scim` - Scim\n\* `xaa` - Xaa'+ ),+ organization_domain_ids: zod+ .array(zod.string())+ .optional()+ .describe('Organization domain IDs that this identity provider configuration applies to.'),+ oidc_issuer_url: zod+ .union([+ zod.url().max(identityProviderConfigsPartialUpdateBodyOidcIssuerUrlOneMax),+ zod.string().max(identityProviderConfigsPartialUpdateBodyOidcIssuerUrlTwoMax),+ ])+ .optional()+ .describe('HTTPS issuer URL. Must exactly match the issuer in the OIDC discovery document.'),+ oidc_client_id: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodyOidcClientIdMax)+ .optional()+ .describe("Client ID of the organization's OIDC application."),+ oidc_client_secret: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodyOidcClientSecretMax)+ .optional()+ .describe(+ 'OIDC client secret. Omit to keep the saved secret. Set to an empty string to remove it. Never returned in responses.'+ ),+ saml_entity_id: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodySamlEntityIdMax)+ .nullish()+ .describe('SAML IdP entity ID (issuer).'),+ saml_acs_url: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodySamlAcsUrlMax)+ .nullish()+ .describe('SAML single sign-on (ACS) URL the IdP redirects to.'),+ saml_x509_cert: zod.string().nullish().describe('SAML IdP X.509 signing certificate (PEM).'),+ scim_enabled: zod+ .boolean()+ .optional()+ .describe(+ 'Whether SCIM provisioning is enabled. Setting this true generates a bearer token (returned once); setting it false clears the token.'+ ),+ id_jag_issuer_url: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodyIdJagIssuerUrlMax)+ .nullish()+ .describe('Trusted IdP issuer URL for ID-JAG (XAA). Required to enable ID-JAG.'),+ id_jag_jwks_url: zod+ .string()+ .max(identityProviderConfigsPartialUpdateBodyIdJagJwksUrlMax)+ .nullish()+ .describe('Override JWKS URL. Defaults to OIDC discovery on the issuer URL.'),+ id_jag_allowed_clients: zod+ .array(zod.string().max(identityProviderConfigsPartialUpdateBodyIdJagAllowedClientsItemMax))+ .optional()+ .describe('Allowed ID-JAG client IDs. Empty list allows any client_id.'),+})++export const IdentityProviderConfigsDestroyParams = () => zod.object({+ id: zod.string().describe('A UUID string identifying this identity provider config.'),+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})++/**+ * Regenerate the SCIM bearer token for this IdP config.+ */+export const IdentityProviderConfigsScimTokenCreateParams = () => zod.object({+ id: zod.string().describe('A UUID string identifying this identity provider config.'),+ organization_id: zod+ .string()+ .describe(+ "ID of the organization you're trying to access. To find the ID of the organization, make a call to \/api\/organizations\/."+ ),+})+/*** Projects for the current organization.*/diff --git a/services/mcp/src/tools/generated/core.ts b/services/mcp/src/tools/generated/core.tsindex f8e3b6b40e19..f8b3d1b1b1f4 100644--- a/services/mcp/src/tools/generated/core.ts+++ b/services/mcp/src/tools/generated/core.ts@@ -4,16 +4,474 @@ import { z } from 'zod'import type { Schemas } from '@/api/generated'import * as orvalSchemas from '@/generated/core/api'import { castStringToInt } from '@/tools/cast-helpers'+import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'+import {+ executeConfirmedAction,+ prepareConfirmedAction,+ type PrepareConfirmedActionResult,+} from '@/tools/confirmed-action-runtime'import {withPostHogUrl,- withInformationalResponse,pickResponseFields,+ withInformationalResponse,omitResponseFields,type WithPostHogUrl,type WithInformationalResponse,} from '@/tools/tool-utils'import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'+const DomainsListSchema = () => {+ const DomainsListQueryParams = orvalSchemas.DomainsListQueryParams()+ return DomainsListQueryParams+}++const domainsList = (): ToolBase<+ ReturnType<typeof DomainsListSchema>,+ WithPostHogUrl<Schemas.PaginatedOrganizationDomainList>+> => ({+ name: 'domains-list',+ schema: DomainsListSchema(),+ handler: async (context: Context, params: z.infer<ReturnType<typeof DomainsListSchema>>) => {+ const orgId = await context.stateManager.getOrgID()+ const result = await context.api.request<Schemas.PaginatedOrganizationDomainList>({+ method: 'GET',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/domains/`,+ query: {+ limit: params.limit,+ offset: params.offset,+ },+ })+ const filtered = {+ ...result,+ results: (result.results ?? []).map((item: any) =>+ pickResponseFields(item, ['id', 'domain', 'is_verified', 'verified_at'])+ ),+ } as typeof result+ return await withPostHogUrl(context, filtered, '/')+ },+})++const IdentityProviderConfigsCreateSchema = () => {+ const IdentityProviderConfigsCreateBody = orvalSchemas.IdentityProviderConfigsCreateBody()+ return IdentityProviderConfigsCreateBody+}++const IdentityProviderConfigsCreateSchemaExecute = z.strictObject({+ confirmation_hash: z+ .string()+ .describe('The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.'),+ confirmation: z.string().describe('The literal string "confirm", typed by the user in chat. Required to proceed.'),+})++const identityProviderConfigsCreatePrepare = (): ToolBase<+ ReturnType<typeof IdentityProviderConfigsCreateSchema>,+ PrepareConfirmedActionResult+> => ({+ name: 'identity-provider-configs-create-prepare',+ schema: IdentityProviderConfigsCreateSchema(),+ handler: async (context: Context, params: z.infer<ReturnType<typeof IdentityProviderConfigsCreateSchema>>) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ return await prepareConfirmedAction(context, {+ args: params,+ purpose: 'identity-provider-configs-create',+ actionLabel: 'create identity provider configuration',+ messageTemplate:+ "Create an identity provider configuration using the supplied protocol, settings, and domain coverage. Review those values and reply 'confirm' to proceed.\n",+ codec: __runtime.codec,+ stash: __runtime.stash,+ boundScope: { orgId: String(__scopeOrgId) },+ })+ },+})++const identityProviderConfigsCreateExecute = (): ToolBase<+ typeof IdentityProviderConfigsCreateSchemaExecute,+ Schemas.IdentityProviderConfig+> => ({+ name: 'identity-provider-configs-create-execute',+ schema: IdentityProviderConfigsCreateSchemaExecute,+ handler: async (+ context: Context,+ confirmationParams: z.infer<typeof IdentityProviderConfigsCreateSchemaExecute>+ ) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ const __guard = await executeConfirmedAction<z.infer<ReturnType<typeof IdentityProviderConfigsCreateSchema>>>(+ context,+ {+ incomingArgs: confirmationParams,+ purpose: 'identity-provider-configs-create',+ codec: __runtime.codec,+ ledger: __runtime.ledger,+ stash: __runtime.stash,+ expectedScope: { orgId: String(__scopeOrgId) },+ }+ )+ if (!__guard.ok) {+ return __guard.result as never+ }+ const params = __guard.verifiedArgs+ const orgId = __scopeOrgId+ const body: Record<string, unknown> = {}+ if (params.name !== undefined) {+ body['name'] = params.name+ }+ if (params.domain_scope !== undefined) {+ body['domain_scope'] = params.domain_scope+ }+ if (params.config_scope !== undefined) {+ body['config_scope'] = params.config_scope+ }+ if (params.organization_domain_ids !== undefined) {+ body['organization_domain_ids'] = params.organization_domain_ids+ }+ if (params.oidc_issuer_url !== undefined) {+ body['oidc_issuer_url'] = params.oidc_issuer_url+ }+ if (params.oidc_client_id !== undefined) {+ body['oidc_client_id'] = params.oidc_client_id+ }+ if (params.oidc_client_secret !== undefined) {+ body['oidc_client_secret'] = params.oidc_client_secret+ }+ if (params.saml_entity_id !== undefined) {+ body['saml_entity_id'] = params.saml_entity_id+ }+ if (params.saml_acs_url !== undefined) {+ body['saml_acs_url'] = params.saml_acs_url+ }+ if (params.saml_x509_cert !== undefined) {+ body['saml_x509_cert'] = params.saml_x509_cert+ }+ if (params.scim_enabled !== undefined) {+ body['scim_enabled'] = params.scim_enabled+ }+ if (params.id_jag_issuer_url !== undefined) {+ body['id_jag_issuer_url'] = params.id_jag_issuer_url+ }+ if (params.id_jag_jwks_url !== undefined) {+ body['id_jag_jwks_url'] = params.id_jag_jwks_url+ }+ if (params.id_jag_allowed_clients !== undefined) {+ body['id_jag_allowed_clients'] = params.id_jag_allowed_clients+ }+ const result = await context.api.request<Schemas.IdentityProviderConfig>({+ method: 'POST',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/identity_provider_configs/`,+ body,+ })+ return result+ },+})++const IdentityProviderConfigsDestroySchema = () => {+ const IdentityProviderConfigsDestroyParams = orvalSchemas.IdentityProviderConfigsDestroyParams()+ return IdentityProviderConfigsDestroyParams.omit({ organization_id: true })+}++const IdentityProviderConfigsDestroySchemaExecute = z.strictObject({+ confirmation_hash: z+ .string()+ .describe('The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.'),+ confirmation: z.string().describe('The literal string "confirm", typed by the user in chat. Required to proceed.'),+})++const identityProviderConfigsDestroyPrepare = (): ToolBase<+ ReturnType<typeof IdentityProviderConfigsDestroySchema>,+ PrepareConfirmedActionResult+> => ({+ name: 'identity-provider-configs-destroy-prepare',+ schema: IdentityProviderConfigsDestroySchema(),+ handler: async (context: Context, params: z.infer<ReturnType<typeof IdentityProviderConfigsDestroySchema>>) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ return await prepareConfirmedAction(context, {+ args: params,+ purpose: 'identity-provider-configs-destroy',+ actionLabel: 'delete identity provider configuration',+ messageTemplate:+ "Permanently delete identity provider configuration {id}, including its linked domains and authentication settings. Reply 'confirm' to proceed.\n",+ codec: __runtime.codec,+ stash: __runtime.stash,+ boundScope: { orgId: String(__scopeOrgId) },+ })+ },+})++const identityProviderConfigsDestroyExecute = (): ToolBase<+ typeof IdentityProviderConfigsDestroySchemaExecute,+ unknown+> => ({+ name: 'identity-provider-configs-destroy-execute',+ schema: IdentityProviderConfigsDestroySchemaExecute,+ handler: async (+ context: Context,+ confirmationParams: z.infer<typeof IdentityProviderConfigsDestroySchemaExecute>+ ) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ const __guard = await executeConfirmedAction<z.infer<ReturnType<typeof IdentityProviderConfigsDestroySchema>>>(+ context,+ {+ incomingArgs: confirmationParams,+ purpose: 'identity-provider-configs-destroy',+ codec: __runtime.codec,+ ledger: __runtime.ledger,+ stash: __runtime.stash,+ expectedScope: { orgId: String(__scopeOrgId) },+ }+ )+ if (!__guard.ok) {+ return __guard.result as never+ }+ const params = __guard.verifiedArgs+ const orgId = __scopeOrgId+ const result = await context.api.request<unknown>({+ method: 'DELETE',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/identity_provider_configs/${encodeURIComponent(String(params.id))}/`,+ })+ return result+ },+})++const IdentityProviderConfigsListSchema = () => {+ const IdentityProviderConfigsListQueryParams = orvalSchemas.IdentityProviderConfigsListQueryParams()+ return IdentityProviderConfigsListQueryParams+}++const identityProviderConfigsList = (): ToolBase<+ ReturnType<typeof IdentityProviderConfigsListSchema>,+ WithPostHogUrl<Schemas.PaginatedIdentityProviderConfigList>+> => ({+ name: 'identity-provider-configs-list',+ schema: IdentityProviderConfigsListSchema(),+ handler: async (context: Context, params: z.infer<ReturnType<typeof IdentityProviderConfigsListSchema>>) => {+ const orgId = await context.stateManager.getOrgID()+ const result = await context.api.request<Schemas.PaginatedIdentityProviderConfigList>({+ method: 'GET',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/identity_provider_configs/`,+ query: {+ limit: params.limit,+ offset: params.offset,+ },+ })+ return await withPostHogUrl(context, result, '/')+ },+})++const IdentityProviderConfigsPartialUpdateSchema = () => {+ const IdentityProviderConfigsPartialUpdateBody = orvalSchemas.IdentityProviderConfigsPartialUpdateBody()+ const IdentityProviderConfigsPartialUpdateParams = orvalSchemas.IdentityProviderConfigsPartialUpdateParams()+ return IdentityProviderConfigsPartialUpdateParams.omit({ organization_id: true }).extend(+ IdentityProviderConfigsPartialUpdateBody.shape+ )+}++const IdentityProviderConfigsPartialUpdateSchemaExecute = z.strictObject({+ confirmation_hash: z+ .string()+ .describe('The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.'),+ confirmation: z.string().describe('The literal string "confirm", typed by the user in chat. Required to proceed.'),+})++const identityProviderConfigsPartialUpdatePrepare = (): ToolBase<+ ReturnType<typeof IdentityProviderConfigsPartialUpdateSchema>,+ PrepareConfirmedActionResult+> => ({+ name: 'identity-provider-configs-partial-update-prepare',+ schema: IdentityProviderConfigsPartialUpdateSchema(),+ handler: async (+ context: Context,+ params: z.infer<ReturnType<typeof IdentityProviderConfigsPartialUpdateSchema>>+ ) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ return await prepareConfirmedAction(context, {+ args: params,+ purpose: 'identity-provider-configs-partial-update',+ actionLabel: 'update identity provider configuration',+ messageTemplate:+ "Update identity provider configuration {id}. Review the requested settings and domain coverage, then reply 'confirm' to proceed.\n",+ codec: __runtime.codec,+ stash: __runtime.stash,+ boundScope: { orgId: String(__scopeOrgId) },+ })+ },+})++const identityProviderConfigsPartialUpdateExecute = (): ToolBase<+ typeof IdentityProviderConfigsPartialUpdateSchemaExecute,+ Schemas.IdentityProviderConfig+> => ({+ name: 'identity-provider-configs-partial-update-execute',+ schema: IdentityProviderConfigsPartialUpdateSchemaExecute,+ handler: async (+ context: Context,+ confirmationParams: z.infer<typeof IdentityProviderConfigsPartialUpdateSchemaExecute>+ ) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ const __guard = await executeConfirmedAction<+ z.infer<ReturnType<typeof IdentityProviderConfigsPartialUpdateSchema>>+ >(context, {+ incomingArgs: confirmationParams,+ purpose: 'identity-provider-configs-partial-update',+ codec: __runtime.codec,+ ledger: __runtime.ledger,+ stash: __runtime.stash,+ expectedScope: { orgId: String(__scopeOrgId) },+ })+ if (!__guard.ok) {+ return __guard.result as never+ }+ const params = __guard.verifiedArgs+ const orgId = __scopeOrgId+ const body: Record<string, unknown> = {}+ if (params.name !== undefined) {+ body['name'] = params.name+ }+ if (params.domain_scope !== undefined) {+ body['domain_scope'] = params.domain_scope+ }+ if (params.config_scope !== undefined) {+ body['config_scope'] = params.config_scope+ }+ if (params.organization_domain_ids !== undefined) {+ body['organization_domain_ids'] = params.organization_domain_ids+ }+ if (params.oidc_issuer_url !== undefined) {+ body['oidc_issuer_url'] = params.oidc_issuer_url+ }+ if (params.oidc_client_id !== undefined) {+ body['oidc_client_id'] = params.oidc_client_id+ }+ if (params.oidc_client_secret !== undefined) {+ body['oidc_client_secret'] = params.oidc_client_secret+ }+ if (params.saml_entity_id !== undefined) {+ body['saml_entity_id'] = params.saml_entity_id+ }+ if (params.saml_acs_url !== undefined) {+ body['saml_acs_url'] = params.saml_acs_url+ }+ if (params.saml_x509_cert !== undefined) {+ body['saml_x509_cert'] = params.saml_x509_cert+ }+ if (params.scim_enabled !== undefined) {+ body['scim_enabled'] = params.scim_enabled+ }+ if (params.id_jag_issuer_url !== undefined) {+ body['id_jag_issuer_url'] = params.id_jag_issuer_url+ }+ if (params.id_jag_jwks_url !== undefined) {+ body['id_jag_jwks_url'] = params.id_jag_jwks_url+ }+ if (params.id_jag_allowed_clients !== undefined) {+ body['id_jag_allowed_clients'] = params.id_jag_allowed_clients+ }+ const result = await context.api.request<Schemas.IdentityProviderConfig>({+ method: 'PATCH',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/identity_provider_configs/${encodeURIComponent(String(params.id))}/`,+ body,+ })+ return result+ },+})++const IdentityProviderConfigsRetrieveSchema = () => {+ const IdentityProviderConfigsRetrieveParams = orvalSchemas.IdentityProviderConfigsRetrieveParams()+ return IdentityProviderConfigsRetrieveParams.omit({ organization_id: true })+}++const identityProviderConfigsRetrieve = (): ToolBase<+ ReturnType<typeof IdentityProviderConfigsRetrieveSchema>,+ Schemas.IdentityProviderConfig+> => ({+ name: 'identity-provider-configs-retrieve',+ schema: IdentityProviderConfigsRetrieveSchema(),+ handler: async (context: Context, params: z.infer<ReturnType<typeof IdentityProviderConfigsRetrieveSchema>>) => {+ const orgId = await context.stateManager.getOrgID()+ const result = await context.api.request<Schemas.IdentityProviderConfig>({+ method: 'GET',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/identity_provider_configs/${encodeURIComponent(String(params.id))}/`,+ })+ return result+ },+})++const IdentityProviderConfigsScimTokenCreateSchema = () => {+ const IdentityProviderConfigsScimTokenCreateParams = orvalSchemas.IdentityProviderConfigsScimTokenCreateParams()+ return IdentityProviderConfigsScimTokenCreateParams.omit({ organization_id: true })+}++const IdentityProviderConfigsScimTokenCreateSchemaExecute = z.strictObject({+ confirmation_hash: z+ .string()+ .describe('The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.'),+ confirmation: z.string().describe('The literal string "confirm", typed by the user in chat. Required to proceed.'),+})++const identityProviderConfigsScimTokenCreatePrepare = (): ToolBase<+ ReturnType<typeof IdentityProviderConfigsScimTokenCreateSchema>,+ PrepareConfirmedActionResult+> => ({+ name: 'identity-provider-configs-scim-token-create-prepare',+ schema: IdentityProviderConfigsScimTokenCreateSchema(),+ handler: async (+ context: Context,+ params: z.infer<ReturnType<typeof IdentityProviderConfigsScimTokenCreateSchema>>+ ) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ return await prepareConfirmedAction(context, {+ args: params,+ purpose: 'identity-provider-configs-scim-token-create',+ actionLabel: 'regenerate SCIM bearer token',+ messageTemplate:+ "Regenerate the SCIM bearer token for identity provider configuration {id}. Existing SCIM clients will stop working until updated. Reply 'confirm' to proceed.\n",+ codec: __runtime.codec,+ stash: __runtime.stash,+ boundScope: { orgId: String(__scopeOrgId) },+ })+ },+})++const identityProviderConfigsScimTokenCreateExecute = (): ToolBase<+ typeof IdentityProviderConfigsScimTokenCreateSchemaExecute,+ Schemas.SCIMTokenResponse+> => ({+ name: 'identity-provider-configs-scim-token-create-execute',+ schema: IdentityProviderConfigsScimTokenCreateSchemaExecute,+ handler: async (+ context: Context,+ confirmationParams: z.infer<typeof IdentityProviderConfigsScimTokenCreateSchemaExecute>+ ) => {+ const __runtime = getConfirmedActionRuntime()+ const __scopeOrgId = await context.stateManager.getOrgID()+ const __guard = await executeConfirmedAction<+ z.infer<ReturnType<typeof IdentityProviderConfigsScimTokenCreateSchema>>+ >(context, {+ incomingArgs: confirmationParams,+ purpose: 'identity-provider-configs-scim-token-create',+ codec: __runtime.codec,+ ledger: __runtime.ledger,+ stash: __runtime.stash,+ expectedScope: { orgId: String(__scopeOrgId) },+ })+ if (!__guard.ok) {+ return __guard.result as never+ }+ const params = __guard.verifiedArgs+ const orgId = __scopeOrgId+ const result = await context.api.request<Schemas.SCIMTokenResponse>({+ method: 'POST',+ path: `/api/organizations/${encodeURIComponent(String(orgId))}/identity_provider_configs/${encodeURIComponent(String(params.id))}/scim/token/`,+ })+ return result+ },+})+const MediaImageUploadCompleteSchema = () => {const UploadedMediaCompleteUploadCreateParams = orvalSchemas.UploadedMediaCompleteUploadCreateParams()return UploadedMediaCompleteUploadCreateParams.omit({ project_id: true })@@ -654,6 +1112,17 @@ const userSettingsUpdate = (): ToolBase<ReturnType<typeof UserSettingsUpdateSche})export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {+ 'domains-list': domainsList,+ 'identity-provider-configs-create-prepare': identityProviderConfigsCreatePrepare,+ 'identity-provider-configs-create-execute': identityProviderConfigsCreateExecute,+ 'identity-provider-configs-destroy-prepare': identityProviderConfigsDestroyPrepare,+ 'identity-provider-configs-destroy-execute': identityProviderConfigsDestroyExecute,+ 'identity-provider-configs-list': identityProviderConfigsList,+ 'identity-provider-configs-partial-update-prepare': identityProviderConfigsPartialUpdatePrepare,+ 'identity-provider-configs-partial-update-execute': identityProviderConfigsPartialUpdateExecute,+ 'identity-provider-configs-retrieve': identityProviderConfigsRetrieve,+ 'identity-provider-configs-scim-token-create-prepare': identityProviderConfigsScimTokenCreatePrepare,+ 'identity-provider-configs-scim-token-create-execute': identityProviderConfigsScimTokenCreateExecute,'media-image-upload-complete': mediaImageUploadComplete,'media-image-upload-start': mediaImageUploadStart,'media-images-list': mediaImagesList,diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/domains-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/domains-list.jsonnew file mode 100644index 000000000000..8331b796ac73--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/domains-list.json@@ -0,0 +1,14 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "limit": {+ "description": "Number of results to return per page.",+ "type": "number"+ },+ "offset": {+ "description": "The initial index from which to return the results.",+ "type": "number"+ }+ },+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-create-execute.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-create-execute.jsonnew file mode 100644index 000000000000..f9e863b2ae53--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-create-execute.json@@ -0,0 +1,16 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "additionalProperties": false,+ "properties": {+ "confirmation": {+ "description": "The literal string \"confirm\", typed by the user in chat. Required to proceed.",+ "type": "string"+ },+ "confirmation_hash": {+ "description": "The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.",+ "type": "string"+ }+ },+ "required": ["confirmation_hash", "confirmation"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-create-prepare.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-create-prepare.jsonnew file mode 100644index 000000000000..f6c59ba64336--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-create-prepare.json@@ -0,0 +1,147 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "config_scope": {+ "anyOf": [+ {+ "description": "* `saml` - Saml\n* `oidc` - Oidc\n* `scim` - Scim\n* `xaa` - Xaa",+ "enum": ["saml", "oidc", "scim", "xaa"],+ "type": "string"+ },+ {+ "enum": [""],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Feature configured by this identity provider configuration.\n\n* `saml` - Saml\n* `oidc` - Oidc\n* `scim` - Scim\n* `xaa` - Xaa"+ },+ "domain_scope": {+ "anyOf": [+ {+ "description": "* `all` - All\n* `selected` - Selected",+ "enum": ["all", "selected"],+ "type": "string"+ },+ {+ "enum": [""],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Domains this configuration applies to. An unset value behaves like selected domains.\n\n* `all` - All\n* `selected` - Selected"+ },+ "id_jag_allowed_clients": {+ "description": "Allowed ID-JAG client IDs. Empty list allows any client_id.",+ "items": {+ "maxLength": 256,+ "type": "string"+ },+ "type": "array"+ },+ "id_jag_issuer_url": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Trusted IdP issuer URL for ID-JAG (XAA). Required to enable ID-JAG."+ },+ "id_jag_jwks_url": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override JWKS URL. Defaults to OIDC discovery on the issuer URL."+ },+ "name": {+ "description": "Display name for this IdP configuration (e.g. 'Okta production').",+ "maxLength": 255,+ "type": "string"+ },+ "oidc_client_id": {+ "description": "Client ID of the organization's OIDC application.",+ "maxLength": 512,+ "type": "string"+ },+ "oidc_client_secret": {+ "description": "OIDC client secret. Omit to keep the saved secret. Set to an empty string to remove it. Never returned in responses.",+ "maxLength": 4096,+ "type": "string"+ },+ "oidc_issuer_url": {+ "anyOf": [+ {+ "format": "uri",+ "maxLength": 512,+ "type": "string"+ },+ {+ "maxLength": 0,+ "type": "string"+ }+ ],+ "description": "HTTPS issuer URL. Must exactly match the issuer in the OIDC discovery document."+ },+ "organization_domain_ids": {+ "description": "Organization domain IDs that this identity provider configuration applies to.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "saml_acs_url": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "SAML single sign-on (ACS) URL the IdP redirects to."+ },+ "saml_entity_id": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "SAML IdP entity ID (issuer)."+ },+ "saml_x509_cert": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "SAML IdP X.509 signing certificate (PEM)."+ },+ "scim_enabled": {+ "description": "Whether SCIM provisioning is enabled. Setting this true generates a bearer token (returned once); setting it false clears the token.",+ "type": "boolean"+ }+ },+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-destroy-execute.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-destroy-execute.jsonnew file mode 100644index 000000000000..f9e863b2ae53--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-destroy-execute.json@@ -0,0 +1,16 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "additionalProperties": false,+ "properties": {+ "confirmation": {+ "description": "The literal string \"confirm\", typed by the user in chat. Required to proceed.",+ "type": "string"+ },+ "confirmation_hash": {+ "description": "The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.",+ "type": "string"+ }+ },+ "required": ["confirmation_hash", "confirmation"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-destroy-prepare.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-destroy-prepare.jsonnew file mode 100644index 000000000000..a97fcce245e1--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-destroy-prepare.json@@ -0,0 +1,11 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this identity provider config.",+ "type": "string"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-list.jsonnew file mode 100644index 000000000000..8331b796ac73--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-list.json@@ -0,0 +1,14 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "limit": {+ "description": "Number of results to return per page.",+ "type": "number"+ },+ "offset": {+ "description": "The initial index from which to return the results.",+ "type": "number"+ }+ },+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-partial-update-execute.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-partial-update-execute.jsonnew file mode 100644index 000000000000..f9e863b2ae53--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-partial-update-execute.json@@ -0,0 +1,16 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "additionalProperties": false,+ "properties": {+ "confirmation": {+ "description": "The literal string \"confirm\", typed by the user in chat. Required to proceed.",+ "type": "string"+ },+ "confirmation_hash": {+ "description": "The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.",+ "type": "string"+ }+ },+ "required": ["confirmation_hash", "confirmation"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-partial-update-prepare.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-partial-update-prepare.jsonnew file mode 100644index 000000000000..0703a0e9d851--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-partial-update-prepare.json@@ -0,0 +1,152 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "config_scope": {+ "anyOf": [+ {+ "description": "* `saml` - Saml\n* `oidc` - Oidc\n* `scim` - Scim\n* `xaa` - Xaa",+ "enum": ["saml", "oidc", "scim", "xaa"],+ "type": "string"+ },+ {+ "enum": [""],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Feature configured by this identity provider configuration.\n\n* `saml` - Saml\n* `oidc` - Oidc\n* `scim` - Scim\n* `xaa` - Xaa"+ },+ "domain_scope": {+ "anyOf": [+ {+ "description": "* `all` - All\n* `selected` - Selected",+ "enum": ["all", "selected"],+ "type": "string"+ },+ {+ "enum": [""],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Domains this configuration applies to. An unset value behaves like selected domains.\n\n* `all` - All\n* `selected` - Selected"+ },+ "id": {+ "description": "A UUID string identifying this identity provider config.",+ "type": "string"+ },+ "id_jag_allowed_clients": {+ "description": "Allowed ID-JAG client IDs. Empty list allows any client_id.",+ "items": {+ "maxLength": 256,+ "type": "string"+ },+ "type": "array"+ },+ "id_jag_issuer_url": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Trusted IdP issuer URL for ID-JAG (XAA). Required to enable ID-JAG."+ },+ "id_jag_jwks_url": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override JWKS URL. Defaults to OIDC discovery on the issuer URL."+ },+ "name": {+ "description": "Display name for this IdP configuration (e.g. 'Okta production').",+ "maxLength": 255,+ "type": "string"+ },+ "oidc_client_id": {+ "description": "Client ID of the organization's OIDC application.",+ "maxLength": 512,+ "type": "string"+ },+ "oidc_client_secret": {+ "description": "OIDC client secret. Omit to keep the saved secret. Set to an empty string to remove it. Never returned in responses.",+ "maxLength": 4096,+ "type": "string"+ },+ "oidc_issuer_url": {+ "anyOf": [+ {+ "format": "uri",+ "maxLength": 512,+ "type": "string"+ },+ {+ "maxLength": 0,+ "type": "string"+ }+ ],+ "description": "HTTPS issuer URL. Must exactly match the issuer in the OIDC discovery document."+ },+ "organization_domain_ids": {+ "description": "Organization domain IDs that this identity provider configuration applies to.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "saml_acs_url": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "SAML single sign-on (ACS) URL the IdP redirects to."+ },+ "saml_entity_id": {+ "anyOf": [+ {+ "maxLength": 512,+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "SAML IdP entity ID (issuer)."+ },+ "saml_x509_cert": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "description": "SAML IdP X.509 signing certificate (PEM)."+ },+ "scim_enabled": {+ "description": "Whether SCIM provisioning is enabled. Setting this true generates a bearer token (returned once); setting it false clears the token.",+ "type": "boolean"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-retrieve.jsonnew file mode 100644index 000000000000..a97fcce245e1--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-retrieve.json@@ -0,0 +1,11 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this identity provider config.",+ "type": "string"+ }+ },+ "required": ["id"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-scim-token-create-execute.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-scim-token-create-execute.jsonnew file mode 100644index 000000000000..f9e863b2ae53--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-scim-token-create-execute.json@@ -0,0 +1,16 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "additionalProperties": false,+ "properties": {+ "confirmation": {+ "description": "The literal string \"confirm\", typed by the user in chat. Required to proceed.",+ "type": "string"+ },+ "confirmation_hash": {+ "description": "The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.",+ "type": "string"+ }+ },+ "required": ["confirmation_hash", "confirmation"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-scim-token-create-prepare.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-scim-token-create-prepare.jsonnew file mode 100644index 000000000000..a97fcce245e1--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/identity-provider-configs-scim-token-create-prepare.json@@ -0,0 +1,11 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "id": {+ "description": "A UUID string identifying this identity provider config.",+ "type": "string"+ }+ },+ "required": ["id"],+ "type": "object"+}