Skip to content

Track codebase-memory-mcp graph surface regression blocking TypeGraphCommand integration #97

@elasticdotventures

Description

@elasticdotventures

Summary

During TypeRelationshipGraph / TypeGraphCommand work on 2026-05-13, the configured codebase-memory-mcp surface was degraded enough that ledgrrr had to fall back to targeted file reads for structural discovery.

The upstream/fork repo to fix is:

https://github.com/PromptExecution/codebase-memory-mcp-b00t-ir0n-ledg3rr

Attempted to file there first, but GitHub returned 410: Issues has been disabled in this repository.

Observed Problems

1. search_graph not exposed

ledgrrr's AGENTS.md requires search_graph as the first-line structural code lookup tool, but this Codex session did not expose it through the MCP namespace. Tool discovery exposed only partial codebase-memory tool sets.

2. query_graph returned unusable results

Example attempted query:

MATCH (n)
WHERE n.name CONTAINS 'HasVisualization' OR n.qualified_name CONTAINS 'HasVisualization'
RETURN labels(n) AS labels, n.name AS name, n.qualified_name AS qualified_name, n.file AS file
LIMIT 50

Observed:

{"columns":["labels"],"rows":[],"total":0}

Another query:

MATCH (n) RETURN labels(n) AS labels, keys(n) AS keys LIMIT 20

Observed rows contained only blank labels values and dropped the requested keys alias.

This resembles upstream DeusData/codebase-memory-mcp issue #305: query_graph Cypher evaluator: labels(), count(*), AS alias, and LIMIT all broken.

3. index_status closed the MCP transport

Call:

{"project":"mnt-d-Projects-l3dg3rr"}

Observed:

tool call error: tool call failed for `codebase-memory-mcp/index_status`

Caused by:
    Transport closed

Afterward, get_graph_schema also failed with Transport closed.

Local Dependency Check

PromptExecution/ledgrrr does not appear to have codebase-memory-mcp-b00t-ir0n-ledg3rr as a Cargo dependency. It consumes the tool operationally through Codex MCP and documents it in AGENTS.md/PRD handover guidance.

Impact

This blocks the intended implementation path for the P2 TypeGraphCommand, which should query codebase-memory-mcp for type/trait relationships and emit a typed Cytoscape graph. It also violates ledgrrr's mandatory discovery workflow, forcing agents back to file reads.

Desired Outcome

  • Re-enable or document replacement for search_graph in the Codex MCP surface.
  • Fix or work around query_graph alias/property return behavior.
  • Ensure index_status returns structured errors instead of closing transport.
  • Once the MCP surface is stable, wire TypeGraphCommand to real graph queries instead of a static/demo graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions