@confluentinc/mcp-confluent 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -34
- package/config.example.yaml +36 -7
- package/config.oauth.example.yaml +14 -1
- package/dist/build-config.d.ts +1 -0
- package/dist/build-config.d.ts.map +1 -1
- package/dist/build-config.js +1 -0
- package/dist/build-config.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +128 -94
- package/dist/cli.js.map +1 -1
- package/dist/config/env-config.d.ts +9 -3
- package/dist/config/env-config.d.ts.map +1 -1
- package/dist/config/env-config.js +15 -34
- package/dist/config/env-config.js.map +1 -1
- package/dist/config/models.d.ts +105 -13
- package/dist/config/models.d.ts.map +1 -1
- package/dist/config/models.js +49 -37
- package/dist/config/models.js.map +1 -1
- package/dist/confluent/base-client-manager.d.ts +3 -1
- package/dist/confluent/base-client-manager.d.ts.map +1 -1
- package/dist/confluent/base-client-manager.js +5 -1
- package/dist/confluent/base-client-manager.js.map +1 -1
- package/dist/confluent/client-manager.d.ts +15 -1
- package/dist/confluent/client-manager.d.ts.map +1 -1
- package/dist/confluent/direct-client-manager.d.ts +1 -1
- package/dist/confluent/direct-client-manager.d.ts.map +1 -1
- package/dist/confluent/middleware.d.ts +1 -1
- package/dist/confluent/middleware.d.ts.map +1 -1
- package/dist/confluent/node-deps.d.ts +8 -0
- package/dist/confluent/node-deps.d.ts.map +1 -1
- package/dist/confluent/node-deps.js +9 -2
- package/dist/confluent/node-deps.js.map +1 -1
- package/dist/confluent/oauth/auth0-config.d.ts +26 -4
- package/dist/confluent/oauth/auth0-config.d.ts.map +1 -1
- package/dist/confluent/oauth/auth0-config.js +59 -19
- package/dist/confluent/oauth/auth0-config.js.map +1 -1
- package/dist/confluent/oauth/pkce-login.d.ts.map +1 -1
- package/dist/confluent/oauth/pkce-login.js +180 -150
- package/dist/confluent/oauth/pkce-login.js.map +1 -1
- package/dist/confluent/oauth/types.d.ts +1 -2
- package/dist/confluent/oauth/types.d.ts.map +1 -1
- package/dist/confluent/oauth-client-manager.d.ts +6 -3
- package/dist/confluent/oauth-client-manager.d.ts.map +1 -1
- package/dist/confluent/oauth-client-manager.js +28 -6
- package/dist/confluent/oauth-client-manager.js.map +1 -1
- package/dist/confluent/oauth-resource-resolvers.d.ts +11 -0
- package/dist/confluent/oauth-resource-resolvers.d.ts.map +1 -1
- package/dist/confluent/oauth-resource-resolvers.js +24 -0
- package/dist/confluent/oauth-resource-resolvers.js.map +1 -1
- package/dist/confluent/schema-registry-helper.d.ts +131 -7
- package/dist/confluent/schema-registry-helper.d.ts.map +1 -1
- package/dist/confluent/schema-registry-helper.js +336 -40
- package/dist/confluent/schema-registry-helper.js.map +1 -1
- package/dist/confluent/schema.d.ts +2 -2
- package/dist/confluent/schema.d.ts.map +1 -1
- package/dist/confluent/sentry-redact.d.ts +5 -0
- package/dist/confluent/sentry-redact.d.ts.map +1 -0
- package/dist/confluent/sentry-redact.js +64 -0
- package/dist/confluent/sentry-redact.js.map +1 -0
- package/dist/confluent/sentry.d.ts +23 -0
- package/dist/confluent/sentry.d.ts.map +1 -0
- package/dist/confluent/sentry.js +68 -0
- package/dist/confluent/sentry.js.map +1 -0
- package/dist/confluent/tools/base-tools.d.ts +169 -24
- package/dist/confluent/tools/base-tools.d.ts.map +1 -1
- package/dist/confluent/tools/base-tools.js +225 -21
- package/dist/confluent/tools/base-tools.js.map +1 -1
- package/dist/confluent/tools/cluster-arg-resolvers.d.ts +22 -1
- package/dist/confluent/tools/cluster-arg-resolvers.d.ts.map +1 -1
- package/dist/confluent/tools/cluster-arg-resolvers.js +50 -4
- package/dist/confluent/tools/cluster-arg-resolvers.js.map +1 -1
- package/dist/confluent/tools/connection-predicates.d.ts +70 -7
- package/dist/confluent/tools/connection-predicates.d.ts.map +1 -1
- package/dist/confluent/tools/connection-predicates.js +69 -6
- package/dist/confluent/tools/connection-predicates.js.map +1 -1
- package/dist/confluent/tools/handlers/billing/list-billing-costs-handler.d.ts +9 -3
- package/dist/confluent/tools/handlers/billing/list-billing-costs-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/billing/list-billing-costs-handler.js +77 -62
- package/dist/confluent/tools/handlers/billing/list-billing-costs-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/catalog/add-tags-to-topic.d.ts +5 -5
- package/dist/confluent/tools/handlers/catalog/add-tags-to-topic.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/catalog/add-tags-to-topic.js +9 -5
- package/dist/confluent/tools/handlers/catalog/add-tags-to-topic.js.map +1 -1
- package/dist/confluent/tools/handlers/catalog/create-topic-tags.d.ts +5 -5
- package/dist/confluent/tools/handlers/catalog/create-topic-tags.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/catalog/create-topic-tags.js +9 -5
- package/dist/confluent/tools/handlers/catalog/create-topic-tags.js.map +1 -1
- package/dist/confluent/tools/handlers/catalog/delete-tag.d.ts +5 -5
- package/dist/confluent/tools/handlers/catalog/delete-tag.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/catalog/delete-tag.js +9 -5
- package/dist/confluent/tools/handlers/catalog/delete-tag.js.map +1 -1
- package/dist/confluent/tools/handlers/catalog/list-tags.d.ts +6 -6
- package/dist/confluent/tools/handlers/catalog/list-tags.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/catalog/list-tags.js +14 -6
- package/dist/confluent/tools/handlers/catalog/list-tags.js.map +1 -1
- package/dist/confluent/tools/handlers/catalog/remove-tag-from-entity.d.ts +5 -5
- package/dist/confluent/tools/handlers/catalog/remove-tag-from-entity.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/catalog/remove-tag-from-entity.js +9 -5
- package/dist/confluent/tools/handlers/catalog/remove-tag-from-entity.js.map +1 -1
- package/dist/confluent/tools/handlers/clusters/list-clusters-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/clusters/list-clusters-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/clusters/list-clusters-handler.js +1 -1
- package/dist/confluent/tools/handlers/clusters/list-clusters-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/connect-tool-handler.d.ts +8 -8
- package/dist/confluent/tools/handlers/connect/connect-tool-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/connect-tool-handler.js +9 -10
- package/dist/confluent/tools/handlers/connect/connect-tool-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/create-connector-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/create-connector-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/create-connector-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/create-connector-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/delete-connector-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/delete-connector-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/delete-connector-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/delete-connector-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-config-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-config-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-config-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/get-connector-config-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-error-recommendations-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-error-recommendations-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-error-recommendations-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/get-connector-error-recommendations-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-error-summary-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-error-summary-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-error-summary-handler.js +2 -3
- package/dist/confluent/tools/handlers/connect/get-connector-error-summary-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-logs-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-logs-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-logs-handler.js +171 -100
- package/dist/confluent/tools/handlers/connect/get-connector-logs-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-offsets-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-offsets-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-offsets-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/get-connector-offsets-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-status-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-status-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-status-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/get-connector-status-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-tasks-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/get-connector-tasks-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/get-connector-tasks-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/get-connector-tasks-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/list-connectors-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/list-connectors-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/list-connectors-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/list-connectors-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/pause-connector-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/pause-connector-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/pause-connector-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/pause-connector-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/restart-connector-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/restart-connector-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/restart-connector-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/restart-connector-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/resume-connector-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/resume-connector-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/resume-connector-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/resume-connector-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/connect/update-connector-config-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/connect/update-connector-config-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/connect/update-connector-config-handler.js +1 -2
- package/dist/confluent/tools/handlers/connect/update-connector-config-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/diagnostics/config-help-handler.d.ts +43 -0
- package/dist/confluent/tools/handlers/diagnostics/config-help-handler.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/config-help-handler.js +297 -0
- package/dist/confluent/tools/handlers/diagnostics/config-help-handler.js.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-configured-connection-handler.d.ts +32 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-configured-connection-handler.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-configured-connection-handler.js +116 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-configured-connection-handler.js.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-fields.d.ts +52 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-fields.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-fields.js +114 -0
- package/dist/confluent/tools/handlers/diagnostics/describe-fields.js.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.d.ts +22 -44
- package/dist/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.js +95 -81
- package/dist/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/diagnostics/list-configured-connections-handler.d.ts +28 -0
- package/dist/confluent/tools/handlers/diagnostics/list-configured-connections-handler.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/diagnostics/list-configured-connections-handler.js +93 -0
- package/dist/confluent/tools/handlers/diagnostics/list-configured-connections-handler.js.map +1 -0
- package/dist/confluent/tools/handlers/docs/get-product-doc-page-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/docs/get-product-doc-page-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/docs/get-product-doc-page-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/docs/search-product-docs-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/docs/search-product-docs-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/docs/search-product-docs-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/environments/list-environments-handler.d.ts +9 -3
- package/dist/confluent/tools/handlers/environments/list-environments-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/environments/list-environments-handler.js +68 -46
- package/dist/confluent/tools/handlers/environments/list-environments-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/environments/read-environment-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/environments/read-environment-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/environments/read-environment-handler.js +2 -2
- package/dist/confluent/tools/handlers/environments/read-environment-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/catalog-resolver.d.ts +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/catalog-resolver.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/catalog-resolver.js +12 -6
- package/dist/confluent/tools/handlers/flink/catalog/catalog-resolver.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/describe-table-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/catalog/describe-table-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/describe-table-handler.js +24 -21
- package/dist/confluent/tools/handlers/flink/catalog/describe-table-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/flink-catalog-tool-handler.d.ts +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/flink-catalog-tool-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/get-table-info-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/catalog/get-table-info-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/get-table-info-handler.js +24 -21
- package/dist/confluent/tools/handlers/flink/catalog/get-table-info-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/list-catalogs-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/catalog/list-catalogs-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/list-catalogs-handler.js +9 -7
- package/dist/confluent/tools/handlers/flink/catalog/list-catalogs-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/list-databases-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/catalog/list-databases-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/list-databases-handler.js +14 -12
- package/dist/confluent/tools/handlers/flink/catalog/list-databases-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/list-tables-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/catalog/list-tables-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/catalog/list-tables-handler.js +14 -12
- package/dist/confluent/tools/handlers/flink/catalog/list-tables-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/create-flink-statement-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/create-flink-statement-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/create-flink-statement-handler.js +27 -22
- package/dist/confluent/tools/handlers/flink/create-flink-statement-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/delete-flink-statement-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/delete-flink-statement-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/delete-flink-statement-handler.js +20 -12
- package/dist/confluent/tools/handlers/flink/delete-flink-statement-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/check-health-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/diagnostics/check-health-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/check-health-handler.js +20 -12
- package/dist/confluent/tools/handlers/flink/diagnostics/check-health-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/detect-issues-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/diagnostics/detect-issues-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/detect-issues-handler.js +203 -156
- package/dist/confluent/tools/handlers/flink/diagnostics/detect-issues-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/metrics-helper.d.ts +12 -8
- package/dist/confluent/tools/handlers/flink/diagnostics/metrics-helper.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/metrics-helper.js +346 -377
- package/dist/confluent/tools/handlers/flink/diagnostics/metrics-helper.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/query-profiler-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/diagnostics/query-profiler-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/diagnostics/query-profiler-handler.js +374 -317
- package/dist/confluent/tools/handlers/flink/diagnostics/query-profiler-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/flink-sql-helper.d.ts +4 -3
- package/dist/confluent/tools/handlers/flink/flink-sql-helper.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/flink-sql-helper.js +133 -57
- package/dist/confluent/tools/handlers/flink/flink-sql-helper.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/flink-tool-handler.d.ts +27 -6
- package/dist/confluent/tools/handlers/flink/flink-tool-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/flink-tool-handler.js +37 -7
- package/dist/confluent/tools/handlers/flink/flink-tool-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/get-flink-exceptions-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/get-flink-exceptions-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/get-flink-exceptions-handler.js +20 -12
- package/dist/confluent/tools/handlers/flink/get-flink-exceptions-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/flink/get-flink-statement-results-handler.d.ts +9 -0
- package/dist/confluent/tools/handlers/flink/get-flink-statement-results-handler.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/flink/{read-flink-statement-handler.js → get-flink-statement-results-handler.js} +30 -22
- package/dist/confluent/tools/handlers/flink/get-flink-statement-results-handler.js.map +1 -0
- package/dist/confluent/tools/handlers/flink/list-compute-pools-handler.d.ts +11 -0
- package/dist/confluent/tools/handlers/flink/list-compute-pools-handler.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/flink/list-compute-pools-handler.js +118 -0
- package/dist/confluent/tools/handlers/flink/list-compute-pools-handler.js.map +1 -0
- package/dist/confluent/tools/handlers/flink/list-flink-statements-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/flink/list-flink-statements-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/flink/list-flink-statements-handler.js +19 -17
- package/dist/confluent/tools/handlers/flink/list-flink-statements-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/alter-topic-config.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/alter-topic-config.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/alter-topic-config.js +1 -1
- package/dist/confluent/tools/handlers/kafka/alter-topic-config.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/consume-kafka-messages-handler.d.ts +21 -10
- package/dist/confluent/tools/handlers/kafka/consume-kafka-messages-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/consume-kafka-messages-handler.js +136 -73
- package/dist/confluent/tools/handlers/kafka/consume-kafka-messages-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/create-topics-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/create-topics-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/create-topics-handler.js +12 -3
- package/dist/confluent/tools/handlers/kafka/create-topics-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/delete-topics-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/delete-topics-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/delete-topics-handler.js +1 -1
- package/dist/confluent/tools/handlers/kafka/delete-topics-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/describe-consumer-group-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/describe-consumer-group-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/describe-consumer-group-handler.js +6 -41
- package/dist/confluent/tools/handlers/kafka/describe-consumer-group-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/get-consumer-group-lag-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/get-consumer-group-lag-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/get-consumer-group-lag-handler.js +6 -10
- package/dist/confluent/tools/handlers/kafka/get-consumer-group-lag-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/get-partition-offsets-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/get-partition-offsets-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/get-partition-offsets-handler.js +1 -1
- package/dist/confluent/tools/handlers/kafka/get-partition-offsets-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/get-topic-config.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/get-topic-config.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/get-topic-config.js +1 -1
- package/dist/confluent/tools/handlers/kafka/get-topic-config.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/list-consumer-groups-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/list-consumer-groups-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/list-consumer-groups-handler.js +1 -1
- package/dist/confluent/tools/handlers/kafka/list-consumer-groups-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/list-topics-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/kafka/list-topics-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/list-topics-handler.js +1 -1
- package/dist/confluent/tools/handlers/kafka/list-topics-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/kafka/partition-watermarks.d.ts +1 -1
- package/dist/confluent/tools/handlers/kafka/partition-watermarks.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/produce-kafka-message-handler.d.ts +12 -4
- package/dist/confluent/tools/handlers/kafka/produce-kafka-message-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/kafka/produce-kafka-message-handler.js +140 -34
- package/dist/confluent/tools/handlers/kafka/produce-kafka-message-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/metrics/list-metrics-handler.d.ts +5 -5
- package/dist/confluent/tools/handlers/metrics/list-metrics-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/metrics/list-metrics-handler.js +105 -60
- package/dist/confluent/tools/handlers/metrics/list-metrics-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/metrics/query-metrics-handler.d.ts +5 -5
- package/dist/confluent/tools/handlers/metrics/query-metrics-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/metrics/query-metrics-handler.js +75 -57
- package/dist/confluent/tools/handlers/metrics/query-metrics-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/metrics/telemetry-error.d.ts +9 -0
- package/dist/confluent/tools/handlers/metrics/telemetry-error.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/metrics/telemetry-error.js +38 -0
- package/dist/confluent/tools/handlers/metrics/telemetry-error.js.map +1 -0
- package/dist/confluent/tools/handlers/organizations/list-organizations-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/organizations/list-organizations-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/organizations/list-organizations-handler.js +2 -1
- package/dist/confluent/tools/handlers/organizations/list-organizations-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/schema/create-schema-handler.d.ts +11 -0
- package/dist/confluent/tools/handlers/schema/create-schema-handler.d.ts.map +1 -0
- package/dist/confluent/tools/handlers/schema/create-schema-handler.js +76 -0
- package/dist/confluent/tools/handlers/schema/create-schema-handler.js.map +1 -0
- package/dist/confluent/tools/handlers/schema/delete-schema-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/schema/delete-schema-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/schema/delete-schema-handler.js +1 -1
- package/dist/confluent/tools/handlers/schema/delete-schema-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/schema/list-schemas-handler.d.ts +4 -3
- package/dist/confluent/tools/handlers/schema/list-schemas-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/schema/list-schemas-handler.js +101 -72
- package/dist/confluent/tools/handlers/schema/list-schemas-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/search/search-topic-by-tag-handler.d.ts +5 -5
- package/dist/confluent/tools/handlers/search/search-topic-by-tag-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/search/search-topic-by-tag-handler.js +9 -5
- package/dist/confluent/tools/handlers/search/search-topic-by-tag-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/search/search-topics-by-name-handler.d.ts +5 -5
- package/dist/confluent/tools/handlers/search/search-topics-by-name-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/search/search-topics-by-name-handler.js +9 -5
- package/dist/confluent/tools/handlers/search/search-topics-by-name-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/create-tableflow-catalog-integration-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/catalog/create-tableflow-catalog-integration-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/create-tableflow-catalog-integration-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/catalog/create-tableflow-catalog-integration-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/delete-tableflow-catalog-integration-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/catalog/delete-tableflow-catalog-integration-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/delete-tableflow-catalog-integration-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/catalog/delete-tableflow-catalog-integration-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/list-tableflow-catalog-integrations-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/catalog/list-tableflow-catalog-integrations-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/list-tableflow-catalog-integrations-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/catalog/list-tableflow-catalog-integrations-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/read-tableflow-catalog-integration-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/catalog/read-tableflow-catalog-integration-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/read-tableflow-catalog-integration-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/catalog/read-tableflow-catalog-integration-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/update-tableflow-catalog-integration-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/catalog/update-tableflow-catalog-integration-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/update-tableflow-catalog-integration-handler.js +1 -1
- package/dist/confluent/tools/handlers/tableflow/catalog/update-tableflow-catalog-integration-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/list-tableflow-regions-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/list-tableflow-regions-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/list-tableflow-regions-handler.js +1 -1
- package/dist/confluent/tools/handlers/tableflow/list-tableflow-regions-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/tableflow-tool-handler.d.ts +15 -10
- package/dist/confluent/tools/handlers/tableflow/tableflow-tool-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/tableflow-tool-handler.js +17 -14
- package/dist/confluent/tools/handlers/tableflow/tableflow-tool-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/create-tableflow-topic-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/topic/create-tableflow-topic-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/create-tableflow-topic-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/topic/create-tableflow-topic-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/delete-tableflow-topic-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/topic/delete-tableflow-topic-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/delete-tableflow-topic-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/topic/delete-tableflow-topic-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/list-tableflow-topics-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/topic/list-tableflow-topics-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/list-tableflow-topics-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/topic/list-tableflow-topics-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/read-tableflow-topic-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/topic/read-tableflow-topic-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/read-tableflow-topic-handler.js +2 -2
- package/dist/confluent/tools/handlers/tableflow/topic/read-tableflow-topic-handler.js.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/update-tableflow-topic-handler.d.ts +3 -3
- package/dist/confluent/tools/handlers/tableflow/topic/update-tableflow-topic-handler.d.ts.map +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/update-tableflow-topic-handler.js +1 -1
- package/dist/confluent/tools/handlers/tableflow/topic/update-tableflow-topic-handler.js.map +1 -1
- package/dist/confluent/tools/pagination.d.ts +31 -0
- package/dist/confluent/tools/pagination.d.ts.map +1 -0
- package/dist/confluent/tools/pagination.js +40 -0
- package/dist/confluent/tools/pagination.js.map +1 -0
- package/dist/confluent/tools/tool-availability.d.ts +63 -32
- package/dist/confluent/tools/tool-availability.d.ts.map +1 -1
- package/dist/confluent/tools/tool-availability.js +101 -69
- package/dist/confluent/tools/tool-availability.js.map +1 -1
- package/dist/confluent/tools/tool-input-error.d.ts +17 -0
- package/dist/confluent/tools/tool-input-error.d.ts.map +1 -0
- package/dist/confluent/tools/tool-input-error.js +23 -0
- package/dist/confluent/tools/tool-input-error.js.map +1 -0
- package/dist/confluent/tools/tool-metadata-handler.d.ts +52 -0
- package/dist/confluent/tools/tool-metadata-handler.d.ts.map +1 -0
- package/dist/confluent/tools/tool-metadata-handler.js +61 -0
- package/dist/confluent/tools/tool-metadata-handler.js.map +1 -0
- package/dist/confluent/tools/tool-name.d.ts +7 -2
- package/dist/confluent/tools/tool-name.d.ts.map +1 -1
- package/dist/confluent/tools/tool-name.js +6 -1
- package/dist/confluent/tools/tool-name.js.map +1 -1
- package/dist/confluent/tools/tool-registry.d.ts +1 -1
- package/dist/confluent/tools/tool-registry.d.ts.map +1 -1
- package/dist/confluent/tools/tool-registry.js +24 -2
- package/dist/confluent/tools/tool-registry.js.map +1 -1
- package/dist/env-schema.d.ts +0 -1
- package/dist/env-schema.d.ts.map +1 -1
- package/dist/env-schema.js +0 -7
- package/dist/env-schema.js.map +1 -1
- package/dist/env.d.ts +1 -2
- package/dist/env.d.ts.map +1 -1
- package/dist/index.d.ts +54 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -324
- package/dist/index.js.map +1 -1
- package/dist/lazy.d.ts +4 -2
- package/dist/lazy.d.ts.map +1 -1
- package/dist/lazy.js +27 -12
- package/dist/lazy.js.map +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/mcp/server.d.ts +6 -4
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +19 -6
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/transports/auth.d.ts +1 -1
- package/dist/mcp/transports/auth.d.ts.map +1 -1
- package/dist/mcp/transports/http.d.ts +3 -3
- package/dist/mcp/transports/http.d.ts.map +1 -1
- package/dist/mcp/transports/manager.d.ts +1 -1
- package/dist/mcp/transports/manager.d.ts.map +1 -1
- package/dist/mcp/transports/manager.js.map +1 -1
- package/dist/mcp/transports/ping.d.ts +1 -1
- package/dist/mcp/transports/ping.d.ts.map +1 -1
- package/dist/mcp/transports/server.d.ts +3 -3
- package/dist/mcp/transports/server.d.ts.map +1 -1
- package/dist/mcp/transports/server.js +1 -1
- package/dist/mcp/transports/server.js.map +1 -1
- package/dist/mcp/transports/sse.d.ts +3 -3
- package/dist/mcp/transports/sse.d.ts.map +1 -1
- package/dist/mcp/transports/stdio.d.ts +2 -2
- package/dist/mcp/transports/stdio.d.ts.map +1 -1
- package/dist/preflight.d.ts +33 -0
- package/dist/preflight.d.ts.map +1 -0
- package/dist/preflight.js +68 -0
- package/dist/preflight.js.map +1 -0
- package/dist/print-md-schema.js +21 -18
- package/dist/print-md-schema.js.map +1 -1
- package/dist/server-main.d.ts +104 -0
- package/dist/server-main.d.ts.map +1 -0
- package/dist/server-main.js +410 -0
- package/dist/server-main.js.map +1 -0
- package/dist/server-runtime.d.ts +22 -7
- package/dist/server-runtime.d.ts.map +1 -1
- package/dist/server-runtime.js +45 -28
- package/dist/server-runtime.js.map +1 -1
- package/dist/utils/quote-join-ids.d.ts +9 -0
- package/dist/utils/quote-join-ids.d.ts.map +1 -0
- package/dist/utils/quote-join-ids.js +11 -0
- package/dist/utils/quote-join-ids.js.map +1 -0
- package/package.json +37 -35
- package/dist/confluent/tools/handlers/flink/read-flink-statement-handler.d.ts +0 -9
- package/dist/confluent/tools/handlers/flink/read-flink-statement-handler.d.ts.map +0 -1
- package/dist/confluent/tools/handlers/flink/read-flink-statement-handler.js.map +0 -1
- package/dist/confluent/tools/handlers/kafka/topic-metadata.d.ts +0 -18
- package/dist/confluent/tools/handlers/kafka/topic-metadata.d.ts.map +0 -1
- package/dist/confluent/tools/handlers/kafka/topic-metadata.js +0 -18
- package/dist/confluent/tools/handlers/kafka/topic-metadata.js.map +0 -1
package/dist/confluent/tools/handlers/diagnostics/describe-configured-connection-handler.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-configured-connection-handler.js","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/describe-configured-connection-handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,kBAAkB,GACnB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,YA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AE,CACrD,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAC3E,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CACnB,CAAC;IACF,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAC1C,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,EACtC,CAAC,CACF,CAAC;QACF,KAAK,CAAC,IAAI,CACR,GAAG,aAAa,QAAQ,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,YAAY,CACnE,CAAC;QACF,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,eAAe,EAAE,CAAC;YAC9C,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,KAAK,KAAK,CAAC,MAAM,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ConfluentCloudDirectConfig, ConnectionConfig, DirectConnectionConfig, FlinkDirectConfig, KafkaDirectConfig, OAuthConnectionConfig, SchemaRegistryDirectConfig, TableflowDirectConfig, TelemetryDirectConfig } from "../../../../config/models.js";
|
|
2
|
+
/**
|
|
3
|
+
* How the `describe-configured-connection` card treats one connection-config
|
|
4
|
+
* field. The visibility maps below are keyed `Record<keyof T, FieldVisibility>`
|
|
5
|
+
* over each connection arm and service block, so adding a config field fails
|
|
6
|
+
* `tsc --noEmit` (which runs in the pre-push hook and CI) until it is
|
|
7
|
+
* classified here — a new knob can never ship without a deliberate
|
|
8
|
+
* surface/withhold decision, and a secret-leak audit stays a single-file review.
|
|
9
|
+
*
|
|
10
|
+
* - `public` — non-secret scalar; surfaced in the card.
|
|
11
|
+
* - `secret` — credential material (`auth` blocks); never surfaced. Audit these.
|
|
12
|
+
* - `withheld` — non-secret but deliberately not surfaced: either a structured /
|
|
13
|
+
* opaque value (`extra_properties`) or one the card surfaces by other means
|
|
14
|
+
* (`read_only`, echoed as the coerced top-level `readOnly` boolean instead).
|
|
15
|
+
* - `block` — a nested service block; surfaced via its own map in
|
|
16
|
+
* {@link SERVICE_BLOCK_VISIBILITY}. Only appears at the connection level.
|
|
17
|
+
*/
|
|
18
|
+
export type FieldVisibility = "public" | "secret" | "withheld" | "block";
|
|
19
|
+
export declare const KAFKA_FIELD_VISIBILITY: Readonly<Record<keyof KafkaDirectConfig, FieldVisibility>>;
|
|
20
|
+
export declare const SCHEMA_REGISTRY_FIELD_VISIBILITY: Readonly<Record<keyof SchemaRegistryDirectConfig, FieldVisibility>>;
|
|
21
|
+
export declare const CONFLUENT_CLOUD_FIELD_VISIBILITY: Readonly<Record<keyof ConfluentCloudDirectConfig, FieldVisibility>>;
|
|
22
|
+
export declare const TABLEFLOW_FIELD_VISIBILITY: Readonly<Record<keyof TableflowDirectConfig, FieldVisibility>>;
|
|
23
|
+
export declare const TELEMETRY_FIELD_VISIBILITY: Readonly<Record<keyof TelemetryDirectConfig, FieldVisibility>>;
|
|
24
|
+
export declare const FLINK_FIELD_VISIBILITY: Readonly<Record<keyof FlinkDirectConfig, FieldVisibility>>;
|
|
25
|
+
export declare const DIRECT_CONNECTION_FIELD_VISIBILITY: Readonly<Record<keyof DirectConnectionConfig, FieldVisibility>>;
|
|
26
|
+
export declare const OAUTH_CONNECTION_FIELD_VISIBILITY: Readonly<Record<keyof OAuthConnectionConfig, FieldVisibility>>;
|
|
27
|
+
/**
|
|
28
|
+
* Field-visibility map for each direct-connection service block, keyed by the
|
|
29
|
+
* block's connection-field name. The keys are exactly the
|
|
30
|
+
* {@link DIRECT_CONNECTION_FIELD_VISIBILITY} entries classified `"block"`
|
|
31
|
+
* (pinned by the drift-catch test in `describe-fields.test.ts`).
|
|
32
|
+
*/
|
|
33
|
+
export declare const SERVICE_BLOCK_VISIBILITY: Readonly<Record<string, Readonly<Record<string, FieldVisibility>>>>;
|
|
34
|
+
/**
|
|
35
|
+
* The config-derived portion of a `describe-configured-connection` card:
|
|
36
|
+
* `scalars` holds the connection's `public` connection-level fields (e.g.
|
|
37
|
+
* `type`, `description`, and OAuth's `ccloud_env` / `kafka_debug`); `blocks`
|
|
38
|
+
* maps each present service block to its `public` fields. Secrets and
|
|
39
|
+
* `withheld` fields never appear in either.
|
|
40
|
+
*/
|
|
41
|
+
export interface ConnectionCard {
|
|
42
|
+
readonly scalars: Record<string, unknown>;
|
|
43
|
+
readonly blocks: Record<string, Record<string, unknown>>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Project a connection into its non-secret card, driven entirely by the
|
|
47
|
+
* visibility maps. OAuth connections carry no service blocks, so `blocks` is
|
|
48
|
+
* empty for them; the `public`/`secret`/`withheld`/`block` switch is the single
|
|
49
|
+
* place the surface/withhold decision is enforced at runtime.
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildConnectionCard(conn: ConnectionConfig): ConnectionCard;
|
|
52
|
+
//# sourceMappingURL=describe-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-fields.d.ts","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/describe-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;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,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC1D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,cAAc,CAmC1E"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export const KAFKA_FIELD_VISIBILITY = {
|
|
2
|
+
bootstrap_servers: "public",
|
|
3
|
+
rest_endpoint: "public",
|
|
4
|
+
cluster_id: "public",
|
|
5
|
+
env_id: "public",
|
|
6
|
+
auth: "secret",
|
|
7
|
+
// Free-form librdkafka property bag; can carry credential-ish values, so it
|
|
8
|
+
// stays unsurfaced even though it is not inherently a secret.
|
|
9
|
+
extra_properties: "withheld",
|
|
10
|
+
};
|
|
11
|
+
export const SCHEMA_REGISTRY_FIELD_VISIBILITY = {
|
|
12
|
+
endpoint: "public",
|
|
13
|
+
auth: "secret",
|
|
14
|
+
};
|
|
15
|
+
export const CONFLUENT_CLOUD_FIELD_VISIBILITY = {
|
|
16
|
+
endpoint: "public",
|
|
17
|
+
organization_id: "public",
|
|
18
|
+
auth: "secret",
|
|
19
|
+
};
|
|
20
|
+
export const TABLEFLOW_FIELD_VISIBILITY = {
|
|
21
|
+
auth: "secret",
|
|
22
|
+
};
|
|
23
|
+
export const TELEMETRY_FIELD_VISIBILITY = {
|
|
24
|
+
endpoint: "public",
|
|
25
|
+
auth: "secret",
|
|
26
|
+
};
|
|
27
|
+
export const FLINK_FIELD_VISIBILITY = {
|
|
28
|
+
endpoint: "public",
|
|
29
|
+
environment_id: "public",
|
|
30
|
+
organization_id: "public",
|
|
31
|
+
compute_pool_id: "public",
|
|
32
|
+
catalog_name: "public",
|
|
33
|
+
database_name: "public",
|
|
34
|
+
auth: "secret",
|
|
35
|
+
};
|
|
36
|
+
export const DIRECT_CONNECTION_FIELD_VISIBILITY = {
|
|
37
|
+
type: "public",
|
|
38
|
+
description: "public",
|
|
39
|
+
// Echoed as the coerced top-level `readOnly` boolean by the handler, so the
|
|
40
|
+
// raw snake_case field is withheld from the generic scalar pass.
|
|
41
|
+
read_only: "withheld",
|
|
42
|
+
kafka: "block",
|
|
43
|
+
schema_registry: "block",
|
|
44
|
+
confluent_cloud: "block",
|
|
45
|
+
tableflow: "block",
|
|
46
|
+
telemetry: "block",
|
|
47
|
+
flink: "block",
|
|
48
|
+
};
|
|
49
|
+
export const OAUTH_CONNECTION_FIELD_VISIBILITY = {
|
|
50
|
+
type: "public",
|
|
51
|
+
description: "public",
|
|
52
|
+
read_only: "withheld",
|
|
53
|
+
ccloud_env: "public",
|
|
54
|
+
kafka_debug: "public",
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Field-visibility map for each direct-connection service block, keyed by the
|
|
58
|
+
* block's connection-field name. The keys are exactly the
|
|
59
|
+
* {@link DIRECT_CONNECTION_FIELD_VISIBILITY} entries classified `"block"`
|
|
60
|
+
* (pinned by the drift-catch test in `describe-fields.test.ts`).
|
|
61
|
+
*/
|
|
62
|
+
export const SERVICE_BLOCK_VISIBILITY = {
|
|
63
|
+
kafka: KAFKA_FIELD_VISIBILITY,
|
|
64
|
+
schema_registry: SCHEMA_REGISTRY_FIELD_VISIBILITY,
|
|
65
|
+
confluent_cloud: CONFLUENT_CLOUD_FIELD_VISIBILITY,
|
|
66
|
+
tableflow: TABLEFLOW_FIELD_VISIBILITY,
|
|
67
|
+
telemetry: TELEMETRY_FIELD_VISIBILITY,
|
|
68
|
+
flink: FLINK_FIELD_VISIBILITY,
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Project a connection into its non-secret card, driven entirely by the
|
|
72
|
+
* visibility maps. OAuth connections carry no service blocks, so `blocks` is
|
|
73
|
+
* empty for them; the `public`/`secret`/`withheld`/`block` switch is the single
|
|
74
|
+
* place the surface/withhold decision is enforced at runtime.
|
|
75
|
+
*/
|
|
76
|
+
export function buildConnectionCard(conn) {
|
|
77
|
+
const connectionMap = conn.type === "oauth"
|
|
78
|
+
? OAUTH_CONNECTION_FIELD_VISIBILITY
|
|
79
|
+
: DIRECT_CONNECTION_FIELD_VISIBILITY;
|
|
80
|
+
const fields = conn;
|
|
81
|
+
const scalars = {};
|
|
82
|
+
const blocks = {};
|
|
83
|
+
for (const [key, visibility] of Object.entries(connectionMap)) {
|
|
84
|
+
const value = fields[key];
|
|
85
|
+
switch (visibility) {
|
|
86
|
+
case "public":
|
|
87
|
+
if (value !== undefined)
|
|
88
|
+
scalars[key] = value;
|
|
89
|
+
break;
|
|
90
|
+
case "block":
|
|
91
|
+
if (value !== undefined) {
|
|
92
|
+
blocks[key] = projectBlock(SERVICE_BLOCK_VISIBILITY[key], value);
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
case "secret":
|
|
96
|
+
case "withheld":
|
|
97
|
+
break;
|
|
98
|
+
default:
|
|
99
|
+
throw new Error(`Wacky -- unhandled field visibility "${visibility}" for connection field "${key}"`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return { scalars, blocks };
|
|
103
|
+
}
|
|
104
|
+
/** Project one service block to the `public` fields it actually carries. */
|
|
105
|
+
function projectBlock(blockMap, blockValue) {
|
|
106
|
+
const out = {};
|
|
107
|
+
for (const [field, visibility] of Object.entries(blockMap)) {
|
|
108
|
+
if (visibility === "public" && blockValue[field] !== undefined) {
|
|
109
|
+
out[field] = blockValue[field];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return out;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=describe-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-fields.js","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/describe-fields.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAC,MAAM,sBAAsB,GAE/B;IACF,iBAAiB,EAAE,QAAQ;IAC3B,aAAa,EAAE,QAAQ;IACvB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE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MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/D,GAAG,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,55 +1,33 @@
|
|
|
1
|
-
import { CallToolResult } from "../../../../confluent/schema.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { CallToolResult } from "../../../../confluent/schema.js";
|
|
2
|
+
import type { ToolConfig } from "../../../../confluent/tools/base-tools.js";
|
|
3
|
+
import { ToolCategory } from "../../../../confluent/tools/base-tools.js";
|
|
4
|
+
import { ToolMetadataHandler } from "../../../../confluent/tools/tool-metadata-handler.js";
|
|
5
|
+
import type { ServerRuntime } from "../../../../server-runtime.js";
|
|
5
6
|
/**
|
|
6
|
-
* Diagnostic tool that surfaces *why* tools are absent from `tools/list
|
|
7
|
+
* Diagnostic tool that surfaces *why* tools are absent from `tools/list` or
|
|
8
|
+
* unavailable on a given connection.
|
|
7
9
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* `tools/list` advertises the enabled tool set but not the predicate-driven
|
|
11
|
+
* decision behind every absence. This handler returns that view, shaped around
|
|
12
|
+
* connections: one section per configured connection listing the tools
|
|
13
|
+
* disabled on it (bucketed by the missing config piece, or by functional area
|
|
14
|
+
* under `group_by="category"`). A tool enabled on one connection and disabled
|
|
15
|
+
* on another shows up in the latter's section, so the cross-connection
|
|
16
|
+
* asymmetry is readable by comparing sections. A zero-connection config
|
|
17
|
+
* collapses to a dedicated summary; a single-connection config is simply one
|
|
18
|
+
* section. Connection-independent tools are advertised everywhere and never
|
|
19
|
+
* appear in a section.
|
|
12
20
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `src/config/models.ts`), so the output is a flat list of disabled tools
|
|
16
|
-
* grouped by the missing config piece (kafka block, flink block, schema
|
|
17
|
-
* registry block, …). Tools enabled on the active connection are
|
|
18
|
-
* intentionally absent — `tools/list` already advertises them.
|
|
19
|
-
*
|
|
20
|
-
* v2 plan (when multi-connection support lands — issue #151's follow-ups):
|
|
21
|
-
* regrow output around connections. The text body becomes one block per
|
|
22
|
-
* connection (header + per-connection gaps) plus a `Cross-connection
|
|
23
|
-
* deltas` section that surfaces tools enabled on some connections but not
|
|
24
|
-
* others — the canonical "what does connection B need to reach parity with
|
|
25
|
-
* connection A?" view. The structured `_meta` shape mirrors that change;
|
|
26
|
-
* see the {@linkcode ToolGatingReport} JSDoc in `tool-availability.ts` for
|
|
27
|
-
* the exact target type.
|
|
28
|
-
*
|
|
29
|
-
* Until v2 lands, the helper accepts a multi-connection runtime without
|
|
30
|
-
* crashing, but the v1 flatten is *lossy*: a tool whose predicate is
|
|
31
|
-
* enabled on at least one configured connection is reported as enabled
|
|
32
|
-
* (and therefore omitted from `disabledGroups` entirely), and a tool
|
|
33
|
-
* disabled on multiple connections with different reasons is bucketed
|
|
34
|
-
* under the first disabled verdict its iteration produces — the
|
|
35
|
-
* cross-connection asymmetry vanishes from the output. Today's
|
|
36
|
-
* single-connection invariant means neither lossy case can fire in
|
|
37
|
-
* production; this paragraph exists so a future reader does not mistake
|
|
38
|
-
* defensive iteration for parity reporting.
|
|
21
|
+
* The structured `_meta` mirrors the rendered text; see the
|
|
22
|
+
* {@linkcode ToolGatingReport} JSDoc in `tool-availability.ts`.
|
|
39
23
|
*
|
|
40
24
|
* Always enabled (predicate is `alwaysEnabled`) so an operator can call it
|
|
41
25
|
* to diagnose a config that left every other tool disabled.
|
|
42
26
|
*
|
|
43
|
-
* The
|
|
44
|
-
*
|
|
45
|
-
* registry from a registered handler would create an ESM cycle, leaving
|
|
46
|
-
* the registry's static initializer running before this class's binding
|
|
47
|
-
* is set. The thunk is invoked at request time, after every module is
|
|
48
|
-
* fully loaded, sidestepping the cycle entirely.
|
|
27
|
+
* The tool catalog is supplied through the thunk that {@link
|
|
28
|
+
* ToolMetadataHandler} owns, for the ESM-cycle reason documented there.
|
|
49
29
|
*/
|
|
50
|
-
export declare class ExplainDisabledToolsHandler extends
|
|
51
|
-
private readonly listHandlers;
|
|
52
|
-
constructor(listHandlers: () => Iterable<readonly [ToolName, ToolHandler]>);
|
|
30
|
+
export declare class ExplainDisabledToolsHandler extends ToolMetadataHandler {
|
|
53
31
|
handle(runtime: ServerRuntime, toolArguments: Record<string, unknown> | undefined): CallToolResult;
|
|
54
32
|
getToolConfig(): ToolConfig;
|
|
55
33
|
readonly category = ToolCategory.McpServerDiagnostics;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explain-disabled-tools-handler.d.ts","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"explain-disabled-tools-handler.d.ts","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAa,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAY7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAY5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,2BAA4B,SAAQ,mBAAmB;IAClE,MAAM,CACJ,OAAO,EAAE,aAAa,EACtB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GACjD,cAAc;IAYjB,aAAa,IAAI,UAAU;IAU3B,QAAQ,CAAC,QAAQ,qCAAqC;IACtD,QAAQ,CAAC,SAAS,8EAAiB;CACpC"}
|
|
@@ -1,74 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { alwaysEnabled } from "../../../../confluent/tools/connection-predicates.js";
|
|
1
|
+
import { READ_ONLY, ToolCategory } from "../../../../confluent/tools/base-tools.js";
|
|
2
|
+
import { alwaysEnabled, ToolDisabledReason, } from "../../../../confluent/tools/connection-predicates.js";
|
|
3
3
|
import { buildToolGatingReport, disabledToolGroupKey, } from "../../../../confluent/tools/tool-availability.js";
|
|
4
|
+
import { ToolMetadataHandler } from "../../../../confluent/tools/tool-metadata-handler.js";
|
|
4
5
|
import { ToolName } from "../../../../confluent/tools/tool-name.js";
|
|
5
6
|
import { z } from "zod";
|
|
6
7
|
const explainDisabledToolsArguments = z.object({
|
|
7
8
|
group_by: z
|
|
8
9
|
.enum(["reason", "category"])
|
|
9
10
|
.default("reason")
|
|
10
|
-
.describe('Axis to bucket disabled tools by. "reason" (default) answers "what config piece would unlock these?" — each bucket is a ToolDisabledReason (MissingKafkaBlock, MissingFlinkBlock, …). "category" answers "which functional area is offline?" — each bucket is a ToolCategory (kafka, flink, schema-registry, …). Flip to "category" when triaging a misconfigured connection by functional area instead of by missing config piece.'),
|
|
11
|
+
.describe('Axis to bucket each connection\'s disabled tools by. "reason" (default) answers "what config piece would unlock these?" — each bucket is a ToolDisabledReason (MissingKafkaBlock, MissingFlinkBlock, …). "category" answers "which functional area is offline?" — each bucket is a ToolCategory (kafka, flink, schema-registry, …). Flip to "category" when triaging a misconfigured connection by functional area instead of by missing config piece.'),
|
|
11
12
|
});
|
|
12
13
|
/**
|
|
13
|
-
* Diagnostic tool that surfaces *why* tools are absent from `tools/list
|
|
14
|
+
* Diagnostic tool that surfaces *why* tools are absent from `tools/list` or
|
|
15
|
+
* unavailable on a given connection.
|
|
14
16
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* `tools/list` advertises the enabled tool set but not the predicate-driven
|
|
18
|
+
* decision behind every absence. This handler returns that view, shaped around
|
|
19
|
+
* connections: one section per configured connection listing the tools
|
|
20
|
+
* disabled on it (bucketed by the missing config piece, or by functional area
|
|
21
|
+
* under `group_by="category"`). A tool enabled on one connection and disabled
|
|
22
|
+
* on another shows up in the latter's section, so the cross-connection
|
|
23
|
+
* asymmetry is readable by comparing sections. A zero-connection config
|
|
24
|
+
* collapses to a dedicated summary; a single-connection config is simply one
|
|
25
|
+
* section. Connection-independent tools are advertised everywhere and never
|
|
26
|
+
* appear in a section.
|
|
19
27
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* `src/config/models.ts`), so the output is a flat list of disabled tools
|
|
23
|
-
* grouped by the missing config piece (kafka block, flink block, schema
|
|
24
|
-
* registry block, …). Tools enabled on the active connection are
|
|
25
|
-
* intentionally absent — `tools/list` already advertises them.
|
|
26
|
-
*
|
|
27
|
-
* v2 plan (when multi-connection support lands — issue #151's follow-ups):
|
|
28
|
-
* regrow output around connections. The text body becomes one block per
|
|
29
|
-
* connection (header + per-connection gaps) plus a `Cross-connection
|
|
30
|
-
* deltas` section that surfaces tools enabled on some connections but not
|
|
31
|
-
* others — the canonical "what does connection B need to reach parity with
|
|
32
|
-
* connection A?" view. The structured `_meta` shape mirrors that change;
|
|
33
|
-
* see the {@linkcode ToolGatingReport} JSDoc in `tool-availability.ts` for
|
|
34
|
-
* the exact target type.
|
|
35
|
-
*
|
|
36
|
-
* Until v2 lands, the helper accepts a multi-connection runtime without
|
|
37
|
-
* crashing, but the v1 flatten is *lossy*: a tool whose predicate is
|
|
38
|
-
* enabled on at least one configured connection is reported as enabled
|
|
39
|
-
* (and therefore omitted from `disabledGroups` entirely), and a tool
|
|
40
|
-
* disabled on multiple connections with different reasons is bucketed
|
|
41
|
-
* under the first disabled verdict its iteration produces — the
|
|
42
|
-
* cross-connection asymmetry vanishes from the output. Today's
|
|
43
|
-
* single-connection invariant means neither lossy case can fire in
|
|
44
|
-
* production; this paragraph exists so a future reader does not mistake
|
|
45
|
-
* defensive iteration for parity reporting.
|
|
28
|
+
* The structured `_meta` mirrors the rendered text; see the
|
|
29
|
+
* {@linkcode ToolGatingReport} JSDoc in `tool-availability.ts`.
|
|
46
30
|
*
|
|
47
31
|
* Always enabled (predicate is `alwaysEnabled`) so an operator can call it
|
|
48
32
|
* to diagnose a config that left every other tool disabled.
|
|
49
33
|
*
|
|
50
|
-
* The
|
|
51
|
-
*
|
|
52
|
-
* registry from a registered handler would create an ESM cycle, leaving
|
|
53
|
-
* the registry's static initializer running before this class's binding
|
|
54
|
-
* is set. The thunk is invoked at request time, after every module is
|
|
55
|
-
* fully loaded, sidestepping the cycle entirely.
|
|
34
|
+
* The tool catalog is supplied through the thunk that {@link
|
|
35
|
+
* ToolMetadataHandler} owns, for the ESM-cycle reason documented there.
|
|
56
36
|
*/
|
|
57
|
-
export class ExplainDisabledToolsHandler extends
|
|
58
|
-
listHandlers;
|
|
59
|
-
constructor(listHandlers) {
|
|
60
|
-
super();
|
|
61
|
-
this.listHandlers = listHandlers;
|
|
62
|
-
}
|
|
37
|
+
export class ExplainDisabledToolsHandler extends ToolMetadataHandler {
|
|
63
38
|
handle(runtime, toolArguments) {
|
|
64
39
|
const { group_by } = explainDisabledToolsArguments.parse(toolArguments ?? {});
|
|
65
|
-
const report = buildToolGatingReport(this.
|
|
40
|
+
const report = buildToolGatingReport(this.getToolNamesAndHandlers(), runtime, group_by);
|
|
66
41
|
return this.createResponse(renderReport(report), false, { ...report });
|
|
67
42
|
}
|
|
68
43
|
getToolConfig() {
|
|
69
44
|
return {
|
|
70
45
|
name: ToolName.EXPLAIN_DISABLED_TOOLS,
|
|
71
|
-
description: 'Call when the user asks why a tool is missing or unavailable (e.g., "why can\'t I list Kafka topics?", "where are the Flink tools?"). Returns disabled tools
|
|
46
|
+
description: 'Call when the user asks why a tool is missing or unavailable (e.g., "why can\'t I list Kafka topics?", "where are the Flink tools?"). Returns disabled tools organized per connection — each connection\'s gaps bucketed by the config piece each tool is waiting on, so you can tell the user the exact YAML block or field to add (and, with more than one connection, which connection needs it). Pass group_by="category" to bucket each connection\'s gaps by functional area (kafka, flink, schema-registry, …) instead of by missing config piece. Prefer this over guessing about credentials, network, or auth.',
|
|
72
47
|
inputSchema: explainDisabledToolsArguments.shape,
|
|
73
48
|
annotations: READ_ONLY,
|
|
74
49
|
};
|
|
@@ -81,55 +56,94 @@ export class ExplainDisabledToolsHandler extends BaseToolHandler {
|
|
|
81
56
|
* the tool's response. Format is stable — handler tests pin specific
|
|
82
57
|
* substrings so the AI/script-facing structure does not drift silently.
|
|
83
58
|
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* -
|
|
87
|
-
*
|
|
59
|
+
* Two orthogonal parts, each present only when it has something to say, joined
|
|
60
|
+
* by a blank line:
|
|
61
|
+
* - the server-wide operator allow/block-list block, when any tool was
|
|
62
|
+
* excluded by it (rendered first, since the operator filter is the
|
|
63
|
+
* outermost gate);
|
|
64
|
+
* - the connection-shaped part: a no-connections summary, or a
|
|
65
|
+
* `Per-connection tool gating (by {axis}):` heading with one section per
|
|
66
|
+
* gapped connection and a closing advertised-count line.
|
|
88
67
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
68
|
+
* When neither part has anything to report, a one-line "all advertised"
|
|
69
|
+
* summary stands in.
|
|
91
70
|
*
|
|
92
|
-
*
|
|
71
|
+
* Operator block (top-level header, two-space bullets):
|
|
93
72
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* …
|
|
73
|
+
* excluded by the operator's allow/block-list (2):
|
|
74
|
+
* - list-topics
|
|
75
|
+
* - create-topics
|
|
98
76
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* …
|
|
77
|
+
* Section layout (two-space connection header, four-space bucket header,
|
|
78
|
+
* six-space bullets):
|
|
102
79
|
*
|
|
103
|
-
*
|
|
80
|
+
* Per-connection tool gating (by reason):
|
|
104
81
|
*
|
|
105
|
-
*
|
|
82
|
+
* Connection 'local-kafka' — 3 of 40 tools disabled:
|
|
83
|
+
* {reason or category} ({n}):
|
|
84
|
+
* - {tool}
|
|
85
|
+
* …
|
|
106
86
|
*
|
|
107
|
-
*
|
|
108
|
-
* section and an optional `Cross-connection deltas` section. See the
|
|
109
|
-
* handler's class JSDoc for the migration sketch.
|
|
87
|
+
* {enabled} tools advertised via tools/list.
|
|
110
88
|
*/
|
|
111
89
|
function renderReport(report) {
|
|
112
90
|
const total = report.enabledCount + report.disabledCount;
|
|
113
|
-
|
|
91
|
+
const operatorBlock = report.operatorBlocked.length > 0
|
|
92
|
+
? renderOperatorBlock(report.operatorBlocked)
|
|
93
|
+
: undefined;
|
|
94
|
+
const connectionPart = renderConnectionPart(report, total);
|
|
95
|
+
if (operatorBlock === undefined && connectionPart === undefined) {
|
|
114
96
|
return `All ${total} registered tools are advertised via tools/list.`;
|
|
115
97
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
98
|
+
// Blank line between the two parts so they stay visually separate.
|
|
99
|
+
return [operatorBlock, connectionPart]
|
|
100
|
+
.filter((part) => part !== undefined)
|
|
101
|
+
.join("\n\n");
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The connection-shaped portion of the report, or `undefined` when there is
|
|
105
|
+
* nothing connection-side to say (a zero-connection config whose only disabled
|
|
106
|
+
* tools are operator-blocked, or a populated config with every
|
|
107
|
+
* connection-dependent tool advertised). The operator-blocked tally is
|
|
108
|
+
* excluded from the no-connections "connection-gated" count — those tools are
|
|
109
|
+
* already accounted for in the operator block.
|
|
110
|
+
*/
|
|
111
|
+
function renderConnectionPart(report, total) {
|
|
112
|
+
if (report.connections.length === 0) {
|
|
113
|
+
const connectionGated = report.disabledCount - report.operatorBlocked.length;
|
|
114
|
+
if (connectionGated === 0)
|
|
115
|
+
return undefined;
|
|
116
|
+
return `No connections are configured — ${connectionGated} of ${total} tools are connection-gated and unavailable; ${report.enabledCount} connection-independent tools remain available.`;
|
|
117
|
+
}
|
|
118
|
+
const gappedSections = report.connections.filter((section) => section.disabledCount > 0);
|
|
119
|
+
if (gappedSections.length === 0)
|
|
120
|
+
return undefined;
|
|
121
|
+
// Per-connection section denominators exclude operator-blocked tools so the
|
|
122
|
+
// "X of Y" counts are self-consistent with what each section represents.
|
|
123
|
+
const connectionRoutableTotal = total - report.operatorBlocked.length;
|
|
122
124
|
return [
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
report.disabledGroups.map(renderGroup).join("\n\n"),
|
|
126
|
-
"",
|
|
125
|
+
`Per-connection tool gating (by ${report.groupBy}):`,
|
|
126
|
+
...gappedSections.map((section) => renderConnectionSection(section, connectionRoutableTotal)),
|
|
127
127
|
`${report.enabledCount} tools advertised via tools/list.`,
|
|
128
|
-
].join("\n");
|
|
128
|
+
].join("\n\n");
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Render the server-wide operator allow/block-list block: a header naming the
|
|
132
|
+
* reason and count, then one two-space bullet per excluded tool in handler
|
|
133
|
+
* iteration order.
|
|
134
|
+
*/
|
|
135
|
+
function renderOperatorBlock(blocked) {
|
|
136
|
+
const header = `${ToolDisabledReason.OperatorBlocked} (${blocked.length}):`;
|
|
137
|
+
const bullets = blocked.map((tool) => ` - ${tool}`);
|
|
138
|
+
return [header, ...bullets].join("\n");
|
|
139
|
+
}
|
|
140
|
+
function renderConnectionSection(section, total) {
|
|
141
|
+
const header = ` Connection '${section.connectionId}' — ${section.disabledCount} of ${total} tools disabled:`;
|
|
142
|
+
return [header, ...section.disabledGroups.map(renderGroup)].join("\n");
|
|
129
143
|
}
|
|
130
144
|
function renderGroup(group) {
|
|
131
|
-
const header = `
|
|
132
|
-
const bullets = group.tools.map((tool) => `
|
|
145
|
+
const header = ` ${disabledToolGroupKey(group)} (${group.tools.length}):`;
|
|
146
|
+
const bullets = group.tools.map((tool) => ` - ${tool}`);
|
|
133
147
|
return [header, ...bullets].join("\n");
|
|
134
148
|
}
|
|
135
149
|
//# sourceMappingURL=explain-disabled-tools-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explain-disabled-tools-handler.js","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"explain-disabled-tools-handler.js","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/explain-disabled-tools-handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,kBAAkB,GACnB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,qBAAqB,EAGrB,oBAAoB,GAErB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;SAC5B,OAAO,CAAC,QAAQ,CAAC;SACjB,QAAQ,CACP,wbAAwb,CACzb;CACJ,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAO,2BAA4B,SAAQ,mBAAmB;IAClE,MAAM,CACJ,OAAsB,EACtB,aAAkD;QAElD,MAAM,EAAE,QAA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IAAI,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,uBAAuB,CAC9B,OAAgC,EAChC,KAAa;IAEb,MAAM,MAAM,GAAG,iBAAiB,OAAO,CAAC,YAAY,OAAO,OAAO,CAAC,aAAa,OAAO,KAAK,kBAAkB,CAAC;IAC/G,OAAO,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,WAAW,CAAC,KAAwB;IAC3C,MAAM,MAAM,GAAG,OAAO,oBAAoB,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC;IAC7E,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAC7D,OAAO,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CallToolResult } from "../../../../confluent/schema.js";
|
|
2
|
+
import type { ToolConfig } from "../../../../confluent/tools/base-tools.js";
|
|
3
|
+
import { ToolCategory } from "../../../../confluent/tools/base-tools.js";
|
|
4
|
+
import { ToolMetadataHandler } from "../../../../confluent/tools/tool-metadata-handler.js";
|
|
5
|
+
import type { ServerRuntime } from "../../../../server-runtime.js";
|
|
6
|
+
/**
|
|
7
|
+
* Discovery tool: maps each configured connection id to the tools an agent can
|
|
8
|
+
* actually invoke against it. "Actually invokable" means a tool both survived
|
|
9
|
+
* the operator's allow/block-list and whose predicate enables that specific
|
|
10
|
+
* connection — the same two gates tool registration applies, so this listing
|
|
11
|
+
* can never claim a tool the server didn't advertise.
|
|
12
|
+
*
|
|
13
|
+
* This tool itself is always enabled (predicate = `alwaysEnabled`) but intentionally excludes
|
|
14
|
+
* connection-agnostic tools from the per-connection lists: a tool whose predicate is `alwaysEnabled`
|
|
15
|
+
* applies to every connection, so listing it under each connection would misrepresent it as
|
|
16
|
+
* connection-routable. This tool answers "which connections are available and which tools
|
|
17
|
+
* are directly usable on each."
|
|
18
|
+
*
|
|
19
|
+
* The tool catalog is supplied through the thunk that {@link
|
|
20
|
+
* ToolMetadataHandler} owns, for the ESM-cycle reason documented there.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ListConfiguredConnectionsHandler extends ToolMetadataHandler {
|
|
23
|
+
handle(runtime: ServerRuntime, toolArguments?: Record<string, unknown>): CallToolResult;
|
|
24
|
+
getToolConfig(): ToolConfig;
|
|
25
|
+
readonly category = ToolCategory.McpServerDiagnostics;
|
|
26
|
+
readonly predicate: import("../../../../confluent/tools/connection-predicates.js").ConnectionPredicate;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=list-configured-connections-handler.d.ts.map
|
package/dist/confluent/tools/handlers/diagnostics/list-configured-connections-handler.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-configured-connections-handler.d.ts","sourceRoot":"","sources":["../../../../../src/confluent/tools/handlers/diagnostics/list-configured-connections-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAa,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAgB5D;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gCAAiC,SAAQ,mBAAmB;IACvE,MAAM,CACJ,OAAO,EAAE,aAAa,EACtB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACtC,cAAc;IAsCjB,aAAa,IAAI,UAAU;IAU3B,QAAQ,CAAC,QAAQ,qCAAqC;IACtD,QAAQ,CAAC,SAAS,8EAAiB;CACpC"}
|