Summary
codebase-memory-mcp v0.5.3 works in Codex, but it does not work out of the box in OpenCode.
I was able to make it work in OpenCode only by adding a local wrapper around the binary. There seem to be two separate compatibility problems:
- OpenCode finds the server, starts it, but times out during MCP tool discovery (
Failed to get tools)
- Even after the server is made reachable, OpenCode rejects the
ingest_traces tool schema because traces is declared as an array without items
Environment
- macOS
- OpenCode
1.2.27
codebase-memory-mcp local binary installed as:
/Users/<user>/.local/bin/codebase-memory-mcp
- OpenCode configured as a local MCP server
Expected behavior
OpenCode should be able to:
- load
codebase-memory-mcp as a local MCP server
- successfully complete the MCP handshake
- list the server tools
- use the tools without schema validation failures
Actual behavior
OpenCode initially failed in two ways:
1. MCP startup / tool discovery timeout
OpenCode log:
service=mcp key=codebase-memory-mcp type=local found
...
ERROR service=mcp key=codebase-memory-mcp error=Operation timed out after 30000ms failed to get tools from client
Summary
codebase-memory-mcpv0.5.3 works in Codex, but it does not work out of the box in OpenCode.I was able to make it work in OpenCode only by adding a local wrapper around the binary. There seem to be two separate compatibility problems:
Failed to get tools)ingest_tracestool schema becausetracesis declared as an array withoutitemsEnvironment
1.2.27codebase-memory-mcplocal binary installed as:/Users/<user>/.local/bin/codebase-memory-mcpExpected behavior
OpenCode should be able to:
codebase-memory-mcpas a local MCP serverActual behavior
OpenCode initially failed in two ways:
1. MCP startup / tool discovery timeout
OpenCode log: