mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: slove the agentbuilder install market tools not work (#11848)
fix: slove the agentbuilder install market tools not work
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user