@jclvsh/iris 0.2.2 → 0.2.3
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 +3 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -12,7 +12,9 @@ export class IrisClient {
|
|
|
12
12
|
"Get a valid API key from https://iris-ai.dev/settings/api-keys");
|
|
13
13
|
}
|
|
14
14
|
this.apiKey = apiKey;
|
|
15
|
-
|
|
15
|
+
// Default to www host. iris-ai.dev apex 307s to www.iris-ai.dev, and fetch
|
|
16
|
+
// strips Authorization across the host change → every call returned APIKEY_001.
|
|
17
|
+
this.baseUrl = (process.env.IRIS_API_URL || "https://www.iris-ai.dev/api/v1").replace(/\/+$/, "");
|
|
16
18
|
}
|
|
17
19
|
async get(path, params) {
|
|
18
20
|
const url = new URL(`${this.baseUrl}${path}`);
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { registerWebhookTools } from "./tools/webhooks.js";
|
|
|
17
17
|
import { registerAgentCreditTools } from "./tools/agent-credits.js";
|
|
18
18
|
const server = new McpServer({
|
|
19
19
|
name: "iris",
|
|
20
|
-
version: "0.2.
|
|
20
|
+
version: "0.2.3",
|
|
21
21
|
});
|
|
22
22
|
const client = new IrisClient();
|
|
23
23
|
registerCampaignTools(server, client);
|