mcpdo: run the daemon test suites on Windows by porting the harness to named pipes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 53/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, node.js, typescript
Direzione di ricerca
Start with clients/mcpdo/src/daemon/paths.ts, clients/mcpdo/__tests__/helpers/platform.ts, and the daemon test suites gated by unixDaemonOnly; trace how they construct endpoints and wait during teardown. Run the tests on the Windows CI job and identify cases that depend on POSIX behavior. Done means the daemon suites run on Windows, only explicitly justified POSIX cases remain skipped, and the Windows coverage carve-out is removed from clients/mcpdo/vitest.config.ts.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
mcpdo's Windows daemon path has never been run by a test. Production code already uses a named pipe on win32 (getDaemonSocketPath in clients/mcpdo/src/daemon/paths.ts returns \\.\pipe\mcp-conn-<hash>, and clients/mcpdo/src/daemon/client.ts handles the pipe path when locating the token file). But the daemon test harness was written for a Unix domain socket:
- suites bind or poll
<dir>/mcpdod.sockdirectly. Windows refuses that withEACCES, and the tests then time out waiting on the daemon. - teardown waits for the socket file to vanish. A pipe never appears there, so a live daemon keeps the temp dir open and
rmSyncfails withEBUSY. - some assertions assume POSIX premises (
0700directories, thesun_pathlimit).
#2748 (PR #2906) therefore skips 127 mcpdo tests on win32 (unixDaemonOnly in clients/mcpdo/__tests__/helpers/platform.ts). It also turns off mcpdo's per-file 90% coverage threshold on Windows only (clients/mcpdo/vitest.config.ts), because the daemon modules fall below it there. The new windows CI job is green, but it doesn't show that the daemon works on Windows.
Expected
- The daemon test helpers derive the endpoint from
getDaemonSocketPathinstead of a hard-coded.sockfile, and tear down a named-pipe daemon cleanly on Windows. - The suites gated by
unixDaemonOnlyrun on thewindowsCI job. Only cases that assert genuinely POSIX-only behaviour stay skipped, each with its reason at the site. - mcpdo's per-file 90% threshold is enforced on Windows again, and the win32 carve-out in
clients/mcpdo/vitest.config.tsis removed.
Verification has to come from the windows CI job; maintainers develop on macOS.
- Lingua principale
- TypeScript
- Stelle
- 11.2k
- Fork
- 1.6k
- Merge medio
- 3h 36m
- PR unite (30g)
- 154
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un 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 modelcontextprotocol/inspector
-
Document load testing and Active Sessions on modelcontextprotocol.ioForse già presa @cliffhall l’ha presa 2 giorni fa. Apertadocumentation v2 waiting-on-docs
modelcontextprotocol/inspector#2869 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
CLI: OAuth denials and other non-usage failures exit 1 with code "error", the same as a usage errorApertabug v2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
modelcontextprotocol/inspector#2842 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
blocked chore v2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
modelcontextprotocol/inspector#2548 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
blocked chore v2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
modelcontextprotocol/inspector#2547 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Create the GitHub App for board writes and security-alert reads, and store its credentials as org secretsForse già presa @cliffhall l’ha presa 18 giorni fa. Apertachore v2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
modelcontextprotocol/inspector#2544 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di modelcontextprotocol/inspector
Issue simili
-
bug needs-triage potential-regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws/aws-sdk-js-v3#8408 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
colinhacks/zod#6743 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Packing list: the weight field drops digits on a slow connection and saves the wrong weightAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
openai/openai-node#3124 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
anthropics/anthropic-sdk-typescript#1296 ·
I maintainer di solito rispondono entro 8 giorni