@transcend-io/mcp-server-dsr 0.3.16 → 0.3.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-CSrIBjNn.mjs","names":[],"sources":["../src/tools/dsr_analyze.ts","../src/tools/dsr_cancel.ts","../src/tools/dsr_download_keys.ts","../src/tools/dsr_enrich_identifiers.ts","../src/tools/dsr_get_details.ts","../src/tools/dsr_list.ts","../src/tools/dsr_list_identifiers.ts","../src/tools/dsr_poll_status.ts","../src/tools/dsr_respond_access.ts","../src/tools/dsr_respond_erasure.ts","../src/tools/dsr_submit.ts","../src/tools/dsr_submit_on_behalf.ts","../src/tools/index.ts","../src/graphql.ts"],"sourcesContent":["import {\n createToolResult,\n defineTool,\n groupBy,\n type ToolClients,\n z,\n} from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const analyzeDsrSchema = z.object({\n days: z.coerce\n .number()\n .optional()\n .describe(\n 'Filter analysis to requests within N days (default: 30). Only analyzes from the 100 most recent requests.',\n ),\n});\nexport type AnalyzeDsrInput = z.infer<typeof analyzeDsrSchema>;\n\nexport function createDsrAnalyzeTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_analyze',\n description:\n 'Summarize the 100 most recent DSRs: counts by type and status, completion rate, and a configurable recent-days window (default 30). For full-fleet analytics, page through dsr_list and aggregate yourself.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: analyzeDsrSchema,\n handler: async ({ days }) => {\n const result = await graphql.listRequests({ first: 100 });\n const requests = result.nodes;\n const periodDays = days ?? 30;\n const cutoffDate = new Date(Date.now() - periodDays * 24 * 60 * 60 * 1000);\n\n const recentRequests = requests.filter((r) => new Date(r.createdAt) > cutoffDate);\n const completedRequests = requests.filter((r) => r.status === 'COMPLETED');\n const pendingRequests = requests.filter((r) =>\n [\n 'REQUEST_MADE',\n 'ENRICHING',\n 'ON_HOLD',\n 'WAITING',\n 'COMPILING',\n 'APPROVING',\n 'DELAYED',\n 'SECONDARY',\n 'SECONDARY_APPROVING',\n ].includes(r.status),\n );\n\n return createToolResult(true, {\n summary: {\n analyzedRequests: requests.length,\n totalRequestsInSystem: result.totalCount,\n recentRequests: recentRequests.length,\n completedRequests: completedRequests.length,\n pendingRequests: pendingRequests.length,\n completionRate:\n requests.length > 0\n ? Math.round((completedRequests.length / requests.length) * 100)\n : 0,\n },\n breakdown: {\n byType: groupBy(requests, 'type'),\n byStatus: groupBy(requests, 'status'),\n recentByType: groupBy(recentRequests, 'type'),\n recentByStatus: groupBy(recentRequests, 'status'),\n },\n period: {\n days: periodDays,\n startDate: cutoffDate.toISOString(),\n endDate: new Date().toISOString(),\n },\n limitation:\n (result.totalCount || 0) > 100\n ? `This analysis is based on the 100 most recent requests out of ${result.totalCount} total. For complete analysis, use dsr_list with pagination to fetch all requests.`\n : undefined,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const cancelDsrSchema = z.object({\n request_id: z.string().describe('ID of the DSR to cancel'),\n reason: z.string().optional().describe('Reason for cancellation (optional)'),\n});\nexport type CancelDsrInput = z.infer<typeof cancelDsrSchema>;\n\nexport function createDsrCancelTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_cancel',\n description: 'Cancel a Data Subject Request',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Cancels the specified request permanently',\n annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false },\n zodSchema: cancelDsrSchema,\n handler: async ({ request_id, reason }) => {\n const input: { requestId: string; template?: string; subject?: string } = {\n requestId: request_id,\n };\n if (reason) {\n input.subject = reason;\n }\n const result = await graphql.cancelRequest(input);\n return createToolResult(true, {\n request: result.request,\n message: 'DSR canceled successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const downloadKeysSchema = z.object({\n request_id: z.string().describe('ID of the completed DSR'),\n});\nexport type DownloadKeysInput = z.infer<typeof downloadKeysSchema>;\n\nexport function createDsrDownloadKeysTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_download_keys',\n description:\n 'Get download keys for a completed Data Subject Request. These keys can be used to download the DSR results.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: downloadKeysSchema,\n handler: async ({ request_id }) => {\n const keys = await rest.getDSRDownloadKeys(request_id);\n return createToolResult(true, {\n downloadKeys: keys,\n count: keys.length,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const enrichIdentifiersSchema = z.object({\n request_id: z.string().describe('ID of the DSR to enrich'),\n identifiers: z\n .record(z.string(), z.string())\n .describe('Key-value pairs of identifier names and values to add'),\n});\nexport type EnrichIdentifiersInput = z.infer<typeof enrichIdentifiersSchema>;\n\nexport function createDsrEnrichIdentifiersTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_enrich_identifiers',\n description:\n 'Enrich a Data Subject Request with additional identifiers during preflight processing',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Adds identifiers to the DSR during preflight',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: enrichIdentifiersSchema,\n handler: async ({ request_id, identifiers }) => {\n const result = await rest.enrichIdentifiers({\n requestId: request_id,\n identifiers,\n });\n return createToolResult(true, {\n ...result,\n message: 'Identifiers enriched successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const getDetailsSchema = z.object({\n request_id: z.string().describe('ID of the DSR to retrieve'),\n});\nexport type GetDetailsInput = z.infer<typeof getDetailsSchema>;\n\nexport function createDsrGetDetailsTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_get_details',\n description: 'Get detailed information about a specific Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: getDetailsSchema,\n handler: async ({ request_id }) => {\n const result = await graphql.getRequest(request_id);\n return createToolResult(true, result);\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n type ToolClients,\n} from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport function createDsrListTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_list',\n description:\n 'List all Data Subject Requests. Use cursor pagination to retrieve all results (max 100 per page). Note: Server-side date filtering is not available - filter results client-side if needed.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: PaginationSchema,\n handler: async ({ limit, cursor }) => {\n const result = await graphql.listRequests({\n first: limit,\n after: cursor,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n cursor: result.pageInfo?.endCursor,\n paginationNote: result.pageInfo?.hasNextPage\n ? 'More results available. Pass the cursor value to fetch the next page.'\n : 'No more results.',\n });\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n type ToolClients,\n z,\n} from '@transcend-io/mcp-server-base';\n\nexport const listIdentifiersSchema = z\n .object({\n request_id: z.string().describe('ID of the DSR'),\n })\n .merge(PaginationSchema);\nexport type ListIdentifiersInput = z.infer<typeof listIdentifiersSchema>;\n\nexport function createDsrListIdentifiersTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_list_identifiers',\n description: 'List all identifiers attached to a Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: listIdentifiersSchema,\n handler: async ({ request_id }) => {\n const identifiers = await rest.listRequestIdentifiers(request_id);\n return createListResult(identifiers);\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const pollStatusSchema = z.object({\n request_id: z.string().describe('ID of the DSR to check'),\n});\nexport type PollStatusInput = z.infer<typeof pollStatusSchema>;\n\nexport function createDsrPollStatusTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_poll_status',\n description: 'Poll the current status of a Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: pollStatusSchema,\n handler: async ({ request_id }) => {\n const result = await rest.getDSRStatus(request_id);\n return createToolResult(true, result);\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const respondAccessSchema = z.object({\n request_id: z.string().describe('ID of the DSR'),\n data_silo_id: z.string().describe('ID of the data silo responding'),\n profiles: z\n .array(z.record(z.string(), z.unknown()))\n .optional()\n .describe('Array of profile data objects to return'),\n});\nexport type RespondAccessInput = z.infer<typeof respondAccessSchema>;\n\nexport function createDsrRespondAccessTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_respond_access',\n description: 'Respond to an ACCESS request by uploading user data',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Uploads access response data for the DSR',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: respondAccessSchema,\n handler: async ({ request_id, data_silo_id, profiles }) => {\n const result = await rest.respondToAccess({\n requestId: request_id,\n dataSiloId: data_silo_id,\n profiles: profiles as Record<string, unknown>[] | undefined,\n });\n return createToolResult(true, {\n ...result,\n message: 'Access response submitted successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const respondErasureSchema = z.object({\n request_id: z.string().describe('ID of the DSR'),\n data_silo_id: z.string().describe('ID of the data silo that completed erasure'),\n profile_ids: z\n .array(z.string())\n .optional()\n .describe('IDs of profiles that were erased (optional)'),\n});\nexport type RespondErasureInput = z.infer<typeof respondErasureSchema>;\n\nexport function createDsrRespondErasureTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_respond_erasure',\n description: 'Confirm that data erasure has been completed for a data silo',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Confirms erasure completion for the data silo',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },\n zodSchema: respondErasureSchema,\n handler: async ({ request_id, data_silo_id, profile_ids }) => {\n const result = await rest.confirmErasure({\n requestId: request_id,\n dataSiloId: data_silo_id,\n profileIds: profile_ids,\n });\n return createToolResult(true, {\n ...result,\n message: 'Erasure confirmation submitted successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\nimport { RequestAction } from '@transcend-io/privacy-types';\n\nexport const submitDsrSchema = z.object({\n type: z.nativeEnum(RequestAction).describe('Type of DSR request'),\n email: z.string().describe('Email address of the data subject'),\n subjectType: z\n .string()\n .describe(\n 'Type of data subject (e.g., customer, employee, prospect). Required by the Transcend API.',\n ),\n coreIdentifier: z\n .string()\n .optional()\n .describe('Core identifier for the data subject (defaults to email if not provided)'),\n name: z.string().optional().describe('Name of the data subject (optional)'),\n locale: z.string().optional().describe('Locale for communications (e.g., en-US)'),\n isSilent: z.boolean().optional().describe('Whether to suppress email notifications'),\n});\nexport type SubmitDsrInput = z.infer<typeof submitDsrSchema>;\n\nexport function createDsrSubmitTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_submit',\n description:\n 'Submit a Data Subject Request as the data subject (public DSR API; e.g. Privacy Center flow). Supports ACCESS, ERASURE, RECTIFICATION, etc. coreIdentifier defaults to email. Use dsr_submit_on_behalf when an admin is filing on behalf of a data subject.',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Creates a new data subject request',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: submitDsrSchema,\n handler: async ({ type, email, subjectType, coreIdentifier, name, locale, isSilent }) => {\n const result = await rest.submitDSR({\n type,\n email,\n subjectType,\n coreIdentifier,\n name,\n locale,\n isSilent,\n });\n return createToolResult(true, {\n request: result,\n message: `DSR of type ${type} submitted successfully`,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\nimport { RequestAction } from '@transcend-io/privacy-types';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const submitDsrOnBehalfSchema = z.object({\n type: z.nativeEnum(RequestAction).describe('Type of DSR request'),\n email: z.string().describe('Email address of the data subject'),\n subjectType: z\n .string()\n .describe('Type of data subject (e.g., customer, employee). Required by the Transcend API.'),\n coreIdentifier: z.string().optional().describe('Core identifier for the data subject (optional)'),\n locale: z.string().optional().describe('Locale for communications (e.g., en-US)'),\n isSilent: z.boolean().optional().describe('Whether to suppress email notifications'),\n});\nexport type SubmitDsrOnBehalfInput = z.infer<typeof submitDsrOnBehalfSchema>;\n\nexport function createDsrSubmitOnBehalfTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_submit_on_behalf',\n description:\n 'Submit a Data Subject Request as an admin on behalf of a data subject (admin-dashboard flow). Use dsr_submit when the data subject is submitting their own.',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Creates a new data subject request on behalf of a data subject',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: submitDsrOnBehalfSchema,\n handler: async ({ type, email, subjectType, coreIdentifier, locale, isSilent }) => {\n const result = await graphql.employeeMakeDataSubjectRequest({\n type,\n email,\n subjectType,\n coreIdentifier,\n locale,\n isSilent,\n });\n return createToolResult(true, {\n request: result.request,\n clientMutationId: result.clientMutationId,\n message: `DSR of type ${type} submitted on behalf of data subject`,\n });\n },\n });\n}\n","import type { ToolDefinition, ToolClients } from '@transcend-io/mcp-server-base';\n\nimport { createDsrAnalyzeTool } from './dsr_analyze.js';\nimport { createDsrCancelTool } from './dsr_cancel.js';\nimport { createDsrDownloadKeysTool } from './dsr_download_keys.js';\nimport { createDsrEnrichIdentifiersTool } from './dsr_enrich_identifiers.js';\nimport { createDsrGetDetailsTool } from './dsr_get_details.js';\nimport { createDsrListTool } from './dsr_list.js';\nimport { createDsrListIdentifiersTool } from './dsr_list_identifiers.js';\nimport { createDsrPollStatusTool } from './dsr_poll_status.js';\nimport { createDsrRespondAccessTool } from './dsr_respond_access.js';\nimport { createDsrRespondErasureTool } from './dsr_respond_erasure.js';\nimport { createDsrSubmitTool } from './dsr_submit.js';\nimport { createDsrSubmitOnBehalfTool } from './dsr_submit_on_behalf.js';\n\nexport function getDSRTools(clients: ToolClients): ToolDefinition[] {\n return [\n createDsrSubmitTool(clients),\n createDsrPollStatusTool(clients),\n createDsrListTool(clients),\n createDsrGetDetailsTool(clients),\n createDsrDownloadKeysTool(clients),\n createDsrListIdentifiersTool(clients),\n createDsrEnrichIdentifiersTool(clients),\n createDsrRespondAccessTool(clients),\n createDsrRespondErasureTool(clients),\n createDsrCancelTool(clients),\n createDsrSubmitOnBehalfTool(clients),\n createDsrAnalyzeTool(clients),\n ];\n}\n","import {\n TranscendGraphQLBase,\n type ListOptions,\n type PaginatedResponse,\n type Request,\n type RequestDetails,\n type RequestType,\n} from '@transcend-io/mcp-server-base';\n\nexport class DSRMixin extends TranscendGraphQLBase {\n async listRequests(options?: ListOptions): Promise<PaginatedResponse<Request>> {\n const query = `\n query ListRequests($first: Int, $after: String) {\n requests(first: $first, after: $after) {\n nodes {\n id\n type\n status\n createdAt\n updatedAt\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n totalCount\n }\n }\n `;\n const data = await this.makeRequest<{ requests: PaginatedResponse<Request> }>(query, {\n first: Math.min(options?.first || 50, 100),\n after: options?.after,\n });\n return data.requests;\n }\n\n async getRequest(id: string): Promise<RequestDetails> {\n const query = `\n query GetRequest($id: ID!) {\n request(id: $id) {\n id\n type\n status\n createdAt\n updatedAt\n daysRemaining\n link\n locale\n isSilent\n }\n }\n `;\n const data = await this.makeRequest<{ request: RequestDetails }>(query, { id });\n return data.request;\n }\n\n async employeeMakeDataSubjectRequest(input: {\n type: RequestType;\n email: string;\n coreIdentifier?: string;\n locale?: string;\n isSilent?: boolean;\n subjectType: string;\n attributes?: Record<string, unknown>;\n clientMutationId?: string;\n }): Promise<{ request: Request; clientMutationId?: string }> {\n const mutation = `\n mutation EmployeeMakeDataSubjectRequest($input: EmployeeRequestInput!) {\n employeeMakeDataSubjectRequest(input: $input) {\n clientMutationId\n request {\n id\n type\n status\n createdAt\n updatedAt\n }\n }\n }\n `;\n const data = await this.makeRequest<{\n employeeMakeDataSubjectRequest: { request: Request; clientMutationId?: string };\n }>(mutation, { input });\n return data.employeeMakeDataSubjectRequest;\n }\n\n async cancelRequest(input: {\n requestId: string;\n template?: string;\n subject?: string;\n }): Promise<{ request: Request; clientMutationId?: string }> {\n const mutation = `\n mutation CancelRequest($input: CommunicationInput!) {\n cancelRequest(input: $input) {\n clientMutationId\n request {\n id\n type\n status\n createdAt\n updatedAt\n }\n }\n }\n `;\n const data = await this.makeRequest<{\n cancelRequest: { request: Request; clientMutationId?: string };\n }>(mutation, { input });\n return data.cancelRequest;\n }\n}\n"],"mappings":";;;AAUA,MAAa,mBAAmB,EAAE,OAAO,EACvC,MAAM,EAAE,OACL,QAAQ,CACR,UAAU,CACV,SACC,4GACD,EACJ,CAAC;AAGF,SAAgB,qBAAqB,SAAsB;CACzD,MAAM,UAAU,QAAQ;AAExB,QAAO,WAAW;EAChB,MAAM;EACN,aACE;EACF,UAAU;EACV,UAAU;EACV,aAAa;GAAE,cAAc;GAAM,iBAAiB;GAAO,gBAAgB;GAAM;EACj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Q;EAC5B,4BAA4B,QAAQ;EACpC,qBAAqB,QAAQ;EAC9B;;;;ACpBH,IAAa,WAAb,cAA8B,qBAAqB;CACjD,MAAM,aAAa,SAA4D;AAuB7E,UAJa,MAAM,KAAK,YAlBV;;;;;;;;;;;;;;;;;OAkBuE;GACnF,OAAO,KAAK,IAAI,SAAS,SAAS,IAAI,IAAI;GAC1C,OAAO,SAAS;GACjB,CAAC,EACU;;CAGd,MAAM,WAAW,IAAqC;AAiBpD,UADa,MAAM,KAAK,YAfV;;;;;;;;;;;;;;OAe0D,EAAE,IAAI,CAAC,EACnE;;CAGd,MAAM,+BAA+B,OASwB;AAkB3D,UAHa,MAAM,KAAK,YAdP;;;;;;;;;;;;;OAgBJ,EAAE,OAAO,CAAC,EACX;;CAGd,MAAM,cAAc,OAIyC;AAkB3D,UAHa,MAAM,KAAK,YAdP;;;;;;;;;;;;;OAgBJ,EAAE,OAAO,CAAC,EACX"}
1
+ {"version":3,"file":"graphql-CSrIBjNn.mjs","names":[],"sources":["../src/tools/dsr_analyze.ts","../src/tools/dsr_cancel.ts","../src/tools/dsr_download_keys.ts","../src/tools/dsr_enrich_identifiers.ts","../src/tools/dsr_get_details.ts","../src/tools/dsr_list.ts","../src/tools/dsr_list_identifiers.ts","../src/tools/dsr_poll_status.ts","../src/tools/dsr_respond_access.ts","../src/tools/dsr_respond_erasure.ts","../src/tools/dsr_submit.ts","../src/tools/dsr_submit_on_behalf.ts","../src/tools/index.ts","../src/graphql.ts"],"sourcesContent":["import {\n createToolResult,\n defineTool,\n groupBy,\n type ToolClients,\n z,\n} from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const analyzeDsrSchema = z.object({\n days: z.coerce\n .number()\n .optional()\n .describe(\n 'Filter analysis to requests within N days (default: 30). Only analyzes from the 100 most recent requests.',\n ),\n});\nexport type AnalyzeDsrInput = z.infer<typeof analyzeDsrSchema>;\n\nexport function createDsrAnalyzeTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_analyze',\n description:\n 'Summarize the 100 most recent DSRs: counts by type and status, completion rate, and a configurable recent-days window (default 30). For full-fleet analytics, page through dsr_list and aggregate yourself.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: analyzeDsrSchema,\n handler: async ({ days }) => {\n const result = await graphql.listRequests({ first: 100 });\n const requests = result.nodes;\n const periodDays = days ?? 30;\n const cutoffDate = new Date(Date.now() - periodDays * 24 * 60 * 60 * 1000);\n\n const recentRequests = requests.filter((r) => new Date(r.createdAt) > cutoffDate);\n const completedRequests = requests.filter((r) => r.status === 'COMPLETED');\n const pendingRequests = requests.filter((r) =>\n [\n 'REQUEST_MADE',\n 'ENRICHING',\n 'ON_HOLD',\n 'WAITING',\n 'COMPILING',\n 'APPROVING',\n 'DELAYED',\n 'SECONDARY',\n 'SECONDARY_APPROVING',\n ].includes(r.status),\n );\n\n return createToolResult(true, {\n summary: {\n analyzedRequests: requests.length,\n totalRequestsInSystem: result.totalCount,\n recentRequests: recentRequests.length,\n completedRequests: completedRequests.length,\n pendingRequests: pendingRequests.length,\n completionRate:\n requests.length > 0\n ? Math.round((completedRequests.length / requests.length) * 100)\n : 0,\n },\n breakdown: {\n byType: groupBy(requests, 'type'),\n byStatus: groupBy(requests, 'status'),\n recentByType: groupBy(recentRequests, 'type'),\n recentByStatus: groupBy(recentRequests, 'status'),\n },\n period: {\n days: periodDays,\n startDate: cutoffDate.toISOString(),\n endDate: new Date().toISOString(),\n },\n limitation:\n (result.totalCount || 0) > 100\n ? `This analysis is based on the 100 most recent requests out of ${result.totalCount} total. For complete analysis, use dsr_list with pagination to fetch all requests.`\n : undefined,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const cancelDsrSchema = z.object({\n request_id: z.string().describe('ID of the DSR to cancel'),\n reason: z.string().optional().describe('Reason for cancellation (optional)'),\n});\nexport type CancelDsrInput = z.infer<typeof cancelDsrSchema>;\n\nexport function createDsrCancelTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_cancel',\n description: 'Cancel a Data Subject Request',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Cancels the specified request permanently',\n annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false },\n zodSchema: cancelDsrSchema,\n handler: async ({ request_id, reason }) => {\n const input: { requestId: string; template?: string; subject?: string } = {\n requestId: request_id,\n };\n if (reason) {\n input.subject = reason;\n }\n const result = await graphql.cancelRequest(input);\n return createToolResult(true, {\n request: result.request,\n message: 'DSR canceled successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const downloadKeysSchema = z.object({\n request_id: z.string().describe('ID of the completed DSR'),\n});\nexport type DownloadKeysInput = z.infer<typeof downloadKeysSchema>;\n\nexport function createDsrDownloadKeysTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_download_keys',\n description:\n 'Get download keys for a completed Data Subject Request. These keys can be used to download the DSR results.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: downloadKeysSchema,\n handler: async ({ request_id }) => {\n const keys = await rest.getDSRDownloadKeys(request_id);\n return createToolResult(true, {\n downloadKeys: keys,\n count: keys.length,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const enrichIdentifiersSchema = z.object({\n request_id: z.string().describe('ID of the DSR to enrich'),\n identifiers: z\n .record(z.string(), z.string())\n .describe('Key-value pairs of identifier names and values to add'),\n});\nexport type EnrichIdentifiersInput = z.infer<typeof enrichIdentifiersSchema>;\n\nexport function createDsrEnrichIdentifiersTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_enrich_identifiers',\n description:\n 'Enrich a Data Subject Request with additional identifiers during preflight processing',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Adds identifiers to the DSR during preflight',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: enrichIdentifiersSchema,\n handler: async ({ request_id, identifiers }) => {\n const result = await rest.enrichIdentifiers({\n requestId: request_id,\n identifiers,\n });\n return createToolResult(true, {\n ...result,\n message: 'Identifiers enriched successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const getDetailsSchema = z.object({\n request_id: z.string().describe('ID of the DSR to retrieve'),\n});\nexport type GetDetailsInput = z.infer<typeof getDetailsSchema>;\n\nexport function createDsrGetDetailsTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_get_details',\n description: 'Get detailed information about a specific Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: getDetailsSchema,\n handler: async ({ request_id }) => {\n const result = await graphql.getRequest(request_id);\n return createToolResult(true, result);\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n type ToolClients,\n} from '@transcend-io/mcp-server-base';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport function createDsrListTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_list',\n description:\n 'List all Data Subject Requests. Use cursor pagination to retrieve all results (max 100 per page). Note: Server-side date filtering is not available - filter results client-side if needed.',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: PaginationSchema,\n handler: async ({ limit, cursor }) => {\n const result = await graphql.listRequests({\n first: limit,\n after: cursor,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n cursor: result.pageInfo?.endCursor,\n paginationNote: result.pageInfo?.hasNextPage\n ? 'More results available. Pass the cursor value to fetch the next page.'\n : 'No more results.',\n });\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n type ToolClients,\n z,\n} from '@transcend-io/mcp-server-base';\n\nexport const listIdentifiersSchema = z\n .object({\n request_id: z.string().describe('ID of the DSR'),\n })\n .merge(PaginationSchema);\nexport type ListIdentifiersInput = z.infer<typeof listIdentifiersSchema>;\n\nexport function createDsrListIdentifiersTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_list_identifiers',\n description: 'List all identifiers attached to a Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: listIdentifiersSchema,\n handler: async ({ request_id }) => {\n const identifiers = await rest.listRequestIdentifiers(request_id);\n return createListResult(identifiers);\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const pollStatusSchema = z.object({\n request_id: z.string().describe('ID of the DSR to check'),\n});\nexport type PollStatusInput = z.infer<typeof pollStatusSchema>;\n\nexport function createDsrPollStatusTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_poll_status',\n description: 'Poll the current status of a Data Subject Request',\n category: 'DSR Automation',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: pollStatusSchema,\n handler: async ({ request_id }) => {\n const result = await rest.getDSRStatus(request_id);\n return createToolResult(true, result);\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const respondAccessSchema = z.object({\n request_id: z.string().describe('ID of the DSR'),\n data_silo_id: z.string().describe('ID of the data silo responding'),\n profiles: z\n .array(z.record(z.string(), z.unknown()))\n .optional()\n .describe('Array of profile data objects to return'),\n});\nexport type RespondAccessInput = z.infer<typeof respondAccessSchema>;\n\nexport function createDsrRespondAccessTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_respond_access',\n description: 'Respond to an ACCESS request by uploading user data',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Uploads access response data for the DSR',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: respondAccessSchema,\n handler: async ({ request_id, data_silo_id, profiles }) => {\n const result = await rest.respondToAccess({\n requestId: request_id,\n dataSiloId: data_silo_id,\n profiles: profiles as Record<string, unknown>[] | undefined,\n });\n return createToolResult(true, {\n ...result,\n message: 'Access response submitted successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\n\nexport const respondErasureSchema = z.object({\n request_id: z.string().describe('ID of the DSR'),\n data_silo_id: z.string().describe('ID of the data silo that completed erasure'),\n profile_ids: z\n .array(z.string())\n .optional()\n .describe('IDs of profiles that were erased (optional)'),\n});\nexport type RespondErasureInput = z.infer<typeof respondErasureSchema>;\n\nexport function createDsrRespondErasureTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_respond_erasure',\n description: 'Confirm that data erasure has been completed for a data silo',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Confirms erasure completion for the data silo',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },\n zodSchema: respondErasureSchema,\n handler: async ({ request_id, data_silo_id, profile_ids }) => {\n const result = await rest.confirmErasure({\n requestId: request_id,\n dataSiloId: data_silo_id,\n profileIds: profile_ids,\n });\n return createToolResult(true, {\n ...result,\n message: 'Erasure confirmation submitted successfully',\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\nimport { RequestAction } from '@transcend-io/privacy-types';\n\nexport const submitDsrSchema = z.object({\n type: z.nativeEnum(RequestAction).describe('Type of DSR request'),\n email: z.string().describe('Email address of the data subject'),\n subjectType: z\n .string()\n .describe(\n 'Type of data subject (e.g., customer, employee, prospect). Required by the Transcend API.',\n ),\n coreIdentifier: z\n .string()\n .optional()\n .describe('Core identifier for the data subject (defaults to email if not provided)'),\n name: z.string().optional().describe('Name of the data subject (optional)'),\n locale: z.string().optional().describe('Locale for communications (e.g., en-US)'),\n isSilent: z.boolean().optional().describe('Whether to suppress email notifications'),\n});\nexport type SubmitDsrInput = z.infer<typeof submitDsrSchema>;\n\nexport function createDsrSubmitTool(clients: ToolClients) {\n const { rest } = clients;\n\n return defineTool({\n name: 'dsr_submit',\n description:\n 'Submit a Data Subject Request as the data subject (public DSR API; e.g. Privacy Center flow). Supports ACCESS, ERASURE, RECTIFICATION, etc. coreIdentifier defaults to email. Use dsr_submit_on_behalf when an admin is filing on behalf of a data subject.',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Creates a new data subject request',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: submitDsrSchema,\n handler: async ({ type, email, subjectType, coreIdentifier, name, locale, isSilent }) => {\n const result = await rest.submitDSR({\n type,\n email,\n subjectType,\n coreIdentifier,\n name,\n locale,\n isSilent,\n });\n return createToolResult(true, {\n request: result,\n message: `DSR of type ${type} submitted successfully`,\n });\n },\n });\n}\n","import { createToolResult, defineTool, type ToolClients, z } from '@transcend-io/mcp-server-base';\nimport { RequestAction } from '@transcend-io/privacy-types';\n\nimport type { DSRMixin } from '../graphql.js';\n\nexport const submitDsrOnBehalfSchema = z.object({\n type: z.nativeEnum(RequestAction).describe('Type of DSR request'),\n email: z.string().describe('Email address of the data subject'),\n subjectType: z\n .string()\n .describe('Type of data subject (e.g., customer, employee). Required by the Transcend API.'),\n coreIdentifier: z.string().optional().describe('Core identifier for the data subject (optional)'),\n locale: z.string().optional().describe('Locale for communications (e.g., en-US)'),\n isSilent: z.boolean().optional().describe('Whether to suppress email notifications'),\n});\nexport type SubmitDsrOnBehalfInput = z.infer<typeof submitDsrOnBehalfSchema>;\n\nexport function createDsrSubmitOnBehalfTool(clients: ToolClients) {\n const graphql = clients.graphql as DSRMixin;\n\n return defineTool({\n name: 'dsr_submit_on_behalf',\n description:\n 'Submit a Data Subject Request as an admin on behalf of a data subject (admin-dashboard flow). Use dsr_submit when the data subject is submitting their own.',\n category: 'DSR Automation',\n readOnly: false,\n confirmationHint: 'Creates a new data subject request on behalf of a data subject',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },\n zodSchema: submitDsrOnBehalfSchema,\n handler: async ({ type, email, subjectType, coreIdentifier, locale, isSilent }) => {\n const result = await graphql.employeeMakeDataSubjectRequest({\n type,\n email,\n subjectType,\n coreIdentifier,\n locale,\n isSilent,\n });\n return createToolResult(true, {\n request: result.request,\n clientMutationId: result.clientMutationId,\n message: `DSR of type ${type} submitted on behalf of data subject`,\n });\n },\n });\n}\n","import type { ToolDefinition, ToolClients } from '@transcend-io/mcp-server-base';\n\nimport { createDsrAnalyzeTool } from './dsr_analyze.js';\nimport { createDsrCancelTool } from './dsr_cancel.js';\nimport { createDsrDownloadKeysTool } from './dsr_download_keys.js';\nimport { createDsrEnrichIdentifiersTool } from './dsr_enrich_identifiers.js';\nimport { createDsrGetDetailsTool } from './dsr_get_details.js';\nimport { createDsrListTool } from './dsr_list.js';\nimport { createDsrListIdentifiersTool } from './dsr_list_identifiers.js';\nimport { createDsrPollStatusTool } from './dsr_poll_status.js';\nimport { createDsrRespondAccessTool } from './dsr_respond_access.js';\nimport { createDsrRespondErasureTool } from './dsr_respond_erasure.js';\nimport { createDsrSubmitTool } from './dsr_submit.js';\nimport { createDsrSubmitOnBehalfTool } from './dsr_submit_on_behalf.js';\n\nexport function getDSRTools(clients: ToolClients): ToolDefinition[] {\n return [\n createDsrSubmitTool(clients),\n createDsrPollStatusTool(clients),\n createDsrListTool(clients),\n createDsrGetDetailsTool(clients),\n createDsrDownloadKeysTool(clients),\n createDsrListIdentifiersTool(clients),\n createDsrEnrichIdentifiersTool(clients),\n createDsrRespondAccessTool(clients),\n createDsrRespondErasureTool(clients),\n createDsrCancelTool(clients),\n createDsrSubmitOnBehalfTool(clients),\n createDsrAnalyzeTool(clients),\n ];\n}\n","import {\n TranscendGraphQLBase,\n type ListOptions,\n type PaginatedResponse,\n type Request,\n type RequestDetails,\n type RequestType,\n} from '@transcend-io/mcp-server-base';\n\nexport class DSRMixin extends TranscendGraphQLBase {\n async listRequests(options?: ListOptions): Promise<PaginatedResponse<Request>> {\n const query = `\n query ListRequests($first: Int, $after: String) {\n requests(first: $first, after: $after) {\n nodes {\n id\n type\n status\n createdAt\n updatedAt\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n totalCount\n }\n }\n `;\n const data = await this.makeRequest<{ requests: PaginatedResponse<Request> }>(query, {\n first: Math.min(options?.first || 50, 100),\n after: options?.after,\n });\n return data.requests;\n }\n\n async getRequest(id: string): Promise<RequestDetails> {\n const query = `\n query GetRequest($id: ID!) {\n request(id: $id) {\n id\n type\n status\n createdAt\n updatedAt\n daysRemaining\n link\n locale\n isSilent\n }\n }\n `;\n const data = await this.makeRequest<{ request: RequestDetails }>(query, { id });\n return data.request;\n }\n\n async employeeMakeDataSubjectRequest(input: {\n type: RequestType;\n email: string;\n coreIdentifier?: string;\n locale?: string;\n isSilent?: boolean;\n subjectType: string;\n attributes?: Record<string, unknown>;\n clientMutationId?: string;\n }): Promise<{ request: Request; clientMutationId?: string }> {\n const mutation = `\n mutation EmployeeMakeDataSubjectRequest($input: EmployeeRequestInput!) {\n employeeMakeDataSubjectRequest(input: $input) {\n clientMutationId\n request {\n id\n type\n status\n createdAt\n updatedAt\n }\n }\n }\n `;\n const data = await this.makeRequest<{\n employeeMakeDataSubjectRequest: { request: Request; clientMutationId?: string };\n }>(mutation, { input });\n return data.employeeMakeDataSubjectRequest;\n }\n\n async cancelRequest(input: {\n requestId: string;\n template?: string;\n subject?: string;\n }): Promise<{ request: Request; clientMutationId?: string }> {\n const mutation = `\n mutation CancelRequest($input: CommunicationInput!) {\n cancelRequest(input: $input) {\n clientMutationId\n request {\n id\n type\n status\n createdAt\n updatedAt\n }\n }\n }\n `;\n const data = await this.makeRequest<{\n cancelRequest: { request: Request; clientMutationId?: string };\n }>(mutation, { input });\n return data.cancelRequest;\n }\n}\n"],"mappings":";;;AAUA,MAAa,mBAAmB,EAAE,OAAO,EACvC,MAAM,EAAE,OACL,QAAQ,CACR,UAAU,CACV,SACC,4GACD,EACJ,CAAC;AAGF,SAAgB,qBAAqB,SAAsB;CACzD,MAAM,UAAU,QAAQ;AAExB,QAAO,WAAW;EAChB,MAAM;EACN,aACE;EACF,UAAU;EACV,UAAU;EACV,aAAa;GAAE,cAAc;GAAM,iBAAiB;GAAO,gBAAgB;GAAM;EACjF,WAAW;EACX,SAAS,OAAO,EAAE,WAAW;GAC3B,MAAM,SAAS,MAAM,QAAQ,aAAa,EAAE,OAAO,KAAK,CAAC;GACzD,MAAM,WAAW,OAAO;GACxB,MAAM,aAAa,QAAQ;GAC3B,MAAM,6BAAa,IAAI,KAAK,KAAK,KAAK,GAAG,aAAa,KAAK,KAAK,KAAK,IAAK;GAE1E,MAAM,iBAAiB,SAAS,QAAQ,MAAM,IAAI,KAAK,EAAE,UAAU,GAAG,WAAW;GACjF,MAAM,oBAAoB,SAAS,QAAQ,MAAM,EAAE,WAAW,YAAY;GAC1E,MAAM,kBAAkB,SAAS,QAAQ,MACvC;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD,CAAC,SAAS,EAAE,OAAO,CACrB;AAED,UAAO,iBAAiB,MAAM;IAC5B,SAAS;KACP,kBAAkB,SAAS;KAC3B,uBAAuB,OAAO;KAC9B,gBAAgB,eAAe;KAC/B,mBAAmB,kBAAkB;KACrC,iBAAiB,gBAAgB;KACjC,gBACE,SAAS,SAAS,IACd,KAAK,MAAO,kBAAkB,SAAS,SAAS,SAAU,IAAI,GAC9D;KACP;IACD,WAAW;KACT,QAAQ,QAAQ,UAAU,OAAO;KACjC,UAAU,QAAQ,UAAU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jF,MAAM,SAAS,MAAM,QAAQ,+BAA+B;IAC1D;IACA;IACA;IACA;IACA;IACA;IACD,CAAC;AACF,UAAO,iBAAiB,MAAM;IAC5B,SAAS,OAAO;IAChB,kBAAkB,OAAO;IACzB,SAAS,eAAe,KAAK;IAC9B,CAAC;;EAEL,CAAC;;;;AC7BJ,SAAgB,YAAY,SAAwC;AAClE,QAAO;EACL,oBAAoB,QAAQ;EAC5B,wBAAwB,QAAQ;EAChC,kBAAkB,QAAQ;EAC1B,wBAAwB,QAAQ;EAChC,0BAA0B,QAAQ;EAClC,6BAA6B,QAAQ;EACrC,+BAA+B,QAAQ;EACvC,2BAA2B,QAAQ;EACnC,4BAA4B,QAAQ;EACpC,oBAAoB,QAAQ;EAC5B,4BAA4B,QAAQ;EACpC,qBAAqB,QAAQ;EAC9B;;;;ACpBH,IAAa,WAAb,cAA8B,qBAAqB;CACjD,MAAM,aAAa,SAA4D;AAuB7E,UAAO,MAJY,KAAK,YAAsD;;;;;;;;;;;;;;;;;OAAO;GACnF,OAAO,KAAK,IAAI,SAAS,SAAS,IAAI,IAAI;GAC1C,OAAO,SAAS;GACjB,CAAC,EACU;;CAGd,MAAM,WAAW,IAAqC;AAiBpD,UAAO,MADY,KAAK,YAAyC;;;;;;;;;;;;;;OAAO,EAAE,IAAI,CAAC,EACnE;;CAGd,MAAM,+BAA+B,OASwB;AAkB3D,UAAO,MAHY,KAAK,YAErB;;;;;;;;;;;;;OAAU,EAAE,OAAO,CAAC,EACX;;CAGd,MAAM,cAAc,OAIyC;AAkB3D,UAAO,MAHY,KAAK,YAErB;;;;;;;;;;;;;OAAU,EAAE,OAAO,CAAC,EACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transcend-io/mcp-server-dsr",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Transcend MCP Server — DSR Automation tools.",
5
5
  "homepage": "https://github.com/transcend-io/tools/tree/main/packages/mcp/mcp-server-dsr",
6
6
  "license": "Apache-2.0",
@@ -32,8 +32,8 @@
32
32
  "dependencies": {
33
33
  "@modelcontextprotocol/sdk": "^1.29.0",
34
34
  "zod": "^4.3.6",
35
- "@transcend-io/mcp-server-base": "0.4.5",
36
- "@transcend-io/privacy-types": "5.2.4"
35
+ "@transcend-io/privacy-types": "5.3.0",
36
+ "@transcend-io/mcp-server-base": "0.4.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@arethetypeswrong/cli": "^0.18.2",