fix(desktop): remove MCP runtime shim fallback

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-07-15 11:30:11 +08:00
1 parent 8f6a8b5b13
commit 872e59f207
3 files changed
+648 -57

No files matched your search

@@ -91,7 +91,7 @@ import { executableStatementRangeCacheForDoc, executableStatementRangeStartingAt
import { EMPTY_TABLE_COLUMN_TEMPLATE_DATA_TYPE, parseTableColumnTemplateFields, TABLE_COLUMN_TEMPLATE_DATABASE_TYPES } from "@/lib/table/tableColumnTemplates";
import { DEFAULT_SQL_VARIABLE_SYNTAX_TOGGLES, normalizeSqlVariableSyntaxOverrides, SQL_VARIABLE_SYNTAX_DATABASE_TYPES, SQL_VARIABLE_SYNTAX_KEYS, SQL_VARIABLE_SYNTAX_TOKENS, type SqlVariableSyntaxOverrides, type SqlVariableSyntaxToggles } from "@/lib/sql/sqlVariableSyntax";
import { buildMcpCodexConfig, buildMcpJsonConfig, buildMcpOpenCodeConfig, buildMcpVsCodeConfig, type McpEnvEntry, type McpLaunchConfig } from "@/lib/mcp/mcpConfigTemplates";
import { isMacOS, isWindows } from "@/lib/backend/platform";
import { isMacOS } from "@/lib/backend/platform";
import { combineDataTypeForDatabase, dataTypeLengthInputValue, getDataTypeOptions, getDefaultLengthForType, isDataTypeLengthDisabled, splitDataType } from "@/lib/table/tableStructureEditorState";
import { useToast } from "@/composables/useToast";
import type { DatabaseType, SqlSnippet } from "@/types/database";
@@ -1389,9 +1389,9 @@ const mcpEnvEntries = computed<McpEnvEntry[]>(() => {
});
const mcpLaunchConfig = computed<McpLaunchConfig | undefined>(() => {
if (!isWindows() || !mcpStatus.value?.script_path) return undefined;
if (!mcpStatus.value?.node_path || !mcpStatus.value.script_path) return undefined;
return {
command: mcpStatus.value.node_path || "node",
command: mcpStatus.value.node_path,
args: [mcpStatus.value.script_path],
};
});