postmark-mcp 1.0.10 → 1.0.12

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.
Files changed (2) hide show
  1. package/index.js +11 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -127,14 +127,21 @@ 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
- async ({ to, subject, textBody, htmlBody, from, tag }) => {
133
+ async ({ to, subject, textBody, htmlBody, from, tag, inReplyTo }) => {
133
134
  const emailData = {
134
135
  From: from || defaultSender,
135
136
  To: to,
136
137
  Subject: subject,
137
138
  TextBody: textBody,
139
+ Headers: inReplyTo
140
+ ? [
141
+ { Name: "In-Reply-To", Value: inReplyTo },
142
+ { Name: "References", Value: inReplyTo }
143
+ ]
144
+ : undefined,
138
145
  MessageStream: defaultMessageStream,
139
146
  TrackOpens: true,
140
147
  TrackLinks: "HtmlAndText"
@@ -143,9 +150,9 @@ function registerTools(server, postmarkClient) {
143
150
  if (htmlBody) emailData.HtmlBody = htmlBody;
144
151
  if (tag) emailData.Tag = tag;
145
152
 
146
- console.error('Sending email...', { to, subject });
153
+ console.error("Sending email...", { to, subject });
147
154
  const result = await postmarkClient.sendEmail(emailData);
148
- console.error('Email sent successfully:', result.MessageID);
155
+ console.error("Email sent successfully:", result.MessageID);
149
156
 
150
157
  return {
151
158
  content: [{
@@ -231,7 +238,6 @@ function registerTools(server, postmarkClient) {
231
238
  tag: z.string().optional().describe("Filter by tag (optional)"),
232
239
  fromDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe("Start date in YYYY-MM-DD format (optional)"),
233
240
  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
241
  },
236
242
  async ({ tag, fromDate, toDate }) => {
237
243
  const query = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postmark-mcp",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Universal Postmark MCP server using official SDK",
5
5
  "main": "index.js",
6
6
  "bin": {