From 8ec3766da329cbdd6941451c72ab60cfdb949132 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 16 Mar 2026 12:09:45 +0530 Subject: [PATCH] fix(notion): fixed the notion api call to mcp --- crates/openfang-extensions/integrations/notion.toml | 4 ++-- crates/openfang-extensions/src/installer.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/openfang-extensions/integrations/notion.toml b/crates/openfang-extensions/integrations/notion.toml index 8561b720c..12d0c47c3 100644 --- a/crates/openfang-extensions/integrations/notion.toml +++ b/crates/openfang-extensions/integrations/notion.toml @@ -11,7 +11,7 @@ command = "npx" args = ["-y", "@notionhq/notion-mcp-server"] [[required_env]] -name = "NOTION_API_KEY" +name = "NOTION_TOKEN" label = "Notion Integration Token" help = "An internal integration token created in your Notion workspace settings" is_secret = true @@ -24,5 +24,5 @@ unhealthy_threshold = 3 setup_instructions = """ 1. Go to https://www.notion.so/my-integrations and click 'New integration'. 2. Give it a name, select your workspace, and grant the required capabilities (Read/Update/Insert content). -3. Copy the Internal Integration Token and paste it into the NOTION_API_KEY field above. Then share relevant pages with the integration in Notion. +3. Copy the Internal Integration Token and paste it into the NOTION_TOKEN field above. Then share relevant pages with the integration in Notion. """ diff --git a/crates/openfang-extensions/src/installer.rs b/crates/openfang-extensions/src/installer.rs index 14e51adc0..bf088f3d5 100644 --- a/crates/openfang-extensions/src/installer.rs +++ b/crates/openfang-extensions/src/installer.rs @@ -327,7 +327,7 @@ mod tests { // Provide key directly let mut keys = HashMap::new(); - keys.insert("NOTION_API_KEY".to_string(), "ntn_test_key_123".to_string()); + keys.insert("NOTION_TOKEN".to_string(), "ntn_test_key_123".to_string()); let result = install_integration(&mut registry, &mut resolver, "notion", &keys).unwrap(); assert_eq!(result.id, "notion");