Skip to content

Commit 3ed7b4e

Browse files
committed
feat: Fix for local testing of MCP
1 parent 9522625 commit 3ed7b4e

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/apify-client.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@ function addUserAgent(config: AxiosRequestConfig): AxiosRequestConfig {
1616
return updatedConfig;
1717
}
1818

19-
export function getApifyAPIBaseUrl(): string {
20-
// Workaround for Actor server where the platform APIFY_API_BASE_URL did not work with getActorDefinition from actors.ts
21-
if (process.env.APIFY_IS_AT_HOME) return 'https://api.apify.com';
22-
return process.env.APIFY_API_BASE_URL || 'https://api.apify.com';
23-
}
24-
2519
export class ApifyClient extends _ApifyClient {
2620
constructor(options: ApifyClientOptions) {
2721
super({
2822
...options,
29-
baseUrl: getApifyAPIBaseUrl(),
3023
requestInterceptors: [addUserAgent],
3124
});
3225
}

src/const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export enum HelperTools {
3131

3232
export const defaults = {
3333
actors: [
34-
'apify/rag-web-browser',
34+
'agreeable_money/respects-exit-code',
3535
],
3636
helperTools: [
3737
HelperTools.SEARCH_ACTORS,

0 commit comments

Comments
 (0)