Skip to content

OpenCode compatibility issues: local MCP handshake times out and ingest_traces schema is rejected #78

Description

@heraque

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:

  1. OpenCode finds the server, starts it, but times out during MCP tool discovery (Failed to get tools)
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor/integrationEditor compatibility and CLI integration

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions