🐛 fix: slove the agentbuilder install market tools not work (#11848)

fix: slove the agentbuilder install market tools not work
This commit is contained in:
Shinji-Li
2026-01-26 16:58:30 +08:00
committed by GitHub
parent 3dfc86fd0f
commit dbe9011939

View File

@@ -205,9 +205,6 @@ export const createMCPPluginStoreSlice: StateCreator<
const normalizedConfig = toNonEmptyStringRecord(config);
let plugin = mcpStoreSelectors.getPluginById(identifier)(get());
// @ts-expect-error
const { haveCloudEndpoint } = plugin || {};
if (!plugin || !plugin.manifestUrl) {
const data = await discoverService.getMcpDetail({ identifier });
if (!data) return;
@@ -217,6 +214,10 @@ export const createMCPPluginStoreSlice: StateCreator<
if (!plugin) return;
// Extract haveCloudEndpoint after plugin is loaded
// @ts-expect-error
const { haveCloudEndpoint } = plugin || {};
const { updateInstallLoadingState, refreshPlugins, updateMCPInstallProgress } = get();
// Create AbortController for canceling installation
@@ -661,10 +662,10 @@ export const createMCPPluginStoreSlice: StateCreator<
errorLog,
params: connection
? {
args: connection.args,
command: connection.command,
type: connection.type,
}
args: connection.args,
command: connection.command,
type: connection.type,
}
: undefined,
step: 'installation_error',
timestamp: Date.now(),