Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
import type { McpOAuthLoginErrorCode } from "@pi-desktop/shared";
type McpOAuthErrorTranslationKey = "extensions.mcp.authDcrUnavailable";
export function mcpOAuthErrorTranslationKey(
errorCode: McpOAuthLoginErrorCode | undefined,
): McpOAuthErrorTranslationKey | undefined {
switch (errorCode) {
case "MCP_OAUTH_DCR_UNAVAILABLE":
return "extensions.mcp.authDcrUnavailable";
default:
return undefined;
}
}