code_search (MCP): absolute pathFilter to another indexed checkout is silently ignored and returns results from the root repository
@Elizaveta239 ci sta già lavorando.
Dal 13/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- git
- Ambito
- devtools
Direzione di ricerca
Start with the MCP code_search handler and how it resolves pathFilter in --multi-repo mode, and check whether the absolute path is matched against indexed repositories at all. Reproduce with two indexed sibling checkouts, one as the MCP root and one as the filter target, then compare with jbcontext search --project-path. Done means an absolute pathFilter returns results from the named repository or fails with an explicit error, and the storage-mode lookup is confirmed correct.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version: jbcontext 0.9.15 (build 969, commit b319f597b7, channel stable), Linux
Steps to reproduce
- Repo A and repo B are sibling checkouts (
~/git/repo-a,~/git/repo-b), both indexed. - Start
jbcontext mcp --multi-repowith the MCP root set to repo A (this is what happens when an agent session is started inside repo A). - Call
code_searchwithpathFilterset to the absolute path of repo B.
Expected
Results from repo B. The tool description in --multi-repo mode says:
A pathFilter naming a checkout under the workspace root (or any absolute path) scopes the search to the local repositories it covers
Actual
Results come from repo A, with no error or warning. An agent reading the output has no way to tell the filter was ignored and takes the results as coming from repo B.
Variants:
- If repo A has no index, the same call fails with
Error: No index found for repository '<repo A>'., even though the filter points at repo B, which is indexed. - A relative
pathFilterof../repo-breturns no results. - Same behavior without
--multi-repo.
What does work
--multi-repowith the MCP root set to the parent directory that contains both checkouts, usingpathFilter=repo-bor the absolute path.- The CLI from inside repo A:
jbcontext search --project-path ~/git/repo-b "<query>".
Possibly related
jbcontext mcp --git-remote-url <repo B url> started from repo A returns No index found for repository '<repo B id>' (tried ssh and https URLs), although jbcontext status inside repo B lists indices. In my setup repo B's index is in remote storage and repo A's is local, in case the storage mode is being taken from the working directory.
Feature request
An explicit repository / project-path parameter on code_search (like --project-path on the CLI), so an agent started inside one repository can search another indexed checkout. Failing that, an error when pathFilter resolves outside the repositories being searched would avoid the silent wrong-repo results.
- Lingua principale
- Shell
- Stelle
- 38
- Fork
- 4
- Merge medio
- 5h 26m
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di JetBrains/context
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Marketplace Configuration File is missingForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Jbcontext requires login manually every dayForse di nuovo libera @Elizaveta239 l’ha presa 34 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Tutte le issue di JetBrains/context
Issue simili
-
[Config] Neo Coolcam NAS-WS01Z (0x0258:0x0003:0x1085): param 2 "Alarm Interval" is 1 byte, not 2Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
pearu/agent-sandbox#412 ·
I maintainer di solito rispondono entro 1 giorno
-
fakephone selfcheck still expects the 16 px snap that ISS-39 replaced (1072x2336 vs 1080x2340)Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ScoopInstaller/Nonportable#665 ·
-
bot-found documentation priority: P3
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
madenvel/KalinkaPlayer#602 ·