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 +2 -3
- package/package.json +1 -1
- package/src/client.ts +2 -3
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
|
-
|
|
153
|
-
const
|
|
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
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
|
-
|
|
188
|
-
const
|
|
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' },
|