@mac-claw/mcp 1.1.1 → 1.3.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/lib/api-client.js CHANGED
@@ -117,6 +117,7 @@ export class MacClawApiClient {
117
117
  async notificationsBroadcast(itemId) { return this.request('notifications.broadcast', { item_id: itemId }); }
118
118
  async notificationsList(params = {}) { return this.request('notifications.list', params); }
119
119
  async notificationsRead(params = {}) { return this.request('notifications.read', params); }
120
+ async notificationsSettings(params = {}) { return this.request('notifications.settings', params); }
120
121
 
121
122
  // ==========================================
122
123
  // エージェント (1)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mac-claw/mcp",
3
- "version": "1.1.1",
4
- "description": "MCP Server for Mac Claw - AI Mac Marketplace. 47 tools for items, market analysis, checkout, watches, inspections, notifications, and more.",
3
+ "version": "1.3.0",
4
+ "description": "MCP Server for Mac Claw - AI Mac Marketplace. 48 tools for items, market analysis, checkout, watches, inspections, notifications, and more.",
5
5
  "main": "server.js",
6
6
  "type": "module",
7
7
  "bin": {
package/server.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Mac Claw MCP Server
5
- * AI Mac Marketplace - MCP Tools (47 tools)
5
+ * AI Mac Marketplace - MCP Tools (48 tools)
6
6
  *
7
7
  * Supports both stdio and HTTP transport:
8
8
  * stdio: MACCLAW_API_KEY=mc_xxx node server.js
@@ -27,12 +27,12 @@ if (!API_KEY) {
27
27
  const client = new MacClawApiClient(API_KEY, BASE_URL);
28
28
 
29
29
  const server = new Server(
30
- { name: 'macclaw-mcp-server', version: '1.1.0' },
30
+ { name: 'macclaw-mcp-server', version: '1.3.0' },
31
31
  { capabilities: { tools: {} } }
32
32
  );
33
33
 
34
34
  // ==========================================
35
- // Tool definitions (47 tools)
35
+ // Tool definitions (48 tools)
36
36
  // ==========================================
37
37
 
38
38
  const TOOLS = [
@@ -540,6 +540,27 @@ const TOOLS = [
540
540
  },
541
541
  },
542
542
 
543
+ {
544
+ name: 'notifications_settings',
545
+ description: '通知設定の取得・更新。settingsパラメータを省略すると現在の設定を返す。settingsを指定すると更新後の設定を返す',
546
+ inputSchema: {
547
+ type: 'object',
548
+ properties: {
549
+ settings: {
550
+ type: 'object',
551
+ description: '更新する設定 (省略で取得のみ)。キー: like, price_change, watch_match, new_listing, system。値: true/false',
552
+ properties: {
553
+ like: { type: 'boolean', description: 'いいね通知' },
554
+ price_change: { type: 'boolean', description: '価格変更通知' },
555
+ watch_match: { type: 'boolean', description: 'ウォッチマッチ通知' },
556
+ new_listing: { type: 'boolean', description: '新着出品通知' },
557
+ system: { type: 'boolean', description: 'システム通知' },
558
+ },
559
+ },
560
+ },
561
+ },
562
+ },
563
+
543
564
  // ------------------------------------------
544
565
  // エージェント (1)
545
566
  // ------------------------------------------
@@ -809,6 +830,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
809
830
  case 'notifications_read':
810
831
  result = await client.notificationsRead(args || {});
811
832
  break;
833
+ case 'notifications_settings':
834
+ result = await client.notificationsSettings(args || {});
835
+ break;
812
836
 
813
837
  // エージェント
814
838
  case 'agent_upgrade_plan':
@@ -890,7 +914,7 @@ async function main() {
890
914
  // Health check
891
915
  if (req.url === '/health') {
892
916
  res.writeHead(200, { 'Content-Type': 'application/json' });
893
- res.end(JSON.stringify({ status: 'ok', tools: TOOLS.length, version: '1.1.0' }));
917
+ res.end(JSON.stringify({ status: 'ok', tools: TOOLS.length, version: '1.2.0' }));
894
918
  return;
895
919
  }
896
920