ofw-mcp 1.0.7 → 1.1.0

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/client.js CHANGED
@@ -1,4 +1,8 @@
1
- import 'dotenv/config';
1
+ import { config as loadDotenv } from 'dotenv';
2
+ import { dirname, join } from 'path';
3
+ import { fileURLToPath } from 'url';
4
+ const __dirname = dirname(fileURLToPath(import.meta.url));
5
+ loadDotenv({ path: join(__dirname, '..', '.env'), override: false, quiet: true });
2
6
  const BASE_URL = 'https://ofw.ourfamilywizard.com';
3
7
  const STATIC_HEADERS = {
4
8
  'ofw-client': 'WebApplication',
@@ -45,6 +45,10 @@ export const toolDefinitions = [
45
45
  items: { type: 'number' },
46
46
  description: 'Array of recipient user IDs (get from ofw_get_profile)',
47
47
  },
48
+ replyToId: {
49
+ type: 'number',
50
+ description: 'ID of the message being replied to. When provided, the original message thread is included (like a standard email reply).',
51
+ },
48
52
  draftId: {
49
53
  type: 'number',
50
54
  description: 'ID of the draft to delete after sending (omit if not sending from a draft)',
@@ -123,12 +127,13 @@ export async function handleTool(name, args, client) {
123
127
  return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
124
128
  }
125
129
  case 'ofw_send_message': {
126
- const { subject, body, recipientIds, draftId } = args;
130
+ const { subject, body, recipientIds, replyToId = null, draftId } = args;
127
131
  const data = await client.request('POST', '/pub/v3/messages', {
128
132
  subject, body, recipientIds,
129
133
  attachments: { myFileIDs: [] },
130
134
  draft: false,
131
- includeOriginal: false,
135
+ includeOriginal: replyToId !== null,
136
+ replyToId,
132
137
  });
133
138
  if (draftId !== undefined) {
134
139
  const form = new FormData();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofw-mcp",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "OurFamilyWizard MCP server for Claude — developed and maintained by AI (Claude Sonnet 4.6)",
5
5
  "author": "Claude Sonnet 4.6 (AI) <https://www.anthropic.com/claude>",
6
6
  "repository": {