Skip to content

Please update readme.md:The sample code lacks necessary parameters. #945

Description

@raksasaa

Version

codebase-memory-mcp 0.8.1

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

I tried testing with the sample code provided in readme.md, but it returned an error.

Reproduction

The sample code lacks necessary parameters:

codebase-memory-mcp cli index_repository '{"repo_path": "/path/to/repo"}'
codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*", "label": "Function"}'
codebase-memory-mcp cli trace_path '{"function_name": "Search", "direction": "both"}'
codebase-memory-mcp cli query_graph '{"query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
codebase-memory-mcp cli list_projects
codebase-memory-mcp cli --raw search_graph '{"label": "Function"}' | jq '.results[].name'

I tried the following command, but it threw an error.

rroot@FH-:/mnt/d/code/16800_code/code# codebase-memory-mcp cli search_graph '{"name_pattern": ".*Decode.*", "label": "Function"}'
level=info msg=mem.init budget_mb=882 total_ram_mb=1765
{"error":"project not found or not indexed","hint":"Use list_projects to see all indexed projects, then pass the project name.","available_projects":["mnt-d-code-16800_code-code"],"count":1}

root@FH-:/mnt/d/code/16800_code/code# codebase-memory-mcp cli list_projects
level=info msg=mem.init budget_mb=882 total_ram_mb=1765
{"projects":[{"name":"mnt-d-code-16800_code-code","root_path":"/mnt/d/code/16800_code/code","nodes":19581,"edges":37298,"size_bytes":45613056}]}

It is necessary to add the required fields for successful execution.

root@FH-:/mnt/d/code/16800_code/code# codebase-memory-mcp cli search_graph '{"project":"mnt-d-code-16800_code-code","name_pattern": ".*Decode.*", "label": "Function"}'
level=info msg=mem.init budget_mb=882 total_ram_mb=1765
{"total":46,"results":[{"name":"MD_decode","qualified_name":"mnt-d-code-16800_code-code.osal.src.utlMD5.MD_decode","label":"Function","file_path":"osal/src/utlMD5.c","in_degree":2,"out_degree":0,"complexity":1,"cognitive":1,"loop_count":1,"loop_depth":1,"self_recursive":false,"param_co...

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 workingdocumentationImprovements or additions to documentationpriority/normalStandard review queue; useful PR with ordinary maintainer urgency.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions