MCP: the first tool call after a handshake can run before the client's roots arrive
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
Direzione di ricerca
Start in src/wheelgap/mcp.py and trace how the 2024–2025 handshake handles roots/list and relative path arguments. Then read the stdio harness in tests/test_mcp.py and add the immediate-call case with a delayed roots response. Done when the call resolves against the client's root; also cover the bounded fallback and its notes entry, and describe the manual mcp SDK check in the PR.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On the 2024–2025 handshake path, the server asks the client for roots/list after notifications/initialized. The official Python SDK sends its first tools/call straight away, so that call runs before the roots answer and a relative path is resolved against the server's working directory instead of the client's project. Calls made a moment later resolve correctly.
What to do
- In
src/wheelgap/mcp.py, when aroots/listrequest is outstanding and a call has a relative path argument, wait for the answer (with a short bound, e.g. 2 s) before resolving it. If the bound passes, fall back as today and add anotesentry saying so. - On the 2026-07-28 path this doesn't apply (roots come with the request).
- Test with the existing stdio harness in
tests/test_mcp.py: a call sent immediately afterinitialized, with roots answered after a small delay, resolves against the root. - Describe a by-hand check with the
mcpSDK in the PR.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 patrickballard/wheelgap
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
patrickballard/wheelgap#269 ·
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
patrickballard/wheelgap#268 ·
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
patrickballard/wheelgap#263 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
patrickballard/wheelgap#260 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
patrickballard/wheelgap#259 ·
Tutte le issue di patrickballard/wheelgap
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
btclib-org/btclib-wallet#872 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Scheduled returns scan all accepted minion keys causing extreme loadForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
saltstack/salt#70789 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
btclib-org/btclib#3093 ·
I maintainer di solito rispondono entro 1 giorno
-
priority: low python
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
LearningCircuit/local-deep-research#8635 ·
I maintainer di solito rispondono entro 1 giorno
-
README says the land/sea mask must match the XS grid; the demo mask does not, and Step 4 worksApertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
buckai-observatory/Automated-Cloud-Removal-and-Seamless-Satellite-Image-Mosaicking-Pipeline#52 ·
I maintainer di solito rispondono entro 1 giorno