We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c62be commit 87b2f2cCopy full SHA for 87b2f2c
1 file changed
src/apify-client.ts
@@ -24,6 +24,17 @@ export function getApifyAPIBaseUrl(): string {
24
25
export class ApifyClient extends _ApifyClient {
26
constructor(options: ApifyClientOptions) {
27
+ /**
28
+ * In order to publish to DockerHub, we need to run their build task to validate our MCP server.
29
+ * This was failing since we were sending this dummy token to Apify in order to build the Actor tools.
30
+ * So if we encounter this dummy value, we remove it to use Apify client as unauthenticated, which is sufficient
31
+ * for server start and listing of tools.
32
+ */
33
+ if (options.token?.toLowerCase() === 'your-apify-token') {
34
+ // eslint-disable-next-line no-param-reassign
35
+ delete options.token;
36
+ }
37
+
38
super({
39
...options,
40
baseUrl: getApifyAPIBaseUrl(),
0 commit comments