修复packycode无法测速以及更新滴滴车地址
This commit is contained in:
@@ -1725,6 +1725,29 @@ export const api = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Export configuration for MCP server
|
||||
*/
|
||||
async mcpExportServers(): Promise<{
|
||||
servers: Array<{
|
||||
name: string;
|
||||
transport: string;
|
||||
command?: string;
|
||||
args: string[];
|
||||
env: Record<string, string>;
|
||||
url?: string;
|
||||
scope: string;
|
||||
}>;
|
||||
format: string;
|
||||
}> {
|
||||
try {
|
||||
return await invoke("mcp_export_servers");
|
||||
} catch (error) {
|
||||
console.error("Failed to export MCP servers:", error);
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the stored Claude binary path from settings
|
||||
* @returns Promise resolving to the path if set, null otherwise
|
||||
|
Reference in New Issue
Block a user