@transcend-io/mcp-server-workflows 0.5.5 → 0.5.7
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/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/graphql-BLrX1gBY.mjs.map +1 -1
- package/package.json +4 -4
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { createMCPServer, createTranscendRestClient } from "@transcend-io/mcp-se
|
|
|
5
5
|
//#region src/cli.ts
|
|
6
6
|
createMCPServer({
|
|
7
7
|
name: "transcend-mcp-workflows",
|
|
8
|
-
version: "0.5.
|
|
8
|
+
version: "0.5.7",
|
|
9
9
|
oauthScopes: WORKFLOW_OAUTH_SCOPES,
|
|
10
10
|
getTools: getWorkflowTools,
|
|
11
11
|
createClients: ({ auth, sombraUrl, sombraCustomerKey, graphqlUrl, dashboardUrl }) => {
|
package/dist/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":["packageJson.version"],"sources":["../package.json","../src/cli.ts"],"
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":["packageJson.version"],"sources":["../package.json","../src/cli.ts"],"mappings":";;;;;ACQA,gBAAgB;CACd,MAAM;CACGA;CACT,aAAa;CACb,UAAU;CACV,gBAAgB,EAAE,MAAM,WAAW,mBAAmB,YAAY,mBAAmB;EACnF,MAAM,UAAU,IAAI,eAAe,MAAM,WAAW;AACpD,SAAO;GACL,MAAM,0BAA0B,MAAM,SAAS;IAAE;IAAW;IAAmB,CAAC;GAChF;GACA;GACD;;CAEJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-BLrX1gBY.mjs","names":["types.WorkflowsListDocument","types.WorkflowsUpdateConfigDocument","types.WorkflowsReadConfigDocument","types.WorkflowsListTemplatesDocument"],"sources":["../src/tools/workflows_list.ts","../src/tools/workflows_list_email_templates.ts","../src/tools/workflows_update_config.ts","../src/tools/index.ts","../src/scopes.ts","../src/__generated__/graphql.ts","../src/__generated__/gql.ts","../src/graphql.ts"],"sourcesContent":["import {\n createListResult,\n defineTool,\n PaginationSchema,\n z,\n type ToolClients,\n} from '@transcend-io/mcp-server-base';\n\nimport type { WorkflowsMixin } from '../graphql.js';\n\nexport const ListWorkflowsSchema = PaginationSchema.extend({\n cursor: z\n .string()\n .optional()\n .describe('Pagination cursor from previous response (where supported)'),\n});\nexport type ListWorkflowsInput = z.infer<typeof ListWorkflowsSchema>;\n\nexport function createWorkflowsListTool(clients: ToolClients) {\n const graphql = clients.graphql as WorkflowsMixin;\n return defineTool({\n name: 'workflows_list',\n description:\n 'List all workflows configured in your organization. Note: API does not support cursor pagination (max ~100 results).',\n category: 'Workflows',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListWorkflowsSchema,\n handler: async ({ limit, cursor }) => {\n const result = await graphql.listWorkflows({\n first: limit,\n after: cursor,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import {\n createListResult,\n defineTool,\n PaginationSchema,\n z,\n type ToolClients,\n} from '@transcend-io/mcp-server-base';\n\nimport type { WorkflowsMixin } from '../graphql.js';\n\nexport const ListEmailTemplatesSchema = PaginationSchema.extend({\n cursor: z\n .string()\n .optional()\n .describe('Pagination cursor from previous response (where supported)'),\n offset: z.coerce\n .number()\n .min(0)\n .optional()\n .default(0)\n .describe('Number of results to skip (default: 0)'),\n});\nexport type ListEmailTemplatesInput = z.infer<typeof ListEmailTemplatesSchema>;\n\nexport function createWorkflowsListEmailTemplatesTool(clients: ToolClients) {\n const graphql = clients.graphql as WorkflowsMixin;\n return defineTool({\n name: 'workflows_list_email_templates',\n description:\n 'List all email templates used in workflows and communications. Note: API does not support cursor pagination (max ~100 results).',\n category: 'Workflows',\n readOnly: true,\n annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },\n zodSchema: ListEmailTemplatesSchema,\n handler: async ({ limit, offset }) => {\n const result = await graphql.listEmailTemplates({\n first: limit,\n offset,\n });\n\n return createListResult(result.nodes, {\n totalCount: result.totalCount,\n hasNextPage: result.pageInfo?.hasNextPage,\n });\n },\n });\n}\n","import { createToolResult, defineTool, z, type ToolClients } from '@transcend-io/mcp-server-base';\n\nimport type { WorkflowsMixin } from '../graphql.js';\n\nexport const UpdateWorkflowConfigSchema = z.object({\n workflowConfigId: z\n .string()\n .describe('ID of the workflow config to update (use workflows_list to find config IDs)'),\n title: z.string().optional().describe('New title for the workflow'),\n subtitle: z.string().optional().describe('New subtitle for the workflow'),\n description: z.string().optional().describe('New description for the workflow'),\n});\nexport type UpdateWorkflowConfigInput = z.infer<typeof UpdateWorkflowConfigSchema>;\n\nexport function createWorkflowsUpdateConfigTool(clients: ToolClients) {\n const graphql = clients.graphql as WorkflowsMixin;\n return defineTool({\n name: 'workflows_update_config',\n description:\n 'Update the configuration for a workflow. Supported fields: title, subtitle, description. ' +\n \"Note: privacy-center visibility is controlled by the workflow config's visibility tier and \" +\n 'is not editable through this tool.',\n category: 'Workflows',\n readOnly: false,\n confirmationHint: 'Updates the workflow configuration',\n annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },\n zodSchema: UpdateWorkflowConfigSchema,\n handler: async ({ workflowConfigId, title, subtitle, description }) => {\n const updates: {\n title?: string;\n subtitle?: string;\n description?: string;\n } = {};\n\n if (title !== undefined) updates.title = title;\n if (subtitle !== undefined) updates.subtitle = subtitle;\n if (description !== undefined) updates.description = description;\n\n const result = await graphql.updateWorkflowConfig(workflowConfigId, updates);\n\n return createToolResult(true, {\n workflowConfig: result,\n message: 'Workflow configuration updated successfully',\n });\n },\n });\n}\n","import type { ToolDefinition, ToolClients } from '@transcend-io/mcp-server-base';\n\nimport { createWorkflowsListTool } from './workflows_list.js';\nimport { createWorkflowsListEmailTemplatesTool } from './workflows_list_email_templates.js';\nimport { createWorkflowsUpdateConfigTool } from './workflows_update_config.js';\n\nexport function getWorkflowTools(clients: ToolClients): ToolDefinition[] {\n return [\n createWorkflowsListTool(clients),\n createWorkflowsUpdateConfigTool(clients),\n createWorkflowsListEmailTemplatesTool(clients),\n ];\n}\n","import { ScopeName } from '@transcend-io/privacy-types';\n\n/** OAuth scopes required for Workflow MCP tools (offline_access added by base). */\nexport const WORKFLOW_OAUTH_SCOPES = [\n ScopeName.ViewAllActionItems,\n ScopeName.ManageAllActionItems,\n ScopeName.ViewEmailTemplates,\n] as const;\n","/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type CollectDataSubjectRegions =\n | 'COLLECT'\n | 'DO_NOT_COLLECT';\n\nexport type ExpiryTimeInput = {\n region: string;\n value: number;\n};\n\nexport type RequestAction =\n | 'ACCESS'\n | 'AUTOMATED_DECISION_MAKING_OPT_IN'\n | 'AUTOMATED_DECISION_MAKING_OPT_OUT'\n | 'BUSINESS_PURPOSE'\n | 'CONTACT_OPT_IN'\n | 'CONTACT_OPT_OUT'\n | 'CUSTOM_OPT_IN'\n | 'CUSTOM_OPT_OUT'\n | 'ERASURE'\n | 'PLACE_ON_LEGAL_HOLD'\n | 'RECTIFICATION'\n | 'REMOVE_FROM_LEGAL_HOLD'\n | 'RESTRICTION'\n | 'SALE_OPT_IN'\n | 'SALE_OPT_OUT'\n | 'TRACKING_OPT_IN'\n | 'TRACKING_OPT_OUT'\n | 'USE_OF_SENSITIVE_INFORMATION_OPT_IN'\n | 'USE_OF_SENSITIVE_INFORMATION_OPT_OUT';\n\nexport type TemplateType =\n | 'EMAIL'\n | 'TEXT';\n\nexport type UpdateWorkflowConfigInput = {\n actionType?: RequestAction | null | undefined;\n attributeKeyIds?: Array<string | number> | null | undefined;\n collectDataSubjectRegions?: CollectDataSubjectRegions | null | undefined;\n completedSteps?: Array<WorkflowCompletedStepInput> | null | undefined;\n description?: string | null | undefined;\n expiryTime?: Array<ExpiryTimeInput> | null | undefined;\n inputIdentifierIds?: Array<string | number> | null | undefined;\n internalName?: string | null | undefined;\n purposeId?: string | number | null | undefined;\n regionList?: Array<string> | null | undefined;\n subjectId?: string | number | null | undefined;\n subtitle?: string | null | undefined;\n title?: string | null | undefined;\n workflowConfigId: string | number;\n workflowConfigVisibility?: WorkflowConfigVisibility | null | undefined;\n};\n\nexport type WorkflowCompletedStepInput = {\n step: string;\n value: WorkflowStepCompletionState;\n};\n\nexport type WorkflowConfigInput = {\n id: string | number;\n};\n\nexport type WorkflowConfigVisibility =\n | 'DRAFT'\n | 'INTERNAL'\n | 'PUBLISHED';\n\nexport type WorkflowStepCompletionState =\n | 'COMPLETED'\n | 'NOT_COMPLETED';\n\nexport type WorkflowsListQueryVariables = Exact<{\n first?: number | null | undefined;\n}>;\n\n\nexport type WorkflowsListQuery = { workflows: { totalCount: number, nodes: Array<{ id: string, title: { defaultMessage: string } }> } };\n\nexport type WorkflowsUpdateConfigMutationVariables = Exact<{\n input: UpdateWorkflowConfigInput;\n}>;\n\n\nexport type WorkflowsUpdateConfigMutation = { updateWorkflowConfig: { success: boolean } };\n\nexport type WorkflowsReadConfigQueryVariables = Exact<{\n input: WorkflowConfigInput;\n}>;\n\n\nexport type WorkflowsReadConfigQuery = { workflowConfig: { workflowConfig: { id: string, title: { defaultMessage: string }, subtitle: { defaultMessage: string } | null, description: { defaultMessage: string } | null } } };\n\nexport type WorkflowsListTemplatesQueryVariables = Exact<{\n first?: number | null | undefined;\n offset?: number | null | undefined;\n}>;\n\n\nexport type WorkflowsListTemplatesQuery = { templates: { totalCount: number, nodes: Array<{ id: string, title: string, type: TemplateType, isRequired: boolean }> } };\n\n\nexport const WorkflowsListDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkflowsList\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"workflows\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nodes\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultMessage\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalCount\"}}]}}]}}]} as unknown as DocumentNode<WorkflowsListQuery, WorkflowsListQueryVariables>;\nexport const WorkflowsUpdateConfigDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkflowsUpdateConfig\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"UpdateWorkflowConfigInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"updateWorkflowConfig\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"success\"}}]}}]}}]} as unknown as DocumentNode<WorkflowsUpdateConfigMutation, WorkflowsUpdateConfigMutationVariables>;\nexport const WorkflowsReadConfigDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkflowsReadConfig\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkflowConfigInput\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"workflowConfig\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"workflowConfig\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultMessage\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"subtitle\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultMessage\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultMessage\"}}]}}]}}]}}]}}]} as unknown as DocumentNode<WorkflowsReadConfigQuery, WorkflowsReadConfigQueryVariables>;\nexport const WorkflowsListTemplatesDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkflowsListTemplates\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offset\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"templates\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"first\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"offset\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offset\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nodes\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isRequired\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalCount\"}}]}}]}}]} as unknown as DocumentNode<WorkflowsListTemplatesQuery, WorkflowsListTemplatesQueryVariables>;","/* eslint-disable */\nimport * as types from './graphql.js';\nimport type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n query WorkflowsList($first: Int) {\\n workflows(first: $first) {\\n nodes {\\n id\\n title {\\n defaultMessage\\n }\\n }\\n totalCount\\n }\\n }\\n\": typeof types.WorkflowsListDocument,\n \"\\n mutation WorkflowsUpdateConfig($input: UpdateWorkflowConfigInput!) {\\n updateWorkflowConfig(input: $input) {\\n success\\n }\\n }\\n\": typeof types.WorkflowsUpdateConfigDocument,\n \"\\n query WorkflowsReadConfig($input: WorkflowConfigInput!) {\\n workflowConfig(input: $input) {\\n workflowConfig {\\n id\\n title {\\n defaultMessage\\n }\\n subtitle {\\n defaultMessage\\n }\\n description {\\n defaultMessage\\n }\\n }\\n }\\n }\\n\": typeof types.WorkflowsReadConfigDocument,\n \"\\n query WorkflowsListTemplates($first: Int, $offset: Int) {\\n templates(first: $first, offset: $offset) {\\n nodes {\\n id\\n title\\n type\\n isRequired\\n }\\n totalCount\\n }\\n }\\n\": typeof types.WorkflowsListTemplatesDocument,\n};\nconst documents: Documents = {\n \"\\n query WorkflowsList($first: Int) {\\n workflows(first: $first) {\\n nodes {\\n id\\n title {\\n defaultMessage\\n }\\n }\\n totalCount\\n }\\n }\\n\": types.WorkflowsListDocument,\n \"\\n mutation WorkflowsUpdateConfig($input: UpdateWorkflowConfigInput!) {\\n updateWorkflowConfig(input: $input) {\\n success\\n }\\n }\\n\": types.WorkflowsUpdateConfigDocument,\n \"\\n query WorkflowsReadConfig($input: WorkflowConfigInput!) {\\n workflowConfig(input: $input) {\\n workflowConfig {\\n id\\n title {\\n defaultMessage\\n }\\n subtitle {\\n defaultMessage\\n }\\n description {\\n defaultMessage\\n }\\n }\\n }\\n }\\n\": types.WorkflowsReadConfigDocument,\n \"\\n query WorkflowsListTemplates($first: Int, $offset: Int) {\\n templates(first: $first, offset: $offset) {\\n nodes {\\n id\\n title\\n type\\n isRequired\\n }\\n totalCount\\n }\\n }\\n\": types.WorkflowsListTemplatesDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function graphql(source: string): unknown;\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query WorkflowsList($first: Int) {\\n workflows(first: $first) {\\n nodes {\\n id\\n title {\\n defaultMessage\\n }\\n }\\n totalCount\\n }\\n }\\n\"): (typeof documents)[\"\\n query WorkflowsList($first: Int) {\\n workflows(first: $first) {\\n nodes {\\n id\\n title {\\n defaultMessage\\n }\\n }\\n totalCount\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n mutation WorkflowsUpdateConfig($input: UpdateWorkflowConfigInput!) {\\n updateWorkflowConfig(input: $input) {\\n success\\n }\\n }\\n\"): (typeof documents)[\"\\n mutation WorkflowsUpdateConfig($input: UpdateWorkflowConfigInput!) {\\n updateWorkflowConfig(input: $input) {\\n success\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query WorkflowsReadConfig($input: WorkflowConfigInput!) {\\n workflowConfig(input: $input) {\\n workflowConfig {\\n id\\n title {\\n defaultMessage\\n }\\n subtitle {\\n defaultMessage\\n }\\n description {\\n defaultMessage\\n }\\n }\\n }\\n }\\n\"): (typeof documents)[\"\\n query WorkflowsReadConfig($input: WorkflowConfigInput!) {\\n workflowConfig(input: $input) {\\n workflowConfig {\\n id\\n title {\\n defaultMessage\\n }\\n subtitle {\\n defaultMessage\\n }\\n description {\\n defaultMessage\\n }\\n }\\n }\\n }\\n\"];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(source: \"\\n query WorkflowsListTemplates($first: Int, $offset: Int) {\\n templates(first: $first, offset: $offset) {\\n nodes {\\n id\\n title\\n type\\n isRequired\\n }\\n totalCount\\n }\\n }\\n\"): (typeof documents)[\"\\n query WorkflowsListTemplates($first: Int, $offset: Int) {\\n templates(first: $first, offset: $offset) {\\n nodes {\\n id\\n title\\n type\\n isRequired\\n }\\n totalCount\\n }\\n }\\n\"];\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","import {\n TranscendGraphQLBase,\n type EmailTemplate,\n type ListOptions,\n type PaginatedResponse,\n type Workflow,\n type WorkflowConfig,\n} from '@transcend-io/mcp-server-base';\n\nimport { graphql } from './__generated__/gql.js';\n\nconst ListWorkflowsDoc = graphql(/* GraphQL */ `\n query WorkflowsList($first: Int) {\n workflows(first: $first) {\n nodes {\n id\n title {\n defaultMessage\n }\n }\n totalCount\n }\n }\n`);\n\n// `updateWorkflowConfig` returns only `{ success, clientMutationId }` per the\n// schema -- the previous selection requested a `workflowConfig` field that\n// never existed and would have errored at runtime if Transcend's API had\n// stricter validation. We split into a mutation + follow-up read so callers\n// still get a fully-shaped WorkflowConfig back.\nconst UpdateWorkflowConfigDoc = graphql(/* GraphQL */ `\n mutation WorkflowsUpdateConfig($input: UpdateWorkflowConfigInput!) {\n updateWorkflowConfig(input: $input) {\n success\n }\n }\n`);\n\n// Note: WorkflowConfig has no `showInPrivacyCenter` field (and the input type\n// has no corresponding setter). The MCP tool used to advertise this option,\n// but it was a no-op against the schema -- removed from the surface area.\nconst ReadWorkflowConfigDoc = graphql(/* GraphQL */ `\n query WorkflowsReadConfig($input: WorkflowConfigInput!) {\n workflowConfig(input: $input) {\n workflowConfig {\n id\n title {\n defaultMessage\n }\n subtitle {\n defaultMessage\n }\n description {\n defaultMessage\n }\n }\n }\n }\n`);\n\nconst ListEmailTemplatesDoc = graphql(/* GraphQL */ `\n query WorkflowsListTemplates($first: Int, $offset: Int) {\n templates(first: $first, offset: $offset) {\n nodes {\n id\n title\n type\n isRequired\n }\n totalCount\n }\n }\n`);\n\nexport class WorkflowsMixin extends TranscendGraphQLBase {\n async listWorkflows(options?: ListOptions): Promise<PaginatedResponse<Workflow>> {\n const data = await this.makeRequest(ListWorkflowsDoc, {\n first: Math.min(options?.first ?? 50, 100),\n });\n return {\n nodes: data.workflows.nodes.map((w) => ({\n id: w.id,\n title: { defaultMessage: w.title.defaultMessage },\n })),\n pageInfo: {\n hasNextPage: data.workflows.nodes.length < data.workflows.totalCount,\n hasPreviousPage: false,\n },\n totalCount: data.workflows.totalCount,\n };\n }\n\n async updateWorkflowConfig(\n workflowConfigId: string,\n updates: {\n title?: string;\n subtitle?: string;\n description?: string;\n },\n ): Promise<WorkflowConfig> {\n await this.makeRequest(UpdateWorkflowConfigDoc, {\n input: { workflowConfigId, ...updates },\n });\n const data = await this.makeRequest(ReadWorkflowConfigDoc, {\n input: { id: workflowConfigId },\n });\n const wc = data.workflowConfig.workflowConfig;\n return {\n id: wc.id,\n title: wc.title.defaultMessage,\n subtitle: wc.subtitle?.defaultMessage ?? '',\n description: wc.description?.defaultMessage ?? '',\n };\n }\n\n async listEmailTemplates(options?: ListOptions): Promise<PaginatedResponse<EmailTemplate>> {\n const data = await this.makeRequest(ListEmailTemplatesDoc, {\n first: Math.min(options?.first ?? 50, 100),\n offset: options?.offset ?? 0,\n });\n const templates: EmailTemplate[] = data.templates.nodes.map((t) => ({\n id: t.id,\n name: t.title,\n subject: '',\n type: t.type,\n locale: '',\n isActive: t.isRequired,\n createdAt: '',\n updatedAt: '',\n }));\n return {\n nodes: templates,\n pageInfo: {\n hasNextPage: templates.length < data.templates.totalCount,\n hasPreviousPage: false,\n },\n totalCount: data.templates.totalCount,\n };\n }\n}\n"],"mappings":";;;AAUA,MAAa,sBAAsB,iBAAiB,OAAO,EACzD,QAAQ,EACL,QAAQ,CACR,UAAU,CACV,SAAS,6DAA6D,EAC1E,CAAC;AAGF,SAAgB,wBAAwB,SAAsB;CAC5D,MAAM,UAAU,QAAQ;AACxB,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,OAAO,aAAa;GACpC,MAAM,SAAS,MAAM,QAAQ,cAAc;IACzC,OAAO;IACP,OAAO;IACR,CAAC;AAEF,UAAO,iBAAiB,OAAO,OAAO;IACpC,YAAY,OAAO;IACnB,aAAa,OAAO,UAAU;IAC/B,CAAC;;EAEL,CAAC;;;;AC7BJ,MAAa,2BAA2B,iBAAiB,OAAO;CAC9D,QAAQ,EACL,QAAQ,CACR,UAAU,CACV,SAAS,6DAA6D;CACzE,QAA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IAAI;GAC1C,QAAQ,SAAS,UAAU;GAC5B,CAAC;EACF,MAAM,YAA6B,KAAK,UAAU,MAAM,KAAK,OAAO;GAClE,IAAI,EAAE;GACN,MAAM,EAAE;GACR,SAAS;GACT,MAAM,EAAE;GACR,QAAQ;GACR,UAAU,EAAE;GACZ,WAAW;GACX,WAAW;GACZ,EAAE;AACH,SAAO;GACL,OAAO;GACP,UAAU;IACR,aAAa,UAAU,SAAS,KAAK,UAAU;IAC/C,iBAAiB;IAClB;GACD,YAAY,KAAK,UAAU;GAC5B"}
|
|
1
|
+
{"version":3,"file":"graphql-BLrX1gBY.mjs","names":["types.WorkflowsListDocument","types.WorkflowsUpdateConfigDocument","types.WorkflowsReadConfigDocument","types.WorkflowsListTemplatesDocument"],"sources":["../src/tools/workflows_list.ts","../src/tools/workflows_list_email_templates.ts","../src/tools/workflows_update_config.ts","../src/tools/index.ts","../src/scopes.ts","../src/__generated__/graphql.ts","../src/__generated__/gql.ts","../src/graphql.ts"],"mappings":";;;AAUA,MAAa,sBAAsB,iBAAiB,OAAO,EACzD,QAAQ,EACL,QAAQ,CACR,UAAU,CACV,SAAS,6DAA6D,EAC1E,CAAC;AAGF,SAAgB,wBAAwB,SAAsB;CAC5D,MAAM,UAAU,QAAQ;AACxB,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,OAAO,aAAa;GACpC,MAAM,SAAS,MAAM,QAAQ,cAAc;IACzC,OAAO;IACP,OAAO;IACR,CAAC;AAEF,UAAO,iBAAiB,OAAO,OAAO;IACpC,YAAY,OAAO;IACnB,aAAa,OAAO,UAAU;IAC/B,CAAC;;EAEL,CAAC;;;;AC7BJ,MAAa,2BAA2B,iBAAiB,OAAO;CAC9D,QAAQ,EACL,QAAQ,CACR,UAAU,CACV,SAAS,6DAA6D;CACzE,QAAQ,E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;GAC1C,QAAQ,SAAS,UAAU;GAC5B,CAAC;EACF,MAAM,YAA6B,KAAK,UAAU,MAAM,KAAK,OAAO;GAClE,IAAI,EAAE;GACN,MAAM,EAAE;GACR,SAAS;GACT,MAAM,EAAE;GACR,QAAQ;GACR,UAAU,EAAE;GACZ,WAAW;GACX,WAAW;GACZ,EAAE;AACH,SAAO;GACL,OAAO;GACP,UAAU;IACR,aAAa,UAAU,SAAS,KAAK,UAAU;IAC/C,iBAAiB;IAClB;GACD,YAAY,KAAK,UAAU;GAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transcend-io/mcp-server-workflows",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Transcend MCP Server — Workflows tools.",
|
|
5
5
|
"homepage": "https://github.com/transcend-io/tools/tree/main/packages/mcp/mcp-server-workflows",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
35
35
|
"graphql": "^16.14.0",
|
|
36
36
|
"zod": "^4.3.6",
|
|
37
|
-
"@transcend-io/mcp-server-base": "0.
|
|
38
|
-
"@transcend-io/privacy-types": "5.
|
|
37
|
+
"@transcend-io/mcp-server-base": "0.13.0",
|
|
38
|
+
"@transcend-io/privacy-types": "5.13.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsdown",
|
|
53
|
-
"test": "vitest run",
|
|
53
|
+
"test": "vitest run --config ../../../vitest.config.mcp.ts",
|
|
54
54
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
55
55
|
"check:exports": "attw --pack . --ignore-rules cjs-resolves-to-esm",
|
|
56
56
|
"check:publint": "publint --level warning --strict --pack pnpm"
|