@lightdash-tools/mcp 0.6.0 → 0.8.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 +205 -58
- package/dist/audit/audit.d.ts +5 -0
- package/dist/{audit.js → audit/audit.js} +1 -2
- package/dist/audit/tool-audit-context.d.ts +6 -0
- package/dist/audit/tool-audit-context.js +12 -0
- package/dist/audit/tool-audit-context.test.d.ts +1 -0
- package/dist/audit/tool-audit-context.test.js +19 -0
- package/dist/auth/auth-mode.d.ts +4 -0
- package/dist/auth/auth-mode.js +6 -0
- package/dist/auth/bearer.d.ts +3 -0
- package/dist/auth/bearer.js +13 -0
- package/dist/auth/lightdash-oauth-upstream-contract.d.ts +22 -0
- package/dist/auth/lightdash-oauth-upstream-contract.js +36 -0
- package/dist/auth/lightdash-oauth-upstream-contract.test.d.ts +1 -0
- package/dist/auth/lightdash-oauth-upstream-contract.test.js +56 -0
- package/dist/auth/oauth-broker/as-metadata.d.ts +14 -0
- package/dist/auth/oauth-broker/as-metadata.js +20 -0
- package/dist/auth/oauth-broker/lightdash-token.d.ts +20 -0
- package/dist/auth/oauth-broker/lightdash-token.js +76 -0
- package/dist/auth/oauth-broker/pending-store.d.ts +127 -0
- package/dist/auth/oauth-broker/pending-store.js +151 -0
- package/dist/auth/oauth-broker/pending-store.test.d.ts +6 -0
- package/dist/auth/oauth-broker/pending-store.test.js +146 -0
- package/dist/auth/oauth-broker/pkce.d.ts +2 -0
- package/dist/auth/oauth-broker/pkce.js +17 -0
- package/dist/auth/oauth-broker/routes.d.ts +13 -0
- package/dist/auth/oauth-broker/routes.js +452 -0
- package/dist/auth/oauth-broker/routes.test.d.ts +1 -0
- package/dist/auth/oauth-broker/routes.test.js +242 -0
- package/dist/auth/providers/bearer-context-provider.d.ts +24 -0
- package/dist/auth/providers/bearer-context-provider.js +52 -0
- package/dist/auth/providers/env-context-provider.d.ts +13 -0
- package/dist/auth/providers/env-context-provider.js +19 -0
- package/dist/auth/resource-server/lightdash-oauth-middleware.d.ts +23 -0
- package/dist/auth/resource-server/lightdash-oauth-middleware.js +115 -0
- package/dist/auth/resource-server/lightdash-oauth-middleware.test.d.ts +1 -0
- package/dist/auth/resource-server/lightdash-oauth-middleware.test.js +202 -0
- package/dist/auth/resource-server/lightdash-token-validation.d.ts +14 -0
- package/dist/auth/resource-server/lightdash-token-validation.js +82 -0
- package/dist/auth/resource-server/lightdash-token-validation.test.d.ts +1 -0
- package/dist/auth/resource-server/lightdash-token-validation.test.js +177 -0
- package/dist/auth/resource-server/oauth-protected-resource.d.ts +25 -0
- package/dist/auth/resource-server/oauth-protected-resource.js +67 -0
- package/dist/auth/resource-server/shared-key-middleware.d.ts +13 -0
- package/dist/auth/resource-server/shared-key-middleware.js +24 -0
- package/dist/auth/resource-server/token-scopes.d.ts +15 -0
- package/dist/auth/resource-server/token-scopes.js +76 -0
- package/dist/auth/resource-server/token-scopes.test.d.ts +1 -0
- package/dist/auth/resource-server/token-scopes.test.js +51 -0
- package/dist/auth/resource-server/token-validation-cache.d.ts +15 -0
- package/dist/auth/resource-server/token-validation-cache.js +44 -0
- package/dist/auth/resource-server/token-validation-cache.test.d.ts +1 -0
- package/dist/auth/resource-server/token-validation-cache.test.js +41 -0
- package/dist/auth/resource-server/token-validation-error.d.ts +6 -0
- package/dist/auth/resource-server/token-validation-error.js +13 -0
- package/dist/auth/resource-server/www-authenticate.d.ts +8 -0
- package/dist/auth/resource-server/www-authenticate.js +24 -0
- package/dist/auth/resource-server/www-authenticate.test.d.ts +1 -0
- package/dist/auth/resource-server/www-authenticate.test.js +70 -0
- package/dist/auth/token-hash.d.ts +2 -0
- package/dist/auth/token-hash.js +8 -0
- package/dist/bin.d.ts +0 -4
- package/dist/bin.js +62 -33
- package/dist/config/env.d.ts +57 -0
- package/dist/config/env.js +60 -0
- package/dist/config/load-mcp-config.d.ts +30 -0
- package/dist/config/load-mcp-config.js +286 -0
- package/dist/config/load-mcp-config.test.d.ts +1 -0
- package/dist/config/load-mcp-config.test.js +202 -0
- package/dist/config/normalize-url.d.ts +13 -0
- package/dist/config/normalize-url.js +52 -0
- package/dist/config/normalize-url.test.d.ts +1 -0
- package/dist/config/normalize-url.test.js +47 -0
- package/dist/config/public-url.d.ts +3 -0
- package/dist/config/public-url.js +10 -0
- package/dist/config/runtime.d.ts +15 -0
- package/dist/config/runtime.js +48 -0
- package/dist/config/runtime.test.d.ts +1 -0
- package/dist/config/runtime.test.js +69 -0
- package/dist/config/test-mcp-http-config.d.ts +3 -0
- package/dist/config/test-mcp-http-config.js +7 -0
- package/dist/destructive/capability.d.ts +13 -0
- package/dist/destructive/capability.js +37 -0
- package/dist/destructive/capability.test.d.ts +1 -0
- package/dist/destructive/capability.test.js +46 -0
- package/dist/destructive/confirmation-claim.d.ts +21 -0
- package/dist/destructive/confirmation-claim.js +87 -0
- package/dist/destructive/confirmation-claim.test.d.ts +1 -0
- package/dist/destructive/confirmation-claim.test.js +50 -0
- package/dist/destructive/confirmation.d.ts +58 -0
- package/dist/destructive/confirmation.js +99 -0
- package/dist/destructive/confirmation.test.d.ts +1 -0
- package/dist/destructive/confirmation.test.js +75 -0
- package/dist/destructive/content-promote.d.ts +8 -0
- package/dist/destructive/content-promote.js +144 -0
- package/dist/destructive/content-soft-delete.d.ts +7 -0
- package/dist/destructive/content-soft-delete.js +106 -0
- package/dist/destructive/destructive-contract.test.d.ts +1 -0
- package/dist/destructive/destructive-contract.test.js +269 -0
- package/dist/destructive/precondition.d.ts +14 -0
- package/dist/destructive/precondition.js +31 -0
- package/dist/destructive/precondition.test.d.ts +1 -0
- package/dist/destructive/precondition.test.js +72 -0
- package/dist/destructive/promote-contract.test.d.ts +1 -0
- package/dist/destructive/promote-contract.test.js +339 -0
- package/dist/destructive/register-destructive-tool.d.ts +54 -0
- package/dist/destructive/register-destructive-tool.js +301 -0
- package/dist/destructive/request-state.d.ts +16 -0
- package/dist/destructive/request-state.js +76 -0
- package/dist/destructive/types.d.ts +64 -0
- package/dist/destructive/types.js +10 -0
- package/dist/governance/mcp-client-session.d.ts +9 -0
- package/dist/governance/mcp-client-session.js +30 -0
- package/dist/governance/mcp-client-session.test.d.ts +1 -0
- package/dist/governance/mcp-client-session.test.js +31 -0
- package/dist/governance/project-pin.d.ts +14 -0
- package/dist/governance/project-pin.js +44 -0
- package/dist/governance/project-pin.test.d.ts +1 -0
- package/dist/governance/project-pin.test.js +35 -0
- package/dist/governance/project-scope.d.ts +38 -0
- package/dist/governance/project-scope.js +79 -0
- package/dist/governance/project-scope.test.d.ts +4 -0
- package/dist/governance/project-scope.test.js +103 -0
- package/dist/http.d.ts +1 -2
- package/dist/http.integration.test.d.ts +1 -0
- package/dist/http.integration.test.js +722 -0
- package/dist/http.js +3 -170
- package/dist/http.test.d.ts +4 -0
- package/dist/http.test.js +131 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.integration.test.js +73 -30
- package/dist/index.js +28 -27
- package/dist/index.test.js +3 -3
- package/dist/logging/structured.d.ts +27 -0
- package/dist/logging/structured.js +32 -0
- package/dist/logging/structured.test.d.ts +1 -0
- package/dist/logging/structured.test.js +33 -0
- package/dist/personas/content-developer/v1/index.d.ts +10 -0
- package/dist/personas/content-developer/v1/index.js +51 -0
- package/dist/personas/content-developer/v1/prompts.d.ts +5 -0
- package/dist/personas/content-developer/v1/prompts.js +138 -0
- package/dist/personas/content-developer/v1/prompts.test.d.ts +4 -0
- package/dist/personas/content-developer/v1/prompts.test.js +75 -0
- package/dist/personas/content-developer/v1/resources/playbooks/content-move.md +15 -0
- package/dist/personas/content-developer/v1/resources/playbooks/core.md +63 -0
- package/dist/personas/content-developer/v1/resources/playbooks/dashboards.md +55 -0
- package/dist/personas/content-developer/v1/resources/playbooks/index.md +13 -0
- package/dist/personas/content-developer/v1/resources/playbooks.d.ts +10 -0
- package/dist/personas/content-developer/v1/resources/playbooks.js +44 -0
- package/dist/personas/content-governance/v1/index.d.ts +9 -0
- package/dist/personas/content-governance/v1/index.js +29 -0
- package/dist/personas/content-governance/v1/prompts.d.ts +5 -0
- package/dist/personas/content-governance/v1/prompts.js +87 -0
- package/dist/personas/content-governance/v1/prompts.test.d.ts +4 -0
- package/dist/personas/content-governance/v1/prompts.test.js +75 -0
- package/dist/personas/content-governance/v1/resources/playbooks/charts.md +29 -0
- package/dist/personas/content-governance/v1/resources/playbooks/core.md +52 -0
- package/dist/personas/content-governance/v1/resources/playbooks/dashboards.md +48 -0
- package/dist/personas/content-governance/v1/resources/playbooks/index.md +13 -0
- package/dist/personas/content-governance/v1/resources/playbooks.d.ts +10 -0
- package/dist/personas/content-governance/v1/resources/playbooks.js +41 -0
- package/dist/personas/content-reader/v1/index.d.ts +8 -0
- package/dist/personas/content-reader/v1/index.js +37 -0
- package/dist/personas/content-reader/v1/prompts.d.ts +5 -0
- package/dist/personas/content-reader/v1/prompts.js +128 -0
- package/dist/personas/content-reader/v1/prompts.test.d.ts +4 -0
- package/dist/personas/content-reader/v1/prompts.test.js +25 -0
- package/dist/personas/content-reader/v1/resources/playbooks/compare.md +21 -0
- package/dist/personas/content-reader/v1/resources/playbooks/core.md +40 -0
- package/dist/personas/content-reader/v1/resources/playbooks/discover.md +13 -0
- package/dist/personas/content-reader/v1/resources/playbooks/explain-run.md +19 -0
- package/dist/personas/content-reader/v1/resources/playbooks/index.md +14 -0
- package/dist/personas/content-reader/v1/resources/playbooks.d.ts +10 -0
- package/dist/personas/content-reader/v1/resources/playbooks.js +49 -0
- package/dist/personas/index.d.ts +22 -0
- package/dist/personas/index.js +73 -0
- package/dist/personas/index.test.d.ts +1 -0
- package/dist/personas/index.test.js +109 -0
- package/dist/personas/lib/playbook-resources.d.ts +79 -0
- package/dist/personas/lib/playbook-resources.js +165 -0
- package/dist/personas/organization-audit/v1/index.d.ts +8 -0
- package/dist/personas/organization-audit/v1/index.js +42 -0
- package/dist/personas/organization-audit/v1/prompts.d.ts +5 -0
- package/dist/personas/organization-audit/v1/prompts.js +92 -0
- package/dist/personas/organization-audit/v1/prompts.test.d.ts +4 -0
- package/dist/personas/organization-audit/v1/prompts.test.js +25 -0
- package/dist/personas/organization-audit/v1/resources/playbooks/access.md +13 -0
- package/dist/personas/organization-audit/v1/resources/playbooks/content.md +9 -0
- package/dist/personas/organization-audit/v1/resources/playbooks/core.md +36 -0
- package/dist/personas/organization-audit/v1/resources/playbooks/deliveries.md +9 -0
- package/dist/personas/organization-audit/v1/resources/playbooks/index.md +14 -0
- package/dist/personas/organization-audit/v1/resources/playbooks.d.ts +10 -0
- package/dist/personas/organization-audit/v1/resources/playbooks.js +41 -0
- package/dist/personas/persona.parity.test.d.ts +1 -0
- package/dist/personas/persona.parity.test.js +26 -0
- package/dist/personas/semantic-layer/v1/index.d.ts +8 -0
- package/dist/personas/semantic-layer/v1/index.js +32 -0
- package/dist/personas/semantic-layer/v1/prompts.d.ts +5 -0
- package/dist/personas/semantic-layer/v1/prompts.js +85 -0
- package/dist/personas/semantic-layer/v1/prompts.test.d.ts +4 -0
- package/dist/personas/semantic-layer/v1/prompts.test.js +19 -0
- package/dist/personas/semantic-layer/v1/resources/playbooks/compose-compile.md +55 -0
- package/dist/personas/semantic-layer/v1/resources/playbooks/core.md +39 -0
- package/dist/personas/semantic-layer/v1/resources/playbooks/explore.md +76 -0
- package/dist/personas/semantic-layer/v1/resources/playbooks/index.md +13 -0
- package/dist/personas/semantic-layer/v1/resources/playbooks.d.ts +13 -0
- package/dist/personas/semantic-layer/v1/resources/playbooks.js +39 -0
- package/dist/personas/types.d.ts +19 -0
- package/dist/personas/types.js +5 -0
- package/dist/policy/content-developer.d.ts +35 -0
- package/dist/policy/content-developer.js +91 -0
- package/dist/policy/content-developer.test.d.ts +4 -0
- package/dist/policy/content-developer.test.js +48 -0
- package/dist/policy/content-reader.d.ts +24 -0
- package/dist/policy/content-reader.js +52 -0
- package/dist/policy/content-reader.test.d.ts +4 -0
- package/dist/policy/content-reader.test.js +22 -0
- package/dist/policy/envelope.d.ts +31 -0
- package/dist/policy/envelope.js +24 -0
- package/dist/policy/preview-ledger-fault.test.d.ts +1 -0
- package/dist/policy/preview-ledger-fault.test.js +527 -0
- package/dist/policy/preview-ledger.d.ts +118 -0
- package/dist/policy/preview-ledger.js +243 -0
- package/dist/policy/preview-ledger.test.d.ts +1 -0
- package/dist/policy/preview-ledger.test.js +267 -0
- package/dist/policy/result-limits.d.ts +27 -0
- package/dist/policy/result-limits.js +107 -0
- package/dist/policy/result-limits.test.d.ts +4 -0
- package/dist/policy/result-limits.test.js +28 -0
- package/dist/protocol-contract.test.d.ts +1 -0
- package/dist/protocol-contract.test.js +42 -0
- package/dist/server/capabilities.d.ts +15 -0
- package/dist/server/capabilities.js +19 -0
- package/dist/server/capabilities.test.d.ts +1 -0
- package/dist/server/capabilities.test.js +41 -0
- package/dist/server/errors.test.d.ts +1 -0
- package/dist/server/errors.test.js +53 -0
- package/dist/server/request-context.d.ts +13 -0
- package/dist/server/request-context.js +2 -0
- package/dist/server/server.d.ts +4 -0
- package/dist/server/server.js +28 -0
- package/dist/server/server.test.d.ts +1 -0
- package/dist/server/server.test.js +15 -0
- package/dist/server/version.d.ts +1 -0
- package/dist/server/version.js +7 -0
- package/dist/server/version.test.d.ts +1 -0
- package/dist/server/version.test.js +9 -0
- package/dist/stdio.process.test.d.ts +1 -0
- package/dist/stdio.process.test.js +274 -0
- package/dist/store/config.d.ts +11 -0
- package/dist/store/config.js +50 -0
- package/dist/store/config.test.d.ts +1 -0
- package/dist/store/config.test.js +56 -0
- package/dist/store/create-oauth-broker-store.d.ts +6 -0
- package/dist/store/create-oauth-broker-store.js +16 -0
- package/dist/store/create-preview-store.d.ts +10 -0
- package/dist/store/create-preview-store.js +30 -0
- package/dist/store/create-session-store.d.ts +19 -0
- package/dist/store/create-session-store.js +24 -0
- package/dist/store/in-memory-preview-store.d.ts +17 -0
- package/dist/store/in-memory-preview-store.js +72 -0
- package/dist/store/redis-client.d.ts +11 -0
- package/dist/store/redis-client.js +48 -0
- package/dist/store/redis-oauth-broker-store.d.ts +42 -0
- package/dist/store/redis-oauth-broker-store.js +167 -0
- package/dist/store/redis-oauth-broker-store.test.d.ts +1 -0
- package/dist/store/redis-oauth-broker-store.test.js +80 -0
- package/dist/store/redis-preview-store.d.ts +23 -0
- package/dist/store/redis-preview-store.js +94 -0
- package/dist/store/redis-preview-store.test.d.ts +1 -0
- package/dist/store/redis-preview-store.test.js +39 -0
- package/dist/store/redis-session-index.d.ts +33 -0
- package/dist/store/redis-session-index.js +49 -0
- package/dist/store/types.d.ts +13 -0
- package/dist/store/types.js +8 -0
- package/dist/tools/composition/explain-content.d.ts +6 -0
- package/dist/tools/composition/explain-content.js +108 -0
- package/dist/tools/index.d.ts +2 -4
- package/dist/tools/index.js +4 -30
- package/dist/tools/index.test.d.ts +1 -0
- package/dist/tools/index.test.js +72 -0
- package/dist/tools/lib/api-errors.d.ts +11 -0
- package/dist/tools/lib/api-errors.js +27 -0
- package/dist/tools/lib/api-shape.d.ts +16 -0
- package/dist/tools/lib/api-shape.js +47 -0
- package/dist/tools/lib/assert-safe.d.ts +13 -0
- package/dist/tools/lib/assert-safe.js +21 -0
- package/dist/tools/lib/assert-safe.test.d.ts +4 -0
- package/dist/tools/lib/assert-safe.test.js +32 -0
- package/dist/tools/lib/concurrency.d.ts +4 -0
- package/dist/tools/lib/concurrency.js +24 -0
- package/dist/tools/lib/contracts.d.ts +34 -0
- package/dist/tools/lib/contracts.js +30 -0
- package/dist/tools/lib/redaction.d.ts +107 -0
- package/dist/tools/lib/redaction.js +299 -0
- package/dist/tools/lib/redaction.test.d.ts +4 -0
- package/dist/tools/lib/redaction.test.js +216 -0
- package/dist/tools/lib/register-org-audit.d.ts +9 -0
- package/dist/tools/lib/register-org-audit.js +20 -0
- package/dist/tools/lib/schema-fields.d.ts +9 -0
- package/dist/tools/lib/schema-fields.js +19 -0
- package/dist/tools/lib/stable-stringify.d.ts +9 -0
- package/dist/tools/lib/stable-stringify.js +35 -0
- package/dist/tools/organization/binding.d.ts +14 -0
- package/dist/tools/organization/binding.js +31 -0
- package/dist/tools/organization/invariants.test.d.ts +4 -0
- package/dist/tools/organization/invariants.test.js +28 -0
- package/dist/tools/organization/inventory.d.ts +10 -0
- package/dist/tools/organization/inventory.js +189 -0
- package/dist/tools/organization/roles.d.ts +10 -0
- package/dist/tools/organization/roles.js +213 -0
- package/dist/tools/project/content.d.ts +9 -0
- package/dist/tools/project/content.js +192 -0
- package/dist/tools/project/delete-chart.d.ts +4 -0
- package/dist/tools/project/delete-chart.js +8 -0
- package/dist/tools/project/delete-dashboard.d.ts +4 -0
- package/dist/tools/project/delete-dashboard.js +8 -0
- package/dist/tools/project/developer-content-preview.d.ts +12 -0
- package/dist/tools/project/developer-content-preview.js +286 -0
- package/dist/tools/project/developer-content-shared.d.ts +18 -0
- package/dist/tools/project/developer-content-shared.js +46 -0
- package/dist/tools/project/developer-content-shared.test.d.ts +1 -0
- package/dist/tools/project/developer-content-shared.test.js +25 -0
- package/dist/tools/project/developer-content.d.ts +39 -0
- package/dist/tools/project/developer-content.js +584 -0
- package/dist/tools/project/developer-helpers.d.ts +180 -0
- package/dist/tools/project/developer-helpers.js +484 -0
- package/dist/tools/project/developer-helpers.test.d.ts +1 -0
- package/dist/tools/project/developer-helpers.test.js +509 -0
- package/dist/tools/project/get-dashboard-promote-diff.d.ts +6 -0
- package/dist/tools/project/get-dashboard-promote-diff.js +42 -0
- package/dist/tools/project/invariants.test.d.ts +4 -0
- package/dist/tools/project/invariants.test.js +42 -0
- package/dist/tools/project/parameters.d.ts +7 -0
- package/dist/tools/project/parameters.js +74 -0
- package/dist/tools/project/projects.d.ts +10 -0
- package/dist/tools/project/projects.js +102 -0
- package/dist/tools/project/projects.test.d.ts +1 -0
- package/dist/tools/project/projects.test.js +154 -0
- package/dist/tools/project/promote-dashboard.d.ts +4 -0
- package/dist/tools/project/promote-dashboard.js +8 -0
- package/dist/tools/project/reader-content.d.ts +9 -0
- package/dist/tools/project/reader-content.js +208 -0
- package/dist/tools/project/reader-execution.d.ts +7 -0
- package/dist/tools/project/reader-execution.js +214 -0
- package/dist/tools/project/schedulers.d.ts +7 -0
- package/dist/tools/project/schedulers.js +115 -0
- package/dist/tools/project/schemas/chart-upsert.d.ts +33 -0
- package/dist/tools/project/schemas/chart-upsert.js +66 -0
- package/dist/tools/project/schemas/dashboard-tile.d.ts +29 -0
- package/dist/tools/project/schemas/dashboard-tile.js +57 -0
- package/dist/tools/project/schemas/dashboard.d.ts +70 -0
- package/dist/tools/project/schemas/dashboard.js +101 -0
- package/dist/tools/project/schemas/duplicate.d.ts +30 -0
- package/dist/tools/project/schemas/duplicate.js +86 -0
- package/dist/tools/project/schemas/index.d.ts +7 -0
- package/dist/tools/project/schemas/index.js +26 -0
- package/dist/tools/project/schemas/parse-helpers.d.ts +14 -0
- package/dist/tools/project/schemas/parse-helpers.js +34 -0
- package/dist/tools/project/schemas/payload-schemas.test.d.ts +1 -0
- package/dist/tools/project/schemas/payload-schemas.test.js +204 -0
- package/dist/tools/project/spaces.d.ts +7 -0
- package/dist/tools/project/spaces.js +101 -0
- package/dist/tools/query/bounded-saved-query.d.ts +37 -0
- package/dist/tools/query/bounded-saved-query.js +80 -0
- package/dist/tools/query/bounded-saved-query.test.d.ts +4 -0
- package/dist/tools/query/bounded-saved-query.test.js +82 -0
- package/dist/tools/query/chart-source.d.ts +10 -0
- package/dist/tools/query/chart-source.js +36 -0
- package/dist/tools/query/chart-source.test.d.ts +1 -0
- package/dist/tools/query/chart-source.test.js +62 -0
- package/dist/tools/query/filter-overrides.d.ts +34 -0
- package/dist/tools/query/filter-overrides.js +75 -0
- package/dist/tools/query/filter-overrides.test.d.ts +1 -0
- package/dist/tools/query/filter-overrides.test.js +21 -0
- package/dist/tools/query/lifecycle.d.ts +7 -0
- package/dist/tools/query/lifecycle.js +112 -0
- package/dist/tools/query/query-ledger.d.ts +34 -0
- package/dist/tools/query/query-ledger.js +86 -0
- package/dist/tools/query/query-ledger.test.d.ts +1 -0
- package/dist/tools/query/query-ledger.test.js +73 -0
- package/dist/tools/query/reader-tool-helpers.d.ts +12 -0
- package/dist/tools/query/reader-tool-helpers.js +59 -0
- package/dist/tools/query/reader-tool-helpers.test.d.ts +1 -0
- package/dist/tools/query/reader-tool-helpers.test.js +49 -0
- package/dist/tools/query/result-normalizer.d.ts +27 -0
- package/dist/tools/query/result-normalizer.js +133 -0
- package/dist/tools/query/result-normalizer.test.d.ts +1 -0
- package/dist/tools/query/result-normalizer.test.js +41 -0
- package/dist/tools/query/wait-for-async.d.ts +10 -0
- package/dist/tools/query/wait-for-async.js +46 -0
- package/dist/tools/query/wait-for-async.test.d.ts +1 -0
- package/dist/tools/query/wait-for-async.test.js +45 -0
- package/dist/tools/registry.d.ts +225 -0
- package/dist/tools/registry.js +115 -0
- package/dist/tools/semantic/explore-helpers.d.ts +56 -0
- package/dist/tools/semantic/explore-helpers.js +115 -0
- package/dist/tools/semantic/explore-helpers.test.d.ts +1 -0
- package/dist/tools/semantic/explore-helpers.test.js +170 -0
- package/dist/tools/semantic/explores.d.ts +9 -0
- package/dist/tools/semantic/explores.js +80 -0
- package/dist/tools/semantic/metrics.d.ts +7 -0
- package/dist/tools/semantic/metrics.js +53 -0
- package/dist/tools/semantic/query.d.ts +6 -0
- package/dist/tools/semantic/query.js +42 -0
- package/dist/tools/semantic/schema-fields.d.ts +3 -0
- package/dist/tools/semantic/schema-fields.js +7 -0
- package/dist/tools/shared.d.ts +51 -15
- package/dist/tools/shared.js +171 -163
- package/dist/tools/shared.test.js +137 -184
- package/dist/tools/space/access.d.ts +66 -0
- package/dist/tools/space/access.js +322 -0
- package/dist/tools/space/access.test.d.ts +4 -0
- package/dist/tools/space/access.test.js +90 -0
- package/dist/transports/http-body.d.ts +5 -0
- package/dist/transports/http-body.js +50 -0
- package/dist/transports/http-request-utils.d.ts +2 -0
- package/dist/transports/http-request-utils.js +13 -0
- package/dist/transports/http-response.d.ts +6 -0
- package/dist/transports/http-response.js +56 -0
- package/dist/transports/session-store.d.ts +72 -0
- package/dist/transports/session-store.js +143 -0
- package/dist/transports/session-store.test.d.ts +1 -0
- package/dist/transports/session-store.test.js +111 -0
- package/dist/transports/streamable-http.d.ts +9 -0
- package/dist/transports/streamable-http.js +461 -0
- package/dist/transports/streamable-http.test.d.ts +1 -0
- package/dist/transports/streamable-http.test.js +100 -0
- package/package.json +26 -10
- package/dist/audit.d.ts +0 -6
- package/dist/config.d.ts +0 -47
- package/dist/config.js +0 -82
- package/dist/tools/ai-agents.d.ts +0 -6
- package/dist/tools/ai-agents.js +0 -388
- package/dist/tools/charts.d.ts +0 -6
- package/dist/tools/charts.js +0 -55
- package/dist/tools/content.d.ts +0 -6
- package/dist/tools/content.js +0 -37
- package/dist/tools/dashboards.d.ts +0 -6
- package/dist/tools/dashboards.js +0 -28
- package/dist/tools/explores.d.ts +0 -6
- package/dist/tools/explores.js +0 -65
- package/dist/tools/groups.d.ts +0 -6
- package/dist/tools/groups.js +0 -121
- package/dist/tools/metrics.d.ts +0 -6
- package/dist/tools/metrics.js +0 -45
- package/dist/tools/projects.d.ts +0 -6
- package/dist/tools/projects.js +0 -58
- package/dist/tools/query.d.ts +0 -6
- package/dist/tools/query.js +0 -34
- package/dist/tools/schedulers.d.ts +0 -6
- package/dist/tools/schedulers.js +0 -45
- package/dist/tools/spaces.d.ts +0 -6
- package/dist/tools/spaces.js +0 -128
- package/dist/tools/tags.d.ts +0 -6
- package/dist/tools/tags.js +0 -28
- package/dist/tools/users.d.ts +0 -6
- package/dist/tools/users.js +0 -50
- package/src/audit.ts +0 -6
- package/src/bin.ts +0 -58
- package/src/config.ts +0 -83
- package/src/errors.ts +0 -27
- package/src/http.ts +0 -187
- package/src/index.integration.test.ts +0 -57
- package/src/index.test.ts +0 -8
- package/src/index.ts +0 -31
- package/src/tools/ai-agents.ts +0 -759
- package/src/tools/charts.ts +0 -85
- package/src/tools/content.ts +0 -44
- package/src/tools/dashboards.ts +0 -25
- package/src/tools/explores.ts +0 -98
- package/src/tools/groups.ts +0 -180
- package/src/tools/index.ts +0 -35
- package/src/tools/metrics.ts +0 -42
- package/src/tools/projects.ts +0 -74
- package/src/tools/query.ts +0 -47
- package/src/tools/schedulers.ts +0 -42
- package/src/tools/shared.test.ts +0 -365
- package/src/tools/shared.ts +0 -274
- package/src/tools/spaces.ts +0 -217
- package/src/tools/tags.ts +0 -25
- package/src/tools/users.ts +0 -64
- package/tsconfig.json +0 -13
- /package/dist/{errors.d.ts → server/errors.d.ts} +0 -0
- /package/dist/{errors.js → server/errors.js} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Content-governance prompt/playbook invariants.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const vitest_1 = require("vitest");
|
|
40
|
+
const playbooks_js_1 = require("./resources/playbooks.js");
|
|
41
|
+
const index_js_1 = require("./index.js");
|
|
42
|
+
(0, vitest_1.describe)('content-governance prompts/playbook', () => {
|
|
43
|
+
(0, vitest_1.it)('playbooks reference only registered tool short ids', () => {
|
|
44
|
+
const md = (0, playbooks_js_1.getAllPlaybookMarkdown)();
|
|
45
|
+
for (const id of index_js_1.CONTENT_GOVERNANCE_TOOL_IDS) {
|
|
46
|
+
(0, vitest_1.expect)(md.includes(id) || md.includes(`lightdash_${id}`)).toBe(true);
|
|
47
|
+
}
|
|
48
|
+
(0, vitest_1.expect)(md).not.toMatch(/\bldt__/);
|
|
49
|
+
(0, vitest_1.expect)(md.toLowerCase()).toContain('hard bans');
|
|
50
|
+
(0, vitest_1.expect)(playbooks_js_1.CONTENT_GOVERNANCE_HARD_BANS.toLowerCase()).toContain('permanently purge');
|
|
51
|
+
});
|
|
52
|
+
(0, vitest_1.it)('documents elicitation SOP, soft-delete, and promote bans', () => {
|
|
53
|
+
const md = (0, playbooks_js_1.getAllPlaybookMarkdown)().toLowerCase();
|
|
54
|
+
(0, vitest_1.expect)(md).toContain('elicitation_required');
|
|
55
|
+
(0, vitest_1.expect)(md).toContain('resource_changed');
|
|
56
|
+
(0, vitest_1.expect)(md).toContain('confirm_delete');
|
|
57
|
+
(0, vitest_1.expect)(md).toContain('confirm_promote');
|
|
58
|
+
(0, vitest_1.expect)(md).toContain('confirmationtext');
|
|
59
|
+
(0, vitest_1.expect)(md).toContain('soft-delete');
|
|
60
|
+
(0, vitest_1.expect)(md).toContain('promote_dashboard');
|
|
61
|
+
(0, vitest_1.expect)(md).toContain('permanently purge');
|
|
62
|
+
(0, vitest_1.expect)(md).not.toMatch(/`permanent_delete/);
|
|
63
|
+
});
|
|
64
|
+
(0, vitest_1.it)('registers delete and promote prompts', async () => {
|
|
65
|
+
const { registerContentGovernancePrompts } = await Promise.resolve().then(() => __importStar(require('./prompts.js')));
|
|
66
|
+
const names = [];
|
|
67
|
+
const server = {
|
|
68
|
+
registerPrompt: (name) => {
|
|
69
|
+
names.push(name);
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
registerContentGovernancePrompts(server);
|
|
73
|
+
(0, vitest_1.expect)(names.sort()).toEqual(['delete_chart', 'delete_dashboard', 'promote_dashboard']);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Content-governance — charts
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-governance/charts`
|
|
4
|
+
|
|
5
|
+
Soft-delete a single saved chart after human form elicitation. Soft-delete hides the chart from normal lists and is restorable from trash until permanently purged (purge is not available on MCP).
|
|
6
|
+
|
|
7
|
+
## Soft-delete workflow
|
|
8
|
+
|
|
9
|
+
1. Resolve project scope (`X-Lightdash-Project` pin or `projectUuid`).
|
|
10
|
+
2. Call `lightdash_delete_chart` with `chartUuidOrSlug` (UUID or slug).
|
|
11
|
+
3. If the response is blocked with `ELICITATION_REQUIRED`, stop — the client cannot approve deletes via MCP.
|
|
12
|
+
4. When the tool returns an elicitation form, the human must complete:
|
|
13
|
+
- `decision`: `confirm_delete` to proceed, or `do_not_delete` to abort
|
|
14
|
+
- `confirmationText`: exact chart **name** from the form message (not the UUID alone unless that is the displayed name)
|
|
15
|
+
5. On accept, the server re-fetches the chart and checks the precondition digest. If the chart changed (name, space, updatedAt, etc.), expect `RESOURCE_CHANGED` — call `lightdash_delete_chart` again for a fresh elicitation; do not invent confirmation.
|
|
16
|
+
6. On success, report the soft-delete receipt (identity, project, that it is restorable). Do not claim permanent purge.
|
|
17
|
+
|
|
18
|
+
## Confirmation form fields
|
|
19
|
+
|
|
20
|
+
| Field | Required values |
|
|
21
|
+
| ------------------ | ---------------------------------------------------- |
|
|
22
|
+
| `decision` | `confirm_delete` or `do_not_delete` |
|
|
23
|
+
| `confirmationText` | Exact resource name shown in the elicitation message |
|
|
24
|
+
|
|
25
|
+
## Error codes
|
|
26
|
+
|
|
27
|
+
- `ELICITATION_REQUIRED` — client lacks form elicitation; fail closed (no weaker confirmation path).
|
|
28
|
+
- `RESOURCE_CHANGED` — target drifted after approval was bound; re-invoke the tool.
|
|
29
|
+
- Declined / cancelled elicitation — leave the chart in place; report that nothing was deleted.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Content-governance core
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-governance/core`
|
|
4
|
+
|
|
5
|
+
## Hard bans
|
|
6
|
+
|
|
7
|
+
- Do not permanently purge soft-deleted content (client-only / never on MCP).
|
|
8
|
+
- Do not delete spaces, bulk-delete, or call org-level deletes.
|
|
9
|
+
- Do not soft-delete or promote without **form elicitation** — never invent `confirmed: true` or treat chat "please confirm" as approval.
|
|
10
|
+
- Do not bypass the elicitation gate when the client lacks form elicitation (`ELICITATION_REQUIRED`).
|
|
11
|
+
- Do not promote charts or SQL charts via MCP (dashboard-first only). Upstream is the project's Data Ops setting — do not invent a target project UUID.
|
|
12
|
+
- Do not restore, author, compile queries, or execute warehouse SQL from this persona.
|
|
13
|
+
- Do not reveal secrets, warehouse credentials, or hidden SQL.
|
|
14
|
+
|
|
15
|
+
## Tools
|
|
16
|
+
|
|
17
|
+
Use only these `lightdash_*` tools:
|
|
18
|
+
|
|
19
|
+
- `delete_chart`
|
|
20
|
+
- `delete_dashboard`
|
|
21
|
+
- `get_dashboard_promote_diff`
|
|
22
|
+
- `promote_dashboard`
|
|
23
|
+
|
|
24
|
+
One mutating tool call → one resource → one elicitation → one API call. No bulk delete or bulk promote in v1.
|
|
25
|
+
|
|
26
|
+
## Phase 0 — Resolve project
|
|
27
|
+
|
|
28
|
+
1. Require a resolved project: HTTP `X-Lightdash-Project` pin or explicit `projectUuid` on the tool (`LIGHTDASH_TOOLS_PROJECT_UUID` is ignored on this persona).
|
|
29
|
+
2. Stop when project scope is unresolved (`PROJECT_SCOPE_REQUIRED`).
|
|
30
|
+
3. Never enumerate organization projects from this persona (no `list_projects`).
|
|
31
|
+
|
|
32
|
+
## Soft-delete elicitation SOP
|
|
33
|
+
|
|
34
|
+
1. Call `lightdash_delete_chart` or `lightdash_delete_dashboard` with the target UUID/slug (and `projectUuid` when not pinned).
|
|
35
|
+
2. The tool fails closed with `ELICITATION_REQUIRED` if the client cannot do form elicitation.
|
|
36
|
+
3. Otherwise the tool returns `inputRequired` with a confirmation form. Humans must set:
|
|
37
|
+
- `decision`: `confirm_delete` (or `do_not_delete` to keep the resource)
|
|
38
|
+
- `confirmationText`: the **exact** resource name shown in the elicitation message
|
|
39
|
+
4. After accept, the server revalidates the target. Drift → `RESOURCE_CHANGED`; re-run the tool (do not reuse stale approval).
|
|
40
|
+
5. Report the deletion receipt (or declined/cancelled/blocked). Soft-delete is restorable from trash until permanently purged outside MCP.
|
|
41
|
+
|
|
42
|
+
## Dashboard promote elicitation SOP
|
|
43
|
+
|
|
44
|
+
1. Optionally call `lightdash_get_dashboard_promote_diff` to inspect `create` / `update` / `no changes` counts before release.
|
|
45
|
+
2. Call `lightdash_promote_dashboard` with `dashboardUuidOrSlug` (and `projectUuid` when not pinned / for slug disambiguation).
|
|
46
|
+
3. Same elicitation capability gate as soft-delete.
|
|
47
|
+
4. Humans must set:
|
|
48
|
+
- `decision`: `confirm_promote` (or `do_not_promote` to abort)
|
|
49
|
+
- `confirmationText`: the **exact** dashboard name shown in the elicitation message
|
|
50
|
+
5. The form message summarizes promoteDiff impact and warns that nested charts/spaces/data apps may be created or overwritten upstream.
|
|
51
|
+
6. After accept, the server re-fetches dashboard + promoteDiff. Drift → `RESOURCE_CHANGED`; re-run the tool.
|
|
52
|
+
7. Report the promotion receipt (or declined/cancelled/blocked). Upstream must already be configured in Lightdash Data Ops.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Content-governance — dashboards
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-governance/dashboards`
|
|
4
|
+
|
|
5
|
+
Soft-delete a single dashboard after human form elicitation, or promote a dashboard to its configured upstream project after form elicitation. Soft-delete hides the dashboard from normal lists and is restorable from trash until permanently purged (purge is not available on MCP). Promote copies the dashboard and its nested charts (and may create spaces / data-app tiles) into the upstream project — see [How to promote content](https://docs.lightdash.com/guides/how-to-promote-content).
|
|
6
|
+
|
|
7
|
+
## Soft-delete workflow
|
|
8
|
+
|
|
9
|
+
1. Resolve project scope (`X-Lightdash-Project` pin or `projectUuid`).
|
|
10
|
+
2. Call `lightdash_delete_dashboard` with `dashboardUuidOrSlug` (UUID or slug).
|
|
11
|
+
3. If the response is blocked with `ELICITATION_REQUIRED`, stop — the client cannot approve deletes via MCP.
|
|
12
|
+
4. When the tool returns an elicitation form, the human must complete:
|
|
13
|
+
- `decision`: `confirm_delete` to proceed, or `do_not_delete` to abort
|
|
14
|
+
- `confirmationText`: exact dashboard **name** from the form message (not the UUID alone unless that is the displayed name)
|
|
15
|
+
5. On accept, the server re-fetches the dashboard and checks the precondition digest. If the dashboard changed, expect `RESOURCE_CHANGED` — call `lightdash_delete_dashboard` again for a fresh elicitation; do not invent confirmation.
|
|
16
|
+
6. On success, report the soft-delete receipt (identity, project, that it is restorable). Do not claim permanent purge or space deletion.
|
|
17
|
+
|
|
18
|
+
## Promote workflow
|
|
19
|
+
|
|
20
|
+
1. Resolve project scope.
|
|
21
|
+
2. Optionally call `lightdash_get_dashboard_promote_diff` to inspect `PromotionChanges` (charts/dashboards/spaces/sqlCharts/dataApps actions).
|
|
22
|
+
3. Call `lightdash_promote_dashboard` with `dashboardUuidOrSlug`.
|
|
23
|
+
4. If blocked with `ELICITATION_REQUIRED`, stop — no weaker confirmation path.
|
|
24
|
+
5. Human form fields:
|
|
25
|
+
- `decision`: `confirm_promote` or `do_not_promote`
|
|
26
|
+
- `confirmationText`: exact dashboard name from the elicitation message
|
|
27
|
+
6. On accept, server re-fetches dashboard + promoteDiff. Drift → `RESOURCE_CHANGED` — re-invoke for a fresh elicitation.
|
|
28
|
+
7. On success, report the promotion receipt. Do not claim chart-only or SQL-chart promote (not available on MCP). Upstream project is configured in Data Ops, not chosen via tool args.
|
|
29
|
+
|
|
30
|
+
## Soft-delete confirmation form fields
|
|
31
|
+
|
|
32
|
+
| Field | Required values |
|
|
33
|
+
| ------------------ | ---------------------------------------------------- |
|
|
34
|
+
| `decision` | `confirm_delete` or `do_not_delete` |
|
|
35
|
+
| `confirmationText` | Exact resource name shown in the elicitation message |
|
|
36
|
+
|
|
37
|
+
## Promote confirmation form fields
|
|
38
|
+
|
|
39
|
+
| Field | Required values |
|
|
40
|
+
| ------------------ | ----------------------------------------------------- |
|
|
41
|
+
| `decision` | `confirm_promote` or `do_not_promote` |
|
|
42
|
+
| `confirmationText` | Exact dashboard name shown in the elicitation message |
|
|
43
|
+
|
|
44
|
+
## Error codes
|
|
45
|
+
|
|
46
|
+
- `ELICITATION_REQUIRED` — client lacks form elicitation; fail closed (no weaker confirmation path).
|
|
47
|
+
- `RESOURCE_CHANGED` — target or promoteDiff drifted after approval was bound; re-invoke the tool.
|
|
48
|
+
- Declined / cancelled elicitation — leave the dashboard / upstream unchanged; report that nothing was mutated.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Content-governance playbooks
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-governance`
|
|
4
|
+
|
|
5
|
+
Workflow-scoped playbooks (always load **core** plus one topic with a prompt):
|
|
6
|
+
|
|
7
|
+
| Topic | URI |
|
|
8
|
+
| ------------------- | ----------------------------------------------------- |
|
|
9
|
+
| Core (gates & bans) | `lightdash://playbooks/content-governance/core` |
|
|
10
|
+
| Charts | `lightdash://playbooks/content-governance/charts` |
|
|
11
|
+
| Dashboards | `lightdash://playbooks/content-governance/dashboards` |
|
|
12
|
+
|
|
13
|
+
Soft-delete project-scoped charts and dashboards only, after human form elicitation.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content-governance multi-playbook resources (core + topics + index).
|
|
3
|
+
*/
|
|
4
|
+
import type { McpServer } from '@modelcontextprotocol/server';
|
|
5
|
+
export type ContentGovernancePlaybookTopic = 'charts' | 'dashboards';
|
|
6
|
+
export declare const CONTENT_GOVERNANCE_HARD_BANS: string;
|
|
7
|
+
export declare const getAllPlaybookMarkdown: () => string;
|
|
8
|
+
export declare const CONTENT_GOVERNANCE_CORE_PLAYBOOK: import("../../../lib/playbook-resources.js").EmbeddedPlaybook;
|
|
9
|
+
export declare const CONTENT_GOVERNANCE_TOPIC_PLAYBOOKS: Readonly<Record<ContentGovernancePlaybookTopic, import("../../../lib/playbook-resources.js").EmbeddedPlaybook>>;
|
|
10
|
+
export declare function registerContentGovernancePlaybook(server: McpServer): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Content-governance multi-playbook resources (core + topics + index).
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CONTENT_GOVERNANCE_TOPIC_PLAYBOOKS = exports.CONTENT_GOVERNANCE_CORE_PLAYBOOK = exports.getAllPlaybookMarkdown = exports.CONTENT_GOVERNANCE_HARD_BANS = void 0;
|
|
7
|
+
exports.registerContentGovernancePlaybook = registerContentGovernancePlaybook;
|
|
8
|
+
const playbook_resources_js_1 = require("../../../lib/playbook-resources.js");
|
|
9
|
+
const playbooks = (0, playbook_resources_js_1.definePersonaPlaybooks)({
|
|
10
|
+
personaId: 'content-governance',
|
|
11
|
+
moduleDir: __dirname,
|
|
12
|
+
hardBans: `Do not permanently purge soft-deleted content.
|
|
13
|
+
Do not delete spaces or perform bulk delete.
|
|
14
|
+
Do not soft-delete or promote without form elicitation (never invent confirmed: true or chat-only approval).
|
|
15
|
+
Do not expose deletes/promote on other personas or bypass the elicitation gate.
|
|
16
|
+
Do not promote charts or SQL charts via MCP (dashboard-first only).
|
|
17
|
+
Do not restore, author, or execute warehouse queries from this persona.
|
|
18
|
+
Do not reveal secrets, warehouse credentials, or hidden SQL.`,
|
|
19
|
+
coreDescription: 'Hard bans, elicitation SOP, tools, and project scope',
|
|
20
|
+
topics: [
|
|
21
|
+
{
|
|
22
|
+
id: 'charts',
|
|
23
|
+
title: 'Content-governance charts playbook',
|
|
24
|
+
description: 'Soft-delete a saved chart with form elicitation',
|
|
25
|
+
file: 'charts.md',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'dashboards',
|
|
29
|
+
title: 'Content-governance dashboards playbook',
|
|
30
|
+
description: 'Soft-delete or promote a dashboard with form elicitation',
|
|
31
|
+
file: 'dashboards.md',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
});
|
|
35
|
+
exports.CONTENT_GOVERNANCE_HARD_BANS = playbooks.HARD_BANS;
|
|
36
|
+
exports.getAllPlaybookMarkdown = playbooks.getAllPlaybookMarkdown;
|
|
37
|
+
exports.CONTENT_GOVERNANCE_CORE_PLAYBOOK = playbooks.CORE_PLAYBOOK;
|
|
38
|
+
exports.CONTENT_GOVERNANCE_TOPIC_PLAYBOOKS = playbooks.TOPIC_PLAYBOOKS;
|
|
39
|
+
function registerContentGovernancePlaybook(server) {
|
|
40
|
+
playbooks.registerPlaybooks(server);
|
|
41
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content-reader persona: saved-content discovery + bounded execution.
|
|
3
|
+
*/
|
|
4
|
+
import type { PersonaDefinition } from '../../types.js';
|
|
5
|
+
export declare const CONTENT_READER_PERSONA_PATH: "/content-reader/v1/mcp";
|
|
6
|
+
/** Explicit allowlist — must stay a deliberate subset of the shared registry. */
|
|
7
|
+
export declare const CONTENT_READER_TOOL_IDS: readonly ["get_project", "search_content", "list_spaces", "get_space", "get_dashboard", "get_chart", "list_project_parameters", "get_project_parameters", "explain_content", "run_chart", "run_dashboard_tile", "get_query_result", "cancel_query"];
|
|
8
|
+
export declare const contentReaderPersona: PersonaDefinition;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Content-reader persona: saved-content discovery + bounded execution.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.contentReaderPersona = exports.CONTENT_READER_TOOL_IDS = exports.CONTENT_READER_PERSONA_PATH = void 0;
|
|
7
|
+
const prompts_js_1 = require("./prompts.js");
|
|
8
|
+
const playbooks_js_1 = require("./resources/playbooks.js");
|
|
9
|
+
exports.CONTENT_READER_PERSONA_PATH = '/content-reader/v1/mcp';
|
|
10
|
+
/** Explicit allowlist — must stay a deliberate subset of the shared registry. */
|
|
11
|
+
exports.CONTENT_READER_TOOL_IDS = [
|
|
12
|
+
'get_project',
|
|
13
|
+
'search_content',
|
|
14
|
+
'list_spaces',
|
|
15
|
+
'get_space',
|
|
16
|
+
'get_dashboard',
|
|
17
|
+
'get_chart',
|
|
18
|
+
'list_project_parameters',
|
|
19
|
+
'get_project_parameters',
|
|
20
|
+
'explain_content',
|
|
21
|
+
'run_chart',
|
|
22
|
+
'run_dashboard_tile',
|
|
23
|
+
'get_query_result',
|
|
24
|
+
'cancel_query',
|
|
25
|
+
];
|
|
26
|
+
exports.contentReaderPersona = {
|
|
27
|
+
id: 'content-reader',
|
|
28
|
+
path: exports.CONTENT_READER_PERSONA_PATH,
|
|
29
|
+
serverName: 'lightdash-mcp-content',
|
|
30
|
+
toolIds: exports.CONTENT_READER_TOOL_IDS,
|
|
31
|
+
registerPrompts: (server) => {
|
|
32
|
+
(0, prompts_js_1.registerContentReaderPrompts)(server);
|
|
33
|
+
},
|
|
34
|
+
registerResources: (server) => {
|
|
35
|
+
(0, playbooks_js_1.registerContentReaderPlaybook)(server);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MCP prompts for content-reader workflows.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerContentReaderPrompts = registerContentReaderPrompts;
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-deprecated -- matches organization-audit prompt registration pattern */
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
const playbook_resources_js_1 = require("../../lib/playbook-resources.js");
|
|
10
|
+
const playbooks_js_1 = require("./resources/playbooks.js");
|
|
11
|
+
const userMessages = (0, playbook_resources_js_1.createPromptPlaybookEmbedder)({
|
|
12
|
+
core: playbooks_js_1.CONTENT_READER_CORE_PLAYBOOK,
|
|
13
|
+
topics: playbooks_js_1.CONTENT_READER_TOPIC_PLAYBOOKS,
|
|
14
|
+
});
|
|
15
|
+
const TOPIC_EXPLAIN_RUN = 'explain-run';
|
|
16
|
+
function registerContentReaderPrompts(server) {
|
|
17
|
+
server.registerPrompt('find_content', {
|
|
18
|
+
title: 'Find content',
|
|
19
|
+
description: 'Find the most relevant saved Lightdash content in the current project',
|
|
20
|
+
argsSchema: {
|
|
21
|
+
question: zod_1.z.string(),
|
|
22
|
+
contentTypes: zod_1.z.string().optional(),
|
|
23
|
+
verifiedOnly: zod_1.z.boolean().optional(),
|
|
24
|
+
spaceUuid: zod_1.z.string().optional(),
|
|
25
|
+
},
|
|
26
|
+
}, ({ question, contentTypes, verifiedOnly, spaceUuid }) => userMessages(`Find the most relevant Lightdash content in the current project for:
|
|
27
|
+
|
|
28
|
+
${question}
|
|
29
|
+
|
|
30
|
+
${playbooks_js_1.CONTENT_READER_HARD_BANS}
|
|
31
|
+
|
|
32
|
+
Resolve the project first via lightdash_get_project. Search with lightdash_search_content and navigate spaces.
|
|
33
|
+
Prefer verified content when equally relevant. Content types hint: ${contentTypes !== null && contentTypes !== void 0 ? contentTypes : '(any)'}.
|
|
34
|
+
Verified only: ${verifiedOnly !== null && verifiedOnly !== void 0 ? verifiedOnly : false}. Space filter: ${spaceUuid !== null && spaceUuid !== void 0 ? spaceUuid : '(none)'}.
|
|
35
|
+
|
|
36
|
+
Do not execute content unless values or analysis are requested.
|
|
37
|
+
|
|
38
|
+
Return at most five candidates with name/type, UUID, space path, verification, relevance, and warnings.`, 'discover'));
|
|
39
|
+
server.registerPrompt('explain_chart', {
|
|
40
|
+
title: 'Explain chart',
|
|
41
|
+
description: 'Explain a saved chart from metadata (optional bounded execution)',
|
|
42
|
+
argsSchema: {
|
|
43
|
+
chartUuidOrSlug: zod_1.z.string(),
|
|
44
|
+
includeLatestValues: zod_1.z.boolean().optional(),
|
|
45
|
+
},
|
|
46
|
+
}, ({ chartUuidOrSlug, includeLatestValues }) => userMessages(`Explain the saved chart ${chartUuidOrSlug}.
|
|
47
|
+
|
|
48
|
+
${playbooks_js_1.CONTENT_READER_HARD_BANS}
|
|
49
|
+
|
|
50
|
+
Retrieve chart metadata with lightdash_get_chart / lightdash_explain_content.
|
|
51
|
+
Distinguish explicit metadata from inferred business meaning.
|
|
52
|
+
When includeLatestValues is ${includeLatestValues !== null && includeLatestValues !== void 0 ? includeLatestValues : false}, run lightdash_run_chart with cache and bounded limits.
|
|
53
|
+
Cite chart UUID and query UUID. Do not construct a new query or retrieve underlying data.`, TOPIC_EXPLAIN_RUN));
|
|
54
|
+
server.registerPrompt('summarize_dashboard', {
|
|
55
|
+
title: 'Summarize dashboard',
|
|
56
|
+
description: 'Summarize a dashboard with optional bounded tile execution',
|
|
57
|
+
argsSchema: {
|
|
58
|
+
dashboardUuidOrSlug: zod_1.z.string(),
|
|
59
|
+
executeTiles: zod_1.z.boolean().optional(),
|
|
60
|
+
maximumTiles: zod_1.z.number().optional(),
|
|
61
|
+
focus: zod_1.z.string().optional(),
|
|
62
|
+
},
|
|
63
|
+
}, ({ dashboardUuidOrSlug, executeTiles, maximumTiles, focus }) => userMessages(`Summarize dashboard ${dashboardUuidOrSlug}.
|
|
64
|
+
|
|
65
|
+
${playbooks_js_1.CONTENT_READER_HARD_BANS}
|
|
66
|
+
|
|
67
|
+
Describe purpose, tabs, filters, parameters, verification, and tile structure via lightdash_get_dashboard.
|
|
68
|
+
Select tiles relevant to: ${focus !== null && focus !== void 0 ? focus : '(general summary)'}.
|
|
69
|
+
When execution is requested (${executeTiles !== null && executeTiles !== void 0 ? executeTiles : false}), execute no more than ${maximumTiles !== null && maximumTiles !== void 0 ? maximumTiles : 5} tiles with lightdash_run_dashboard_tile,
|
|
70
|
+
preserve dashboard context, use cache, and use bounded limits.
|
|
71
|
+
Report values, trends, failures, content UUIDs, and query UUIDs. Do not claim unexecuted tiles support a conclusion.`, TOPIC_EXPLAIN_RUN));
|
|
72
|
+
server.registerPrompt('answer_from_content', {
|
|
73
|
+
title: 'Answer from content',
|
|
74
|
+
description: 'Answer a question using existing saved Lightdash content only',
|
|
75
|
+
argsSchema: {
|
|
76
|
+
question: zod_1.z.string(),
|
|
77
|
+
verifiedOnly: zod_1.z.boolean().optional(),
|
|
78
|
+
maximumExecutions: zod_1.z.number().optional(),
|
|
79
|
+
},
|
|
80
|
+
}, ({ question, verifiedOnly, maximumExecutions }) => userMessages(`Answer this question using existing Lightdash content:
|
|
81
|
+
|
|
82
|
+
${question}
|
|
83
|
+
|
|
84
|
+
${playbooks_js_1.CONTENT_READER_HARD_BANS}
|
|
85
|
+
|
|
86
|
+
Search for relevant content, inspect metadata, prefer verified=${verifiedOnly !== null && verifiedOnly !== void 0 ? verifiedOnly : false} when set,
|
|
87
|
+
and execute only the smallest number of saved charts or tiles required, up to ${maximumExecutions !== null && maximumExecutions !== void 0 ? maximumExecutions : 3}.
|
|
88
|
+
Use saved filters and parameters except for validated value overrides.
|
|
89
|
+
State the answer, content used, filter/parameter context, result timestamp, cache state, truncation, and limitations.`, TOPIC_EXPLAIN_RUN));
|
|
90
|
+
server.registerPrompt('compare_content', {
|
|
91
|
+
title: 'Compare content',
|
|
92
|
+
description: 'Compare saved content definitions and optionally values',
|
|
93
|
+
argsSchema: {
|
|
94
|
+
contentReferences: zod_1.z.string(),
|
|
95
|
+
comparisonQuestion: zod_1.z.string(),
|
|
96
|
+
},
|
|
97
|
+
}, ({ contentReferences, comparisonQuestion }) => userMessages(`Compare these Lightdash content items:
|
|
98
|
+
|
|
99
|
+
${contentReferences}
|
|
100
|
+
|
|
101
|
+
Question:
|
|
102
|
+
${comparisonQuestion}
|
|
103
|
+
|
|
104
|
+
${playbooks_js_1.CONTENT_READER_HARD_BANS}
|
|
105
|
+
|
|
106
|
+
Retrieve metadata first. Compare definitions, dimensions, filters, time grains, parameters, verification, and update state before values.
|
|
107
|
+
Execute only when structurally comparable or when differences are the subject of analysis.
|
|
108
|
+
Do not assume matching labels mean matching definitions.`, 'compare'));
|
|
109
|
+
server.registerPrompt('investigate_result_difference', {
|
|
110
|
+
title: 'Investigate result difference',
|
|
111
|
+
description: 'Investigate why two content resources differ',
|
|
112
|
+
argsSchema: {
|
|
113
|
+
firstContent: zod_1.z.string(),
|
|
114
|
+
secondContent: zod_1.z.string(),
|
|
115
|
+
observedDifference: zod_1.z.string(),
|
|
116
|
+
},
|
|
117
|
+
}, ({ firstContent, secondContent, observedDifference }) => userMessages(`Investigate why these Lightdash resources differ:
|
|
118
|
+
|
|
119
|
+
First: ${firstContent}
|
|
120
|
+
Second: ${secondContent}
|
|
121
|
+
Difference: ${observedDifference}
|
|
122
|
+
|
|
123
|
+
${playbooks_js_1.CONTENT_READER_HARD_BANS}
|
|
124
|
+
|
|
125
|
+
Check metrics, fields, filters, dashboard context, date ranges, time grains, parameters, sorts, limits, pivots, table calculations, verification, cache timestamps, and semantic-versus-SQL behavior.
|
|
126
|
+
Execute only when needed with equivalent valid context. Separate confirmed, plausible, ruled-out, and unresolved causes.`, 'compare'));
|
|
127
|
+
}
|
|
128
|
+
/* eslint-enable @typescript-eslint/no-deprecated */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Content-reader prompt/playbook invariants.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const vitest_1 = require("vitest");
|
|
7
|
+
const playbooks_js_1 = require("./resources/playbooks.js");
|
|
8
|
+
const index_js_1 = require("./index.js");
|
|
9
|
+
(0, vitest_1.describe)('content-reader prompts/playbook', () => {
|
|
10
|
+
(0, vitest_1.it)('playbook references only registered tool short ids', () => {
|
|
11
|
+
const md = (0, playbooks_js_1.getAllPlaybookMarkdown)();
|
|
12
|
+
for (const id of index_js_1.CONTENT_READER_TOOL_IDS) {
|
|
13
|
+
(0, vitest_1.expect)(md.includes(id) || md.includes(`lightdash_${id}`)).toBe(true);
|
|
14
|
+
}
|
|
15
|
+
(0, vitest_1.expect)(md).not.toMatch(/\bldt__/);
|
|
16
|
+
(0, vitest_1.expect)(md.toLowerCase()).toContain('hard bans');
|
|
17
|
+
(0, vitest_1.expect)(playbooks_js_1.CONTENT_READER_HARD_BANS.toLowerCase()).toContain('sql');
|
|
18
|
+
});
|
|
19
|
+
(0, vitest_1.it)('playbook forbids mutation and arbitrary queries', () => {
|
|
20
|
+
const md = (0, playbooks_js_1.getAllPlaybookMarkdown)().toLowerCase();
|
|
21
|
+
(0, vitest_1.expect)(md).toContain('do not mutate');
|
|
22
|
+
(0, vitest_1.expect)(md).toContain('underlying-data');
|
|
23
|
+
(0, vitest_1.expect)(md).toContain('sql charts');
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Content-reader — compare / investigate
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-reader/compare`
|
|
4
|
+
|
|
5
|
+
Focus phases 3–6 on **diffs** between saved content definitions and (optionally) values.
|
|
6
|
+
|
|
7
|
+
## Phase 3 — Inspect both sides
|
|
8
|
+
|
|
9
|
+
Retrieve metadata first (`get_chart`, `get_dashboard`, `explain_content`, parameter tools). Compare definitions, dimensions, filters, time grains, parameters, verification, and update state before values.
|
|
10
|
+
|
|
11
|
+
## Phase 4 — Decide whether values help
|
|
12
|
+
|
|
13
|
+
Execute only when structurally comparable or when differences are the subject of analysis. Do not assume matching labels mean matching definitions.
|
|
14
|
+
|
|
15
|
+
## Phase 5 — Execute with equivalent context
|
|
16
|
+
|
|
17
|
+
When needed, run with equivalent valid filters/parameters/context (`run_chart` / `run_dashboard_tile`). Check metrics, fields, filters, dashboard context, date ranges, time grains, parameters, sorts, limits, pivots, table calculations, verification, cache timestamps, and semantic-versus-SQL behavior.
|
|
18
|
+
|
|
19
|
+
## Phase 6 — Report causes
|
|
20
|
+
|
|
21
|
+
Separate confirmed, plausible, ruled-out, and unresolved causes. Cite content UUIDs, query UUIDs, truncation, and caveats.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Content-reader core
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-reader/core`
|
|
4
|
+
|
|
5
|
+
## Hard bans
|
|
6
|
+
|
|
7
|
+
- Do not mutate Lightdash resources.
|
|
8
|
+
- Do not execute arbitrary metric queries, raw SQL, or underlying-data queries.
|
|
9
|
+
- Do not download or bulk-export results.
|
|
10
|
+
- Do not execute saved SQL charts (disabled by default).
|
|
11
|
+
- Do not override filter targets, operators, required-filter behavior, fields, metrics, dimensions, SQL, table calculations, or sorts.
|
|
12
|
+
- Do not execute content outside the resolved project.
|
|
13
|
+
- Do not present truncated results as complete.
|
|
14
|
+
- Do not claim metric equivalence from matching labels alone.
|
|
15
|
+
- Do not reveal secrets, warehouse credentials, hidden SQL, or inaccessible content.
|
|
16
|
+
|
|
17
|
+
## Tools
|
|
18
|
+
|
|
19
|
+
Use only these `lightdash_*` tools:
|
|
20
|
+
|
|
21
|
+
- `get_project`
|
|
22
|
+
- `search_content`
|
|
23
|
+
- `list_spaces`
|
|
24
|
+
- `get_space`
|
|
25
|
+
- `get_dashboard`
|
|
26
|
+
- `get_chart`
|
|
27
|
+
- `list_project_parameters`
|
|
28
|
+
- `get_project_parameters`
|
|
29
|
+
- `explain_content`
|
|
30
|
+
- `run_chart`
|
|
31
|
+
- `run_dashboard_tile`
|
|
32
|
+
- `get_query_result`
|
|
33
|
+
- `cancel_query`
|
|
34
|
+
|
|
35
|
+
## Phase 0 — Resolve project
|
|
36
|
+
|
|
37
|
+
1. Call `lightdash_get_project` (pin / `LIGHTDASH_TOOLS_PROJECT_UUID` / explicit UUID).
|
|
38
|
+
2. Record project UUID, pin, and `readerCapabilities`.
|
|
39
|
+
3. Stop when project scope is unresolved (`PROJECT_SCOPE_REQUIRED`).
|
|
40
|
+
4. Never enumerate organization projects.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Content-reader — discover
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-reader/discover`
|
|
4
|
+
|
|
5
|
+
## Phase 1 — Classify intent
|
|
6
|
+
|
|
7
|
+
Classify as find / explain / retrieve value / summarize dashboard / compare / investigate.
|
|
8
|
+
|
|
9
|
+
## Phase 2 — Discover
|
|
10
|
+
|
|
11
|
+
Use `search_content`, `list_spaces`, `get_space`. Prefer verified content when equally relevant.
|
|
12
|
+
|
|
13
|
+
Return at most five candidates with name/type, UUID, space path, verification, relevance, and warnings. Do not execute content unless values or analysis are requested.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Content-reader — explain & run
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-reader/explain-run`
|
|
4
|
+
|
|
5
|
+
## Phase 3 — Inspect metadata
|
|
6
|
+
|
|
7
|
+
Use `get_dashboard`, `get_chart`, parameter tools, `explain_content`. Do not invent unsupported business semantics. Distinguish explicit metadata from inferred business meaning.
|
|
8
|
+
|
|
9
|
+
## Phase 4 — Decide on execution
|
|
10
|
+
|
|
11
|
+
Execute only for values, trends, rankings, summaries, comparisons, or discrepancy validation. Skip execution for discovery/description.
|
|
12
|
+
|
|
13
|
+
## Phase 5 — Execute bounded saved content
|
|
14
|
+
|
|
15
|
+
Use `run_chart` / `run_dashboard_tile` with cache-first defaults, limit 100, values-only overrides. SQL charts return `CONTENT_NOT_EXECUTABLE`. Record query UUID; cancel unnecessary queries via `cancel_query`.
|
|
16
|
+
|
|
17
|
+
## Phase 6 — Interpret and report
|
|
18
|
+
|
|
19
|
+
Report answer, evidence, content UUIDs, filters/parameters, cache/time context, truncation, and caveats. Cite chart/dashboard UUID and query UUID. Do not construct a new query or retrieve underlying data. Do not claim unexecuted tiles support a conclusion.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Content-reader playbooks
|
|
2
|
+
|
|
3
|
+
URI: `lightdash://playbooks/content-reader`
|
|
4
|
+
|
|
5
|
+
Workflow-scoped playbooks (always load **core** plus one topic with a prompt):
|
|
6
|
+
|
|
7
|
+
| Topic | URI |
|
|
8
|
+
| --------------------- | -------------------------------------------------- |
|
|
9
|
+
| Core (gates & bans) | `lightdash://playbooks/content-reader/core` |
|
|
10
|
+
| Discover | `lightdash://playbooks/content-reader/discover` |
|
|
11
|
+
| Explain & run | `lightdash://playbooks/content-reader/explain-run` |
|
|
12
|
+
| Compare / investigate | `lightdash://playbooks/content-reader/compare` |
|
|
13
|
+
|
|
14
|
+
Discover, explain, and execute saved Lightdash charts and dashboards safely within a resolved project.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content-reader multi-playbook resources (core + topics + index).
|
|
3
|
+
*/
|
|
4
|
+
import type { McpServer } from '@modelcontextprotocol/server';
|
|
5
|
+
export type ContentReaderPlaybookTopic = 'compare' | 'discover' | 'explain-run';
|
|
6
|
+
export declare const CONTENT_READER_HARD_BANS: string;
|
|
7
|
+
export declare const getAllPlaybookMarkdown: () => string;
|
|
8
|
+
export declare const CONTENT_READER_CORE_PLAYBOOK: import("../../../lib/playbook-resources.js").EmbeddedPlaybook;
|
|
9
|
+
export declare const CONTENT_READER_TOPIC_PLAYBOOKS: Readonly<Record<ContentReaderPlaybookTopic, import("../../../lib/playbook-resources.js").EmbeddedPlaybook>>;
|
|
10
|
+
export declare function registerContentReaderPlaybook(server: McpServer): void;
|