mirlo-mcp 1.1.0 → 1.1.1

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
@@ -149,9 +149,8 @@ export class MirloClient {
149
149
  throw new Error('Could not resolve organization_id. Provide --org-id=UUID or ensure your API key has CRM data.');
150
150
  }
151
151
  async messagesRequest(method, path, body) {
152
- const orgId = await this.resolveOrgId();
153
- const msgBase = this.getMessagesBaseUrl();
154
- const url = `${msgBase}/organizations/${orgId}${path}`;
152
+ // Messages API v1 — org resolved from API key by APISIX (no org in path)
153
+ const url = `${this.baseUrl}${path}`;
155
154
  const res = await fetch(url, {
156
155
  method,
157
156
  headers: { 'X-API-Key': this.apiKey, 'Content-Type': 'application/json' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mirlo-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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
@@ -184,9 +184,8 @@ export class MirloClient {
184
184
  }
185
185
 
186
186
  private async messagesRequest<T>(method: string, path: string, body?: unknown): Promise<T> {
187
- const orgId = await this.resolveOrgId();
188
- const msgBase = this.getMessagesBaseUrl();
189
- const url = `${msgBase}/organizations/${orgId}${path}`;
187
+ // Messages API v1 — org resolved from API key by APISIX (no org in path)
188
+ const url = `${this.baseUrl}${path}`;
190
189
  const res = await fetch(url, {
191
190
  method,
192
191
  headers: { 'X-API-Key': this.apiKey, 'Content-Type': 'application/json' },