fix_notion

This commit is contained in:
Sun Tao 2025-10-03 16:16:12 +08:00
parent 764d233851
commit 4fa185f504
2 changed files with 93 additions and 27 deletions

View file

@ -15,6 +15,7 @@ interface IntegrationItem {
name: string;
desc: string;
env_vars: string[];
toolkit?: string; // Add toolkit field
onInstall: () => void | Promise<void>;
}
@ -316,8 +317,11 @@ export default function IntegrationList({
"Github",
].includes(item.name)
) {
if (item.env_vars.length === 0 || isInstalled) {
addOption(item, true);
if (item.env_vars.length === 0 || isInstalled) {
// Ensure toolkit field is passed and normalized for known cases
const normalizedToolkit =
item.name === "Notion" ? "notion_mcp_toolkit" : item.toolkit;
addOption({ ...item, toolkit: normalizedToolkit }, true);
} else {
handleInstall(item);
}