ofw-mcp 1.3.0 → 1.4.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.
@@ -6,19 +6,15 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "OurFamilyWizard tools for Claude Code",
9
- "version": "1.3.0"
9
+ "version": "1.4.0"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "ofw",
14
14
  "displayName": "OurFamilyWizard",
15
- "source": {
16
- "source": "npm",
17
- "package": "ofw-mcp",
18
- "version": "1.3.0"
19
- },
15
+ "source": "./",
20
16
  "description": "OurFamilyWizard co-parenting tools for Claude — messages, calendar, expenses, and journal via MCP",
21
- "version": "1.3.0",
17
+ "version": "1.4.0",
22
18
  "author": {
23
19
  "name": "Chris Chall"
24
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ofw",
3
3
  "displayName": "OurFamilyWizard",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "description": "OurFamilyWizard co-parenting tools for Claude — messages, calendar, expenses, and journal via MCP",
6
6
  "author": {
7
7
  "name": "Chris Chall"
package/.mcp.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "ofw": {
4
- "command": "node",
5
- "args": ["${CLAUDE_PLUGIN_ROOT}/dist/index.js"],
4
+ "command": "npx",
5
+ "args": ["-y", "ofw-mcp"],
6
6
  "env": {
7
7
  "OFW_USERNAME": "${OFW_USERNAME}",
8
8
  "OFW_PASSWORD": "${OFW_PASSWORD}"
package/dist/client.js CHANGED
@@ -48,7 +48,8 @@ export class OFWClient {
48
48
  if (!response.ok) {
49
49
  throw new Error(`OFW API error: ${response.status} ${response.statusText} for ${method} ${path}`);
50
50
  }
51
- return response.json();
51
+ const text = await response.text();
52
+ return (text ? JSON.parse(text) : null);
52
53
  }
53
54
  async ensureAuthenticated() {
54
55
  if (!this.isTokenExpiredSoon())
@@ -140,7 +140,7 @@ export async function handleTool(name, args, client) {
140
140
  form.append('messageIds', String(draftId));
141
141
  await client.request('DELETE', '/pub/v1/messages', form);
142
142
  }
143
- return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
143
+ return { content: [{ type: 'text', text: data ? JSON.stringify(data, null, 2) : 'Message sent successfully.' }] };
144
144
  }
145
145
  case 'ofw_list_drafts': {
146
146
  const { page = 1, size = 50 } = args;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofw-mcp",
3
- "version": "1.3.0",
3
+ "version": "1.4.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": {