Codex MCP often treats accessible non-active projects as inaccessible instead of switching project
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Inizia individuando le istruzioni del plugin/MCP Codex e la guida agli strumenti projects-get, project-get e switch-project menzionate nell’issue. Riproduci una richiesta per un progetto non attivo, quindi aggiorna la guida in modo che controlli o cambi progetto prima di segnalare un errore di accesso e verifica che lo scenario abbia esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
In Codex sessions using the PostHog MCP/plugin, agents frequently conclude that an accessible project cannot be accessed when it is not the current active project. The project is accessible, and a follow-up prompt usually gets the agent to realise it should call switch-project first.
This happens repeatedly in coding sessions even when local repo instructions explicitly say to use the intended PostHog project and to verify/switch projects before querying.
Observed behaviour
- Codex starts with the PostHog MCP active project set to one project, for example a staging/pre-production project.
- The user asks Codex to query another project in the same organisation, for example production, sometimes providing the exact project ID.
- The agent often responds as if it does not have access to that project.
- After the user prompts again and explicitly says it does have access or should check/switch, the agent can discover the project and/or switch successfully.
Expected behaviour
When the user provides a target PostHog project name or project ID that differs from the active project, the Codex/PostHog plugin instructions should strongly guide the agent to:
- list or retrieve accessible projects if needed,
- call
switch-projectwith the requested project ID, and - only report an access problem after that switch/retrieve attempt fails.
Why this is confusing
The MCP/tool context tells the model the current active project, but in practice the user may have access to multiple projects in the same organisation. The model seems to treat "not currently active" as "not accessible" unless pushed again.
Suggested improvement
Could the Codex plugin/MCP prompt or the switch-project tool guidance be made more explicit? For example:
- If a user asks for a different project by name or ID, do not infer lack of access from the active project context.
- First use
projects-get,project-getorswitch-projectas appropriate. - Only say the project is inaccessible if those calls fail.
Setup
- Codex with the PostHog plugin installed
- PostHog MCP server configured
- Organisation has multiple projects/environments available to the same user
- Repro occurs frequently in normal coding-agent sessions
- Lingua principale
- Python
- Stelle
- 88
- Fork
- 17
- Merge medio
- 9h 9m
- PR unite (30g)
- 9
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 PostHog/ai-plugin
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
PostHog/ai-plugin#183 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
PostHog/ai-plugin#181 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
PostHog/ai-plugin#166 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
PostHog/ai-plugin#147 · 2 commenti · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PostHog/ai-plugin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kornia/kornia#5263 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
approved correction metadata
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
acl-org/acl-anthology#10133 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BasedHardware/omi#20084 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-acceptance wg/evaluation-quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vllm-project/semantic-router#4424 ·
I maintainer di solito rispondono entro 1 giorno