File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,12 @@ export function getApifyAPIBaseUrl(): string {
2424
2525export 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 }
Original file line number Diff line number Diff 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-
117113async function main ( ) {
118114 const mcpServer = new ActorsMcpServer ( { enableAddingActors, enableDefaultActors : false } ) ;
119115
You can’t perform that action at this time.
0 commit comments