Skip to content

Commit 069247e

Browse files
committed
finalize
1 parent 90d7d89 commit 069247e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/apify-client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ export function getApifyAPIBaseUrl(): string {
2424

2525
export class ApifyClient extends _ApifyClient {
2626
constructor(options: ApifyClientOptions) {
27-
// Remove dummy token for to prevent Dockerhub build task
28-
// that also starts the server to list tools failing
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+
*/
2933
if (options.token?.toLowerCase() === 'your-apify-token') {
3034
delete options.token;
3135
}

src/stdio.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ if (!process.env.APIFY_TOKEN) {
110110
process.exit(1);
111111
}
112112

113-
console.error("Starting with token", {
114-
token: process.env.APIFY_TOKEN,
115-
});
116-
117113
async function main() {
118114
const mcpServer = new ActorsMcpServer({ enableAddingActors, enableDefaultActors: false });
119115

0 commit comments

Comments
 (0)