Skip to content

opencode calling search_graph returns "project not found" but list_projects shows available projects #1025

Description

@KnifeOfLife

Version

0.9.0

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

When using opencode to call the search_graph tool from codebase-memory-mcp, an error is returned indicating that the project is not found or not indexed. However, list_projects correctly shows the list of indexed projects. This suggests a mismatch between the project parameter passed and the actual indexed project names, or a difference in how the tool resolves project names.

Reproduction

Environment:

opencode version: 1.17.18
codebase-memory-mcp version: 0.9.0
OS: Windows 11
Node.js version: 24.15.0
opencode installed via: npm

Call codebase-memory-mcp_search_graph with parameters like:

{
  "project": "codebase-memory-mcp",
  "query": "sync",
  "label": "function"
}

Receive the following error response:

{
  "error": "project not found or not indexed",
  "hint": "Use list_projects to see all indexed projects, then pass it as the "project" argument.",
  "available_projects": [
    "E-project-graph-codebase-memory-mcp",
    "E-project-graph-codegraph",
    "E-project-ruoyi-vue-pro"
  ],
  "count": 3
}

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationparsing/qualityGraph extraction bugs, false positives, missing edgesux/behaviorDisplay bugs, docs, adoption UXwindowsWindows-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions