Skip to content

Conversation

bjh3311
Copy link

@bjh3311 bjh3311 commented Aug 2, 2025

The current implementation prioritizes OPENAPI_MCP_HEADERS over NOTION_TOKEN, even though the documentation lists NOTION_TOKEN as “Option 1 (recommended)”.

This PR is...

  • Aligns code behavior with the official documentation
  • Improves readability and performance by applying early return when NOTION_TOKEN is available
  • Keeps backward compatibility for users who rely on OPENAPI_MCP_HEADERS

 Documentation shows NOTION_TOKEN as the recommended approach, but code was checking OPENAPI_MCP_HEADERS first

 It results in unnecessary performance overhead for most users
Copy link

@travbuddy travbuddy left a comment

Choose a reason for hiding this comment

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

looks good, let's get this merged 👍

@tech-sumit
Copy link

tech-sumit commented Aug 22, 2025

Whoever can please merge this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants