Skip to content

Conversation

@valekjo
Copy link
Member

@valekjo valekjo commented May 20, 2025

Seems that we won't need any changes related to MCP + oAuth in the Actor itself :)

But I struggled with this when running the platform locally.

Specs: https://www.notion.so/apify/Apify-as-OAuth-Provider-Docs-192f39950a22807b83a0c8fcbdac90cc

@github-actions github-actions bot added this to the 115th sprint - Console team milestone May 20, 2025
@github-actions github-actions bot added the t-console Issues with this label are in the ownership of the console team. label May 20, 2025
@valekjo valekjo force-pushed the feature/adhoc-oauth-dynamic-client-registration branch from dc06389 to 3ed7b4e Compare May 22, 2025 13:07
Comment on lines -19 to -23
export function getApifyAPIBaseUrl(): string {
// Workaround for Actor server where the platform APIFY_API_BASE_URL did not work with getActorDefinition from actors.ts
if (process.env.APIFY_IS_AT_HOME) return 'https://api.apify.com';
return process.env.APIFY_API_BASE_URL || 'https://api.apify.com';
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: The workaround did not work when running the platform locally, and probably would not work on staging as well.
Where was the APIFY_API_BASE_URL env var missing?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, this was actually a hack from @MQ37

This package is imported in apify-mcp-server where APIFY_API_BASE_URL is defined 🙈.
Here is a TODO for that https://github.com/apify/apify-mcp-server/blob/0b336190178ad85beb1ee83956924d98c0eb129b/src/main.ts#L18

I'm not sure if we'll have time to fix it this week.

@valekjo valekjo requested review from MQ37 and jirispilka May 23, 2025 07:38
@valekjo valekjo added the adhoc Ad-hoc unplanned task added during the sprint. label May 23, 2025
@valekjo valekjo marked this pull request as ready for review May 23, 2025 07:39
@valekjo
Copy link
Member Author

valekjo commented Jun 30, 2025

Closing this one, seems it's no longer relevant.

@valekjo valekjo closed this Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-console Issues with this label are in the ownership of the console team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants