Skip to content

Fix disabled slot MCP errors and Windows test portability #1148

Description

@arkhipowiktor-dev

Problem

AgentMemory exposed MCP slot tools even when AGENTMEMORY_SLOTS was disabled. Calling memory_slot_list then triggered an unregistered function and returned HTTP 500.

Diagnostics also classified sessionless global memories as missing project scope and suggested a migration that could not infer a project (ambiguous result).

The full unit test suite additionally had Windows-only failures caused by Unix path literals, HOME-only test sandboxes, and the Windows iii.exe suffix.

Expected behavior

  • Disabled slot tools return an actionable MCP response instead of HTTP 500.
  • Sessionless memories are treated as intentionally global.
  • Session-linked unscoped memories still produce the migration warning.
  • The unit test suite passes on Windows and Unix-compatible path behavior remains covered.

Validation

  • npm test
  • npx tsdown
  • git diff --check
  • Live /agentmemory/health, diagnostics, and memory_slot_list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions