protocol-conformance-test
/protocol-conformance-test
Testuje protokół sieciowy bezpośrednio, by odróżnić błąd klienta od błędu serwera, gdy klient zgłasza awarię.
- Autor
- Wsh7Ash ↗
- Repozytorium
- skillmcp ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 29.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Testuje protokół sieciowy bezpośrednio, by odróżnić błąd klienta od błędu serwera, gdy klient zgłasza awarię.
Oryginalny opis (EN)
Test the wire protocol directly, so a client bug and a server bug are distinguishable. Use when a client reports a failure and the server's own behaviour is unproven
Jak działa
- Procedure
- Signals
- Patterns
- Pitfalls
- Done when
- References
Podgląd SKILL.md
---
name: protocol-conformance-test
description: "Test the wire protocol directly, so a client bug and a server bug are distinguishable. Use when a client reports a failure and the server's own behaviour is unproven"
pack: skillmcp
version: 1.0.0
category: ai-tool
tags: [verify, protocol, testing]
---
# Protocol Conformance Test
> Test the wire protocol directly, so a client bug and a server bug are distinguishable
**Use when:** a client reports a failure and the server's own behaviour is unproven
**Avoid when:** the server is a thin library wrapper with no wire protocol of its own
## Procedure
1. Write the exact JSON-RPC lines the client should send
2. Pipe them into the server process with a bounded timeout
3. Assert the response shape, not only the presence of a reply
4. Check the jsonrpc field, id echo and error codes
5. Repeat for a malformed line and for an unknown method
6. Keep the transcript as a fixture so the test is reproducible
## Signals
- every response echoes the request id
- malformed input produces a parse error, not a crash
- an unknown method produces method-not-found
- the server keeps serving after an error line
## Patterns
**1. Piped transcript**
```text
printf '%s\n' '{"jsonrpc":"2.0",...}' | python -m skillmcp serve
```
**2. Shape assertion**
```text
jsonrpc == '2.0' and id == sent id
```
**3. Survival check**
```text
send a bad line, then a good one, expect two replies
```
## Pitfalls
- Testing through the client library, which hides the raw response
- Asserting only that some output appeared
- Forgetting that a server which crashes on a bad line fails every later call
## Done when
- happy path, malformed line and unknown method each have a fixture
- the server is shown to survive an error line
## References
- [JSON-RPC 2.0](https://www.jsonrpc.org/specification)
- [MCP - lifecycle](https://modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle)
Wersje
W bazie nie ma innych skilli o nazwie protocol-conformance-test.
Migawka bazy z 13.11.2026 · wersja paczki a36292b109c9 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90systematic-debugging
Szuka przyczyny źródłowej i naprawia błąd, gdy użytkownik zgłasza awarię, błąd, nieoczekiwane zachowanie lub niezaliczony test. - 100testing
Pisze, umieszcza i uruchamia testy serwera w repozytorium: przez klienta MCP lub wywołania funkcji, z testami protokołu w TypeScript i Pythonie. - 81fix-and-verify
Diagnozuje błąd, naprawia go, testuje i dowodzi, że poprawka działa, gdy ktoś zgłasza usterkę. - 100protocol-version-handshake
Negocjuje jawnie wersję protokołu i przypina tę, którą serwer faktycznie obsługuje, gdy klient może działać na innej wersji. - 100bug-fix-protocol
Stosuje 8-krokowy protokół naprawy błędów, który traktuje każdy błąd produkcyjny jako dwie awarie: wadę kodu i system testów, który ją przepuścił, także przy post-mortem i audycie przeoczonego defektu. - 100esp32-mqtt-conformance-testing
Testuje zgodność klienta MQTT na ESP32 ze specyfikacją protokołu i oczekiwaniami brokera.