.maestro/playbooks/2026-03-29-Issues-Triage-3-29-2026/Phase-07-Installer-MCP-And-Remaining-Fixes.md
This phase addresses the remaining issue groups: installer/setup problems (6 issues), MCP schema/tool bugs (4 issues), AWS Bedrock integration (2 issues), and the top feature requests. These are lower priority individually but collectively represent ~24 open issues that prevent a clean backlog. This phase also updates issue comments on GitHub to reference the commits that fix each bug, closing the loop between triage and code.
Fix the missing scripts/setup.sh issue (canonical #1340). The install hooks reference a setup.sh script that doesn't exist or isn't included in the npm package. To fix:
plugin/hooks/hooks.json to find any references to setup.sh or smart-install.jsplugin/scripts/smart-install.js — this appears to be the replacement for setup.sh. Verify it handles all setup tasks: Bun installation, uv installation, dependency checkingsetup.sh in the codebase: grep -r "setup.sh" src/ plugin/ install/setup.sh references exist in hook definitions, update them to point to smart-install.jssetup.sh is referenced in documentation, update the docssmart-install.js by checking the files field in package.json or the .npmignore file Fix MCP tool schema issues. The MCP server's tool registration has empty inputSchema objects and ID mismatches that cause some AI clients to fail. To fix:
src/servers/mcp-server.ts (around lines 151-343) for the tool registrationinputSchema:
__IMPORTANT tool: empty schema is intentional (instruction-only tool) — document this with a commentsearch tool: has additionalProperties: true but no defined properties. Add explicit properties for the known parameters: query (string, required), project (string, optional), limit (number, optional), type (string, optional)timeline tool: add explicit properties for anchor (string), query (string), project (string), range (string)get_observations tool: schema looks correct (has ids array) — verify it matches the actual API endpoint parameterssmart_search, smart_unfold, smart_outline: verify their schemas match expected parameterstype: 'object' at the schema root level (required by MCP spec)Fix AWS Bedrock integration (2 issues). AWS Bedrock users can't use claude-mem because environment variables aren't passed through and the SDK auth isn't supported. To fix:
grep -r "bedrock\|BEDROCK\|aws\|AWS" src/ (case-insensitive)src/services/worker/agents/SDKAgent.ts (or similar) to understand how the Anthropic SDK client is initialized@anthropic-ai/bedrock-sdk or by setting ANTHROPIC_API_BASE — check which approach is usedenv-sanitizer.ts:
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION, AWS_DEFAULT_REGIONANTHROPIC_API_BASE (for Bedrock endpoint override)CLAUDE_MEM_BEDROCK_MODEL_ID (if custom model IDs are needed)src/supervisor/env-sanitizer.ts — if it uses an allowlist, add the AWS vars. If it uses a denylist (strips CLAUDECODE_*), verify AWS vars aren't accidentally matchedCLAUDE_MEM_PROVIDER=bedrock option in settings if it doesn't exist, that configures the SDK client for Bedrock authenticationFix installer marketplace path and allowlist issues (remaining installer bugs):
grep -r "marketplace\|marketplaceDirectory\|installLocation" src/npx-cli/src/npx-cli/commands/install.ts for the full installation flowmkdirSync(marketplacePath, { recursive: true }) before copy operationsnode dist/npx-cli/index.js install --ide claude-code (or equivalent local test command)Fix SSE broadcast reliability for the viewer UI:
src/services/server/Server.ts or wherever SSE endpoints are defined (search for SSEBroadcaster, text/event-stream, or EventSource)src/services/worker/SSEBroadcaster.ts (or similar) for how events are dispatched to connected clientsclose event on the response object)res.write() calls are caught and the connection removed from the broadcast listUpdate GitHub issues with fix references. For each root-cause group where code was changed in Phases 02-07, comment on the canonical issue(s) with the fix details:
git log --oneline -20 to get recent commit hashes"Fix landed in commit <hash> on branch <branch>. The root cause was <brief description>. This will be included in the next release."Final build verification and cleanup:
npm run build-and-syncgit status to review all changes across Phases 02-07console.log calls that should be logger.* calls/Users/alexnewman/Scripts/claude-mem/Auto Run Docs/2026-03-29-Issues-Triage-3-29-2026/Working/changes-summary.md with: