Skip to content

Commit 5d1f445

Browse files
committed
get apify api url base from env var
1 parent 81b15c0 commit 5d1f445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/mcp-apify-client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import type { ApifyClientOptions } from 'apify';
23
import { ApifyClient as _ApifyClient } from 'apify-client';
34
import type { AxiosRequestConfig } from 'axios';
@@ -20,6 +21,7 @@ export class ApifyClient extends _ApifyClient {
2021
constructor(options: ApifyClientOptions) {
2122
super({
2223
...options,
24+
baseUrl: process.env.MCP_APIFY_BASE_URL || undefined,
2325
requestInterceptors: [addUserAgent],
2426
});
2527
}

0 commit comments

Comments
 (0)