trace_path: accept `callers`/`callees` as aliases for `direction`

Open Beginner friendly
#2,286 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
c
Domain
api

Research direction

Start at the trace_path direction parsing and JSON-schema enum; the issue does not name specific files. Check how inbound, outbound, and both are validated and how the response represents direction. Done means callers and callees are accepted and normalized to the canonical values, while the schema permits both aliases.

Written by the indexing model from the issue text.

Description

editor/integration parsing/quality

trace_path: accept callers/callees as aliases for direction

Version: 0.10.8 (macOS, single static binary)

What happens

trace_path's direction takes inbound / outbound / both. Passing the word most callers
reach for first is rejected:

trace_path(function_name="safe_null_result", project="…", direction="callers", depth=1)
→ invalid direction "callers" — use "inbound" (callers), "outbound" (callees), or "both"

Why this is worth a one-line change

The error message already contains the fix. It glosses inbound as (callers) and outbound
as (callees) — the server knows exactly what the rejected word means and says so in the act of
refusing it. There is no ambiguity to resolve, no second meaning of "callers" to disambiguate
against; the mapping is already written down in the rejection.

It also costs a round trip every time, and the round trip is not free for the caller this tool is
built for: an agent burns a tool call, reads an error, and retries. That is the whole interaction
budget the README's "99% fewer tokens" is about.

The wider context is that "callers" is the more common spelling of this concept across the tools an
agent is likely to be holding at the same time. Anything wrapping this backend and exposing a
caller/callee vocabulary hits the mismatch on the boundary — I ran into it from a wrapper whose own
surface uses op: "callers", so the two names for one concept sit one call apart, and one of them
is actively refused by the other side.

Suggested fix

Accept callers → inbound and callees → outbound as input aliases, normalising to the
canonical values internally. Keep inbound/outbound as the documented names and as whatever the
response echoes — this is only about what the parser tolerates on the way in.

Both spellings in the JSON-schema enum would also let MCP clients validate either one locally,
rather than the alias being accepted by the server but rejected by client-side schema validation
first.

Not a bug

Filing this as ergonomics, not correctness. The current behaviour is well-signposted and the error
is one of the better ones in the tool — it names the valid values instead of just refusing. This is
a request to skip the round trip, not a complaint that it is wrong.

Dominant language
C
Stars
45.8k
Forks
3.8k
Avg merge
2d 18h
Merged PRs (30d)
108

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DeusData/codebase-memory-mcp

All issues in DeusData/codebase-memory-mcp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.