Skip to content

search_graph file_pattern always returns 0 results #200

@speeed76

Description

@speeed76

Bug

search_graph with file_pattern parameter always returns 0 results, regardless of the pattern used.

Version: 0.5.7

Reproduction:

codebase-memory-mcp cli search_graph '{"project":"my-project","name_pattern":"evaluate","file_pattern":"offer-server"}'
# Returns: 0 results

codebase-memory-mcp cli search_graph '{"project":"my-project","name_pattern":"evaluate"}'
# Returns: correct results (functions that exist in offer-server/)

Workaround: Using query_graph with Cypher WHERE n.file_path CONTAINS 'offer-server' works correctly and returns the expected nodes. The data is in the graph — just not reachable via file_pattern.

Expected: file_pattern should filter results to nodes whose file_path contains the given substring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edges

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions