diff --git a/packages/mcp-workforce/src/server.ts b/packages/mcp-workforce/src/server.ts index e4f36d5..c9d0f80 100644 --- a/packages/mcp-workforce/src/server.ts +++ b/packages/mcp-workforce/src/server.ts @@ -10,7 +10,7 @@ import { type IntegrationToolName } from './tools/integrations.js'; -const MEMORY_SCOPE_ENUM = z.enum(['session', 'user', 'workspace', 'org', 'object']); +const MEMORY_SCOPE_ENUM = z.enum(['workspace', 'user', 'global']); /** * Build an `McpServer` with workforce-flavored tools registered. Exposed @@ -62,7 +62,7 @@ export function createWorkforceMcpServer(config: WorkforceMcpConfig): McpServer { title: 'Save a memory entry', description: - 'Persist a memory entry for the active workspace. Scopes follow @agent-assistant/memory semantics: session, user, workspace, org, object. Tags are deduped; workspace/scope tags are added automatically.', + 'Persist a memory entry for the active workspace. Scope is one of workspace (default) / user / global, matching @agentworkforce/persona-kit\'s PersonaMemoryScope. Tags are deduped; workspace/scope tags are added automatically.', inputSchema: { content: z.string().min(1), tags: z.array(z.string()).optional(), diff --git a/packages/mcp-workforce/src/tools/memory.ts b/packages/mcp-workforce/src/tools/memory.ts index 54a4ddb..0400f63 100644 --- a/packages/mcp-workforce/src/tools/memory.ts +++ b/packages/mcp-workforce/src/tools/memory.ts @@ -36,11 +36,9 @@ export interface MemoryToolDeps { } const VALID_SCOPES: ReadonlySet = new Set([ - 'session', - 'user', 'workspace', - 'org', - 'object' + 'user', + 'global' ]); /**