Skip to content

feat(mcp-server-consent): add consent triage filters and cookie occurrences sort - #338

Open
dsklyar wants to merge 3 commits into
mainfrom
danielsklyar/zel-8105-scope-consent_analyze-gaps-for-cookie-and-data-flow-triage
Open

feat(mcp-server-consent): add consent triage filters and cookie occurrences sort#338
dsklyar wants to merge 3 commits into
mainfrom
danielsklyar/zel-8105-scope-consent_analyze-gaps-for-cookie-and-data-flow-triage

Conversation

@dsklyar

@dsklyar dsklyar commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes ZEL-8105. Adds agent-facing triage capabilities to the consent inventory MCP tools, paired with backend monorepo changes (transcend-io/main #46389 cookie occurrences sort).

  • consent_list_data_flows: new unmappedOnly (orphaned/unmapped approved flows via server-side service: "" -> catalogIntegrationName IS NULL), type (DataFlowScope, e.g. CSP), and minOccurrences filters.
  • consent_list_cookies: new minOccurrences filter and occurrences sort (top-traffic cookies).
  • CookieOrderField gains Occurrences in @transcend-io/privacy-types (mirrors the backend cm-types enum add) + schema.graphql snapshot sync.

All changes are thin server-side passthroughs; no client-side filtering/sorting.

Deploy sequencing

  • unmappedOnly (service: "") works against the live backend today.
  • Cookie occurrences sort depends on backend PR #46389 being deployed; it will error at runtime until then.

Note: the consent_get_inventory_stats description update was intentionally left out of this PR (still under discussion).

Test plan

  • pnpm run --dir packages/mcp/mcp-server-consent test (15 passed)
  • typecheck (mcp-server-consent, privacy-types)
  • format + pre-commit/pre-push hooks
  • Verify cookie occurrences sort against a live org after #46389 deploys

Made with Cursor

…rences sort

Adds agent-facing triage capabilities to the consent inventory tools:
- consent_list_data_flows: unmappedOnly (orphaned/unmapped approved flows via
  service=""), type (DataFlowScope, e.g. CSP), and minOccurrences filters
- consent_list_cookies: minOccurrences filter and occurrences sort
- CookieOrderField gains Occurrences (mirrors backend cm-types change)
- Clarify showZeroActivity so default NEEDS_REVIEW totals reconcile with
  consent_get_inventory_stats needReviewCount

Closes ZEL-8105
@linear-code

linear-code Bot commented Jul 23, 2026

Copy link
Copy Markdown

ZEL-8105

@pkg-pr-new

pkg-pr-new Bot commented Jul 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

@transcend-io/airgap.js-types

pnpm add https://pkg.pr.new/@transcend-io/airgap.js-types@338
yarn add https://pkg.pr.new/@transcend-io/airgap.js-types@338.tgz

@transcend-io/cli

pnpm add https://pkg.pr.new/@transcend-io/cli@338
yarn add https://pkg.pr.new/@transcend-io/cli@338.tgz

@transcend-io/design-tokens

pnpm add https://pkg.pr.new/@transcend-io/design-tokens@338
yarn add https://pkg.pr.new/@transcend-io/design-tokens@338.tgz

@transcend-io/internationalization

pnpm add https://pkg.pr.new/@transcend-io/internationalization@338
yarn add https://pkg.pr.new/@transcend-io/internationalization@338.tgz

@transcend-io/privacy-types

pnpm add https://pkg.pr.new/@transcend-io/privacy-types@338
yarn add https://pkg.pr.new/@transcend-io/privacy-types@338.tgz

@transcend-io/sdk

pnpm add https://pkg.pr.new/@transcend-io/sdk@338
yarn add https://pkg.pr.new/@transcend-io/sdk@338.tgz

@transcend-io/type-utils

pnpm add https://pkg.pr.new/@transcend-io/type-utils@338
yarn add https://pkg.pr.new/@transcend-io/type-utils@338.tgz

@transcend-io/utils

pnpm add https://pkg.pr.new/@transcend-io/utils@338
yarn add https://pkg.pr.new/@transcend-io/utils@338.tgz

@transcend-io/mcp

pnpm add https://pkg.pr.new/@transcend-io/mcp@338
yarn add https://pkg.pr.new/@transcend-io/mcp@338.tgz

@transcend-io/mcp-server-admin

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-admin@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-admin@338.tgz

@transcend-io/mcp-server-assessment

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-assessment@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-assessment@338.tgz

@transcend-io/mcp-server-base

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-base@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-base@338.tgz

@transcend-io/mcp-server-consent

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-consent@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-consent@338.tgz

@transcend-io/mcp-server-discovery

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-discovery@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-discovery@338.tgz

@transcend-io/mcp-server-docs

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-docs@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-docs@338.tgz

@transcend-io/mcp-server-dsr

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-dsr@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-dsr@338.tgz

@transcend-io/mcp-server-inventory

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-inventory@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-inventory@338.tgz

@transcend-io/mcp-server-preferences

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-preferences@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-preferences@338.tgz

@transcend-io/mcp-server-workflows

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-workflows@338
yarn add https://pkg.pr.new/@transcend-io/mcp-server-workflows@338.tgz

commit: 5256aa3

@dsklyar dsklyar self-assigned this Jul 24, 2026

@dawson-turechek-transcend dawson-turechek-transcend left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Godzilla Thumb

@dsklyar

dsklyar commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@dawson-turechek-transcend it looks like the mcp-server-consent and mcp-server-preferences never had codegen enabled for mcp tools, will add a separate PR to add that and verify the change here before merging it

Replace the hand-edited CookieOrderField.occurrences entry with an authentic
`pnpm graphql:refresh-schema` snapshot now that the backend change (occurrences
sort) has deployed to staging. Also picks up other schema drift accumulated
since the last refresh; all MCP servers typecheck against the new snapshot.
…-scope-consent_analyze-gaps-for-cookie-and-data-flow-triage

# Conflicts:
#	schema.graphql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants