Skip to content

Fix Notion MCP server env var name (NOTION_API_KEY → NOTION_TOKEN)#696

Open
Abhishek21k wants to merge 1 commit intoRightNow-AI:mainfrom
Abhishek21k:fix(#660)/notion-api-token-fix
Open

Fix Notion MCP server env var name (NOTION_API_KEY → NOTION_TOKEN)#696
Abhishek21k wants to merge 1 commit intoRightNow-AI:mainfrom
Abhishek21k:fix(#660)/notion-api-token-fix

Conversation

@Abhishek21k
Copy link

@Abhishek21k Abhishek21k commented Mar 17, 2026

Summary

Fixes #660 — The Notion MCP server (@notionhq/notion-mcp-server) expects the env var NOTION_TOKEN, but OpenFang's integration template was using NOTION_API_KEY, causing the server to fail on startup.

Changes

  • Renamed NOTION_API_KEYNOTION_TOKEN in crates/openfang-extensions/integrations/notion.toml
  • Updated setup instructions to reference the correct env var name
  • Updated the installer test in crates/openfang-extensions/src/installer.rs to match

Testing

  • cargo clippy --workspace --all-targets -- -D warnings passes (pre-existing const_is_empty warnings on main unrelated to this change)
  • cargo test --workspace passes
  • Live integration tested (if applicable)

Security

  • No new unsafe code
  • No secrets or API keys in diff
  • User input validated at boundaries

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.

[BUG] MCP servers don't receive credentials from .env/vault — only process env vars

1 participant