debug: localStorage MCP debug
This commit is contained in:
parent
663e1018e7
commit
c9a18c9094
|
|
@ -48,7 +48,7 @@ export async function getAutomationAuthToken(): Promise<string | null> {
|
|||
|
||||
export async function spawnMCPIfNeeded(): Promise<AutomationServerHandle | null> {
|
||||
const isTauri = IS_BROWSER && '__TAURI_INTERNALS__' in window
|
||||
console.warn('[MCP] spawn check: DEV=', import.meta.env.DEV, 'isTauri=', isTauri, 'IS_BROWSER=', IS_BROWSER)
|
||||
if (IS_BROWSER) localStorage.setItem('__mcp_debug', JSON.stringify({ DEV: import.meta.env.DEV, isTauri, IS_BROWSER, ts: Date.now() }))
|
||||
if (import.meta.env.DEV || !isTauri) {
|
||||
return DEV_AUTOMATION_AUTH_TOKEN
|
||||
? { disconnect: noop, authToken: DEV_AUTOMATION_AUTH_TOKEN }
|
||||
|
|
|
|||
Loading…
Reference in a new issue