Skip to content

[Bug]: MCP Server fails to start in Claude Desktop Cowork environment (better-sqlite3 native compilation blocked) #73

@kevintseng

Description

@kevintseng

Component

MCP Server

Bug Description

[Bug] MCP Server fails to start in Claude Desktop Cowork environment (better-sqlite3 native compilation blocked)

Summary

MeMesh plugin (v2.8.10) installs successfully in Claude Desktop's Cowork mode but the MCP server cannot start because better-sqlite3 requires native compilation via node-gyp, which is blocked by two sandbox restrictions:

  1. Read-only filesystem.claude-plugin/memesh/ is mounted as read-only, preventing npm install from creating node_modules/
  2. Network restriction — even when copied to a writable directory, node-gyp cannot download Node.js headers from nodejs.org (returns HTTP 403)

As a result, all memesh MCP tools are unavailable in Cowork sessions.

Environment

Item Value
Plugin version 2.8.10
Platform Claude Desktop — Cowork mode
OS (sandbox) Ubuntu 22.04 LTS, ARM64 (aarch64)
Node.js v22.22.0
npm installed
Build tools gcc, g++, make, python3 — all present

Steps to Reproduce

  1. Install @pcircle/memesh plugin in Claude Desktop Cowork mode
  2. Start a new Cowork session
  3. Attempt to use any memesh MCP tool (e.g., buddy-remember, buddy-record-mistake)

Expected: MCP tools are available and functional.
Actual: No memesh MCP tools appear in the tool list. The MCP server fails to initialize because better-sqlite3 has no compiled native bindings.

Error Output

MeMesh Version

2.8.10

Claude Code Client

Other

Node.js Version

v20.0.0

Operating System

macOS

MCP Configuration

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mcpMCP Server and toolsbugSomething isn't workingenhancementNew feature or requestpriority: highImportant, should be addressed soonstatus: in progressCurrently being worked ontriageNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions