siglio-mcp 1.0.3 → 1.0.5
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -137,8 +137,10 @@ function describe(env) {
|
|
|
137
137
|
// On a completed envelope every signer has signed, whether or not the time
|
|
138
138
|
// was recorded. signed_at null means "no recorded time", never "unsigned",
|
|
139
139
|
// so never say "not yet signed" about a finished document.
|
|
140
|
+
const partial = env.state === 'partially_signed';
|
|
140
141
|
const status = s.signed_at ? ' — signed ' + s.signed_at
|
|
141
142
|
: done ? ' — signed, time not recorded'
|
|
143
|
+
: partial ? ' — signed, time not yet recorded'
|
|
142
144
|
: ' — not yet signed';
|
|
143
145
|
lines.push('Signer ' + (i + 1) + ': ' + s.name +
|
|
144
146
|
[s.email, s.phone].filter(Boolean).map((x) => ' <' + x + '>').join('') + status);
|
|
@@ -162,7 +164,7 @@ const fail = (e) => ({ content: [{ type: 'text', text: 'Failed: ' + (e && e.mess
|
|
|
162
164
|
|
|
163
165
|
// --- the server ----------------------------------------------------------
|
|
164
166
|
|
|
165
|
-
const server = new McpServer({ name: 'siglio', version: '1.0.
|
|
167
|
+
const server = new McpServer({ name: 'siglio', version: '1.0.5' });
|
|
166
168
|
|
|
167
169
|
const signerShape = z.object({
|
|
168
170
|
name: z.string().describe("The signer's full name."),
|
|
@@ -185,7 +187,7 @@ server.registerTool('send_for_signature', {
|
|
|
185
187
|
inputSchema: {
|
|
186
188
|
document_path: z.string().describe('Full path to the tagged PDF on this machine.'),
|
|
187
189
|
signers: z.array(signerShape).min(1).max(2)
|
|
188
|
-
.describe('One or two signers. With two, signing is sequential: the second
|
|
190
|
+
.describe('One or two signers. With two, signing is sequential: the second is not notified until the first finishes.'),
|
|
189
191
|
delivery: z.enum(['email', 'sms', 'both']).default('email')
|
|
190
192
|
.describe('How to notify the signer. Texting is what Siglio is for and costs the same; ask the user if a text would be better.'),
|
|
191
193
|
document_name: z.string().optional().describe('What the signer sees it called. Defaults to the filename.'),
|
package/package.json
CHANGED