mirlo-mcp 1.1.1 → 1.1.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.
package/dist/client.js CHANGED
@@ -163,7 +163,9 @@ export class MirloClient {
163
163
  return res.json();
164
164
  }
165
165
  async sendMessage(organizationAddress, contactAddress, text, service = 'whatsapp') {
166
+ const orgId = await this.resolveOrgId();
166
167
  return this.messagesRequest('POST', '/messages', {
168
+ organization_id: orgId,
167
169
  organization_address: organizationAddress,
168
170
  service,
169
171
  contact_address: contactAddress,
@@ -172,7 +174,9 @@ export class MirloClient {
172
174
  });
173
175
  }
174
176
  async sendTemplate(organizationAddress, to, metaTemplateId, components) {
177
+ const orgId = await this.resolveOrgId();
175
178
  return this.messagesRequest('POST', '/messages/send-template', {
179
+ organization_id: orgId,
176
180
  organization_address: organizationAddress,
177
181
  to,
178
182
  meta_template_id: metaTemplateId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mirlo-mcp",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Mirlo MCP Server — CRM, Messaging & Voice tools for Claude, GPT, and other LLMs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/client.ts CHANGED
@@ -199,7 +199,9 @@ export class MirloClient {
199
199
  }
200
200
 
201
201
  async sendMessage(organizationAddress: string, contactAddress: string, text: string, service = 'whatsapp') {
202
+ const orgId = await this.resolveOrgId();
202
203
  return this.messagesRequest<any>('POST', '/messages', {
204
+ organization_id: orgId,
203
205
  organization_address: organizationAddress,
204
206
  service,
205
207
  contact_address: contactAddress,
@@ -209,7 +211,9 @@ export class MirloClient {
209
211
  }
210
212
 
211
213
  async sendTemplate(organizationAddress: string, to: string, metaTemplateId: string, components?: any[]) {
214
+ const orgId = await this.resolveOrgId();
212
215
  return this.messagesRequest<any>('POST', '/messages/send-template', {
216
+ organization_id: orgId,
213
217
  organization_address: organizationAddress,
214
218
  to,
215
219
  meta_template_id: metaTemplateId,