Add document resource to n8n node and MCP sendSigningNotifications tool

Add a complete document resource to the n8n node with 21 operations
covering documents, versions, and signatures — matching the MCP
specification. Also add the sendSigningNotifications tool to the MCP
API for triggering pending signature reminders.

n8n operations: create, get, getAll, update, delete, archive,
unarchive, getVersion, getAllVersions, createDraftVersion,
updateVersion, deleteDraftVersion, publishMajorVersion,
publishMinorVersion, requestApproval, voidApproval, getSignature,
getAllSignatures, requestSignature, cancelSignature,
sendSigningNotifications.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-04-13 17:27:11 +02:00
parent 06c0972551
commit d40b114f0f
26 changed files with 2161 additions and 0 deletions

View File

@@ -0,0 +1,224 @@
// Copyright (c) 2025-2026 Probo Inc <hello@getprobo.com>.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
import type { INodeProperties } from 'n8n-workflow';
import * as createOp from './create.operation';
import * as getOp from './get.operation';
import * as getAllOp from './getAll.operation';
import * as updateOp from './update.operation';
import * as deleteOp from './delete.operation';
import * as archiveOp from './archive.operation';
import * as unarchiveOp from './unarchive.operation';
import * as getVersionOp from './getVersion.operation';
import * as getAllVersionsOp from './getAllVersions.operation';
import * as createDraftVersionOp from './createDraftVersion.operation';
import * as updateVersionOp from './updateVersion.operation';
import * as deleteDraftVersionOp from './deleteDraftVersion.operation';
import * as publishMajorVersionOp from './publishMajorVersion.operation';
import * as publishMinorVersionOp from './publishMinorVersion.operation';
import * as requestApprovalOp from './requestApproval.operation';
import * as voidApprovalOp from './voidApproval.operation';
import * as getSignatureOp from './getSignature.operation';
import * as getAllSignaturesOp from './getAllSignatures.operation';
import * as requestSignatureOp from './requestSignature.operation';
import * as cancelSignatureOp from './cancelSignature.operation';
import * as sendSigningNotificationsOp from './sendSigningNotifications.operation';
export const description: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['document'],
},
},
options: [
{
name: 'Archive',
value: 'archive',
description: 'Archive a document',
action: 'Archive a document',
},
{
name: 'Cancel Signature',
value: 'cancelSignature',
description: 'Cancel a signature request',
action: 'Cancel a document signature request',
},
{
name: 'Create',
value: 'create',
description: 'Create a new document',
action: 'Create a document',
},
{
name: 'Create Draft Version',
value: 'createDraftVersion',
description: 'Create a new draft version from the latest published version',
action: 'Create a draft document version',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a document',
action: 'Delete a document',
},
{
name: 'Delete Draft Version',
value: 'deleteDraftVersion',
description: 'Delete a draft document version',
action: 'Delete a draft document version',
},
{
name: 'Get',
value: 'get',
description: 'Get a document',
action: 'Get a document',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Get many documents',
action: 'Get many documents',
},
{
name: 'Get Many Signatures',
value: 'getAllSignatures',
description: 'Get many signatures for a document version',
action: 'Get many document version signatures',
},
{
name: 'Get Many Versions',
value: 'getAllVersions',
description: 'Get many versions of a document',
action: 'Get many document versions',
},
{
name: 'Get Signature',
value: 'getSignature',
description: 'Get a document version signature',
action: 'Get a document version signature',
},
{
name: 'Get Version',
value: 'getVersion',
description: 'Get a document version',
action: 'Get a document version',
},
{
name: 'Publish Major Version',
value: 'publishMajorVersion',
description: 'Publish a draft as a new major version',
action: 'Publish a major document version',
},
{
name: 'Publish Minor Version',
value: 'publishMinorVersion',
description: 'Publish a draft as a minor version',
action: 'Publish a minor document version',
},
{
name: 'Request Approval',
value: 'requestApproval',
description: 'Request approval for a document version',
action: 'Request document version approval',
},
{
name: 'Request Signature',
value: 'requestSignature',
description: 'Request a signature for a document version',
action: 'Request a document version signature',
},
{
name: 'Send Signing Notifications',
value: 'sendSigningNotifications',
description: 'Send signing notifications to all pending signatories',
action: 'Send signing notifications',
},
{
name: 'Unarchive',
value: 'unarchive',
description: 'Unarchive a document',
action: 'Unarchive a document',
},
{
name: 'Update',
value: 'update',
description: 'Update an existing document',
action: 'Update a document',
},
{
name: 'Update Version',
value: 'updateVersion',
description: 'Update a draft document version',
action: 'Update a document version',
},
{
name: 'Void Approval',
value: 'voidApproval',
description: 'Void a pending approval request',
action: 'Void a document version approval',
},
],
default: 'create',
},
...createOp.description,
...getOp.description,
...getAllOp.description,
...updateOp.description,
...deleteOp.description,
...archiveOp.description,
...unarchiveOp.description,
...getVersionOp.description,
...getAllVersionsOp.description,
...createDraftVersionOp.description,
...updateVersionOp.description,
...deleteDraftVersionOp.description,
...publishMajorVersionOp.description,
...publishMinorVersionOp.description,
...requestApprovalOp.description,
...voidApprovalOp.description,
...getSignatureOp.description,
...getAllSignaturesOp.description,
...requestSignatureOp.description,
...cancelSignatureOp.description,
...sendSigningNotificationsOp.description,
];
export {
createOp as create,
getOp as get,
getAllOp as getAll,
updateOp as update,
deleteOp as delete,
archiveOp as archive,
unarchiveOp as unarchive,
getVersionOp as getVersion,
getAllVersionsOp as getAllVersions,
createDraftVersionOp as createDraftVersion,
updateVersionOp as updateVersion,
deleteDraftVersionOp as deleteDraftVersion,
publishMajorVersionOp as publishMajorVersion,
publishMinorVersionOp as publishMinorVersion,
requestApprovalOp as requestApproval,
voidApprovalOp as voidApproval,
getSignatureOp as getSignature,
getAllSignaturesOp as getAllSignatures,
requestSignatureOp as requestSignature,
cancelSignatureOp as cancelSignature,
sendSigningNotificationsOp as sendSigningNotifications,
};