Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(ai): konsole mcp (#2357)
Eric Hayesdf0f7fe6f1dd
diff --git a/js/app/packages/app/component/GlobalHotkeys.tsx b/js/app/packages/app/component/GlobalHotkeys.tsxindex d42d2fb273..1f5c34e54a 100644--- a/js/app/packages/app/component/GlobalHotkeys.tsx+++ b/js/app/packages/app/component/GlobalHotkeys.tsx@@ -36,6 +36,8 @@ import Upload from '@icon/regular/upload.svg';import { useAnalytics } from '@app/component/analytics-context';import { useSubscribeToKeypress } from '@app/signal/hotkeyRoot';import { debounce } from '@solid-primitives/scheduled';+import IconGear from '@macro-icons/macro-gear.svg';+import { openMacroMcpSetupModal } from './macro-mcp-setup-modal/MacroMcpSetupModal';function useHotkeyAnalytics(): void {const analytics = useAnalytics();@@ -249,6 +251,19 @@ export default function GlobalShortcuts() {runWithInputFocused: true,});+ registerHotkey({+ scopeId: 'global',+ description: 'MCP setup',+ keyDownHandler: () => {+ openMacroMcpSetupModal();+ return true;+ },+ icon: IconGear,+ runWithInputFocused: true,+ displayPriority: 9,+ tags: ['mcp', 'model context protocol', 'setup', 'connect macro'],+ });+const setThemeScope = registerHotkey({scopeId: 'global',description: 'Change theme',diff --git a/js/app/packages/app/component/Layout.tsx b/js/app/packages/app/component/Layout.tsxindex 45a4cd7b8b..fa3e87827b 100644--- a/js/app/packages/app/component/Layout.tsx+++ b/js/app/packages/app/component/Layout.tsx@@ -23,6 +23,7 @@ import {import Banner from './banner/Banner';import { GlobalBulkEditEntityModal } from './bulk-edit-entity/BulkEditEntityModal';import { GlobalShareModal } from './global-share-modal/GlobalShareModal';+import { MacroMcpSetupModal } from './macro-mcp-setup-modal/MacroMcpSetupModal';import { CommandMenu } from './command';import GlobalShortcuts from './GlobalHotkeys';import { ItemDndProvider } from './ItemDragAndDrop';@@ -147,6 +148,7 @@ function LayoutInner(props: RouteSectionProps) {</Suspense><GlobalBulkEditEntityModal /><GlobalShareModal />+ <MacroMcpSetupModal /></Show><Showwhen={diff --git a/js/app/packages/app/component/command/useCommandItems.ts b/js/app/packages/app/component/command/useCommandItems.tsindex 2df7516615..c2ee804be5 100644--- a/js/app/packages/app/component/command/useCommandItems.ts+++ b/js/app/packages/app/component/command/useCommandItems.ts@@ -92,12 +92,13 @@ function commandsToItems(typeof command.description === 'function'? command.description(): command.description;+ const tags = command.tags?.join(' ') ?? '';return {id: `command-${description.replaceAll(' ', '-')}`,kind: 'command',bucket: 'command',- searchText: description,+ searchText: [tags, description].filter(Boolean).join(' '),sortTimestamp: 0,timestamps: {},data: command,diff --git a/js/app/packages/app/component/macro-mcp-setup-modal/MacroMcpSetupModal.tsx b/js/app/packages/app/component/macro-mcp-setup-modal/MacroMcpSetupModal.tsxnew file mode 100644index 0000000000..bbaaaf254b--- /dev/null+++ b/js/app/packages/app/component/macro-mcp-setup-modal/MacroMcpSetupModal.tsx@@ -0,0 +1,34 @@+import { AiChatEmptyState } from '@core/component/AI/component/AIChatEmptyState';+import { DialogWrapper } from '@core/component/DialogWrapper';+import { createControlledOpenSignal } from '@core/util/createControlledOpenSignal';+import { Dialog } from '@kobalte/core/dialog';+import { Show } from 'solid-js';++const [macroMcpSetupOpen, setMacroMcpSetupOpen] = createControlledOpenSignal(+ false,+ {+ id: 'macro-mcp-setup',+ }+);++export const openMacroMcpSetupModal = () => {+ setMacroMcpSetupOpen(true);+};++export const closeMacroMcpSetupModal = () => {+ setMacroMcpSetupOpen(false);+};++export function MacroMcpSetupModal() {+ return (+ <Show when={macroMcpSetupOpen()}>+ <Dialog open={macroMcpSetupOpen()} onOpenChange={setMacroMcpSetupOpen}>+ <Dialog.Portal>+ <DialogWrapper width="760px">+ <AiChatEmptyState />+ </DialogWrapper>+ </Dialog.Portal>+ </Dialog>+ </Show>+ );+}diff --git a/js/app/packages/core/component/AI/component/AIChatEmptyState.tsx b/js/app/packages/core/component/AI/component/AIChatEmptyState.tsxindex b07c4bacf8..a5b94ec48c 100644--- a/js/app/packages/core/component/AI/component/AIChatEmptyState.tsx+++ b/js/app/packages/core/component/AI/component/AIChatEmptyState.tsx@@ -52,7 +52,7 @@ export function AiChatEmptyState() {};return (- <div class="macro-message-margin w-full max-w-[760px] rounded-md border border-edge-muted bg-dialog/95 p-4 text-ink shadow-lg shadow-[#000]/5 backdrop-blur-sm md:p-5">+ <div class="w-full p-4 text-ink md:p-5"><div class="flex flex-col gap-4"><div class="flex flex-col gap-3 md:flex-row md:items-start md:justify-between"><div class="min-w-0">diff --git a/js/app/packages/core/component/AI/component/message/EmptyChatState.tsx b/js/app/packages/core/component/AI/component/message/EmptyChatState.tsxindex 10d578b328..9977d5479b 100644--- a/js/app/packages/core/component/AI/component/message/EmptyChatState.tsx+++ b/js/app/packages/core/component/AI/component/message/EmptyChatState.tsx@@ -1,14 +1,10 @@-import { AiChatEmptyState } from '../AIChatEmptyState';-export function EmptyChatState(props: { minHeight: number }) {return (<div- class="flex w-full items-center justify-center py-6"+ class="w-full"style={{'min-height': `${props.minHeight}px`,}}- >- <AiChatEmptyState />- </div>+ />);}