postmark-mcp 1.0.10 → 1.0.11
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 +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -127,14 +127,20 @@ function registerTools(server, postmarkClient) {
|
|
127
127
|
textBody: z.string().describe("Plain text body of the email"),
|
128
128
|
htmlBody: z.string().optional().describe("HTML body of the email (optional)"),
|
129
129
|
from: z.string().optional().describe("Sender email address (optional, uses default if not provided)"),
|
130
|
-
tag: z.string().optional().describe("Optional tag for categorization")
|
130
|
+
tag: z.string().optional().describe("Optional tag for categorization"),
|
131
|
+
inReplyTo: z.string().optional().describe("Message ID this email is in reply to (optional)")
|
131
132
|
},
|
132
133
|
async ({ to, subject, textBody, htmlBody, from, tag }) => {
|
134
|
+
const headers = [
|
135
|
+
{ "Name": "In-Reply-To", "Value": inReplyTo },
|
136
|
+
{ "Name": "References", "Value": inReplyTo }
|
137
|
+
];
|
133
138
|
const emailData = {
|
134
139
|
From: from || defaultSender,
|
135
140
|
To: to,
|
136
141
|
Subject: subject,
|
137
142
|
TextBody: textBody,
|
143
|
+
Headers: inReplyTo ? headers : undefined,
|
138
144
|
MessageStream: defaultMessageStream,
|
139
145
|
TrackOpens: true,
|
140
146
|
TrackLinks: "HtmlAndText"
|
@@ -231,7 +237,6 @@ function registerTools(server, postmarkClient) {
|
|
231
237
|
tag: z.string().optional().describe("Filter by tag (optional)"),
|
232
238
|
fromDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe("Start date in YYYY-MM-DD format (optional)"),
|
233
239
|
toDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe("End date in YYYY-MM-DD format (optional)"),
|
234
|
-
foob: z.string().optional().describe("Just a test parameter")
|
235
240
|
},
|
236
241
|
async ({ tag, fromDate, toDate }) => {
|
237
242
|
const query = [];
|