@atray/mcp 1.0.1 → 1.0.2

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/package.json +1 -1
  2. package/src/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atray/mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for ATRAY API - manage campaigns, posts and brand profile via AI",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -10,7 +10,7 @@ import { tools } from './tools.js';
10
10
  import { api } from './api.js';
11
11
 
12
12
  const server = new Server(
13
- { name: 'atray-mcp', version: '1.0.1' },
13
+ { name: 'atray-mcp', version: '1.0.2' },
14
14
  { capabilities: { tools: {} } }
15
15
  );
16
16
 
@@ -49,7 +49,7 @@ async function callTool(name, a) {
49
49
 
50
50
  case 'updateCampaign': {
51
51
  const { id, ...body } = a;
52
- return api.patch(`/campaigns/${id}`, body);
52
+ return api.put(`/campaigns/${id}`, body);
53
53
  }
54
54
 
55
55
  case 'listCampaignPosts': {
@@ -69,7 +69,7 @@ async function callTool(name, a) {
69
69
 
70
70
  case 'updatePost': {
71
71
  const { id, ...body } = a;
72
- return api.patch(`/posts/${id}`, body);
72
+ return api.put(`/posts/${id}`, body);
73
73
  }
74
74
 
75
75
  case 'regeneratePostText':