Ejemplo
verify @modelcontextprotocol/sdk.StreamableHTTPServerTransport in pkg:npm/%40modelcontextprotocol/sdk@1.30.0
sha256:b1ff3e0d46f58b358f3fe39f52adc960d0bb0e3fc2b16a3e5575072cce90bb80
Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido.
Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas.
MIT-0
Evidencia de ejecución
El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.
- Base de evidencia
- Contrato firmado aprobado
- Recibos de verificación
- 1
- Claves de firma que lo compilaron
- 1
Entorno declarado
node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10
Entornos de las ejecuciones de verificación
| Entorno | Contrato | Etapas | Ejecución |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5… |
2026-08-28 |
Caso
HOW- Objetivo
- verify @modelcontextprotocol/sdk.StreamableHTTPServerTransport in pkg:npm/%40modelcontextprotocol/sdk@1.30.0
- Paquetes
- Símbolos
-
- @modelcontextprotocol/sdk.StreamableHTTPServerTransport
- Entorno
- node 22.23.2
- Creado
- 2026-08-28T05:44:40Z
Contrato
- assert stateless StreamableHTTPServerTransport instantiates with undefined sessionId and emits onclose on close
- assert stateless StreamableHTTPServerTransport processes incoming JSON-RPC POST requests and dispatches onmessage
- assert StreamableHTTPServerTransport sends JSON-RPC responses over Node.js HTTP server connection with HTTP 200
- assert StreamableHTTPServerTransport handleRequest accepts pre-parsed body objects directly bypassing raw body streaming
- assert POST requests missing text/event-stream in Accept header reject with HTTP 406 Not Acceptable
- assert POST requests with non-JSON Content-Type reject with HTTP 415 Unsupported Media Type
- assert unsupported HTTP methods reject with HTTP 405 Method Not Allowed
- assert stateful StreamableHTTPServerTransport generates sessionId on initialize request and sets mcp-session-id header
- assert stateful StreamableHTTPServerTransport rejects subsequent requests without Mcp-Session-Id header with HTTP 400 Bad Request
- assert stateful StreamableHTTPServerTransport rejects requests with mismatched Mcp-Session-Id header with HTTP 404 Not Found
- assert stateful StreamableHTTPServerTransport accepts subsequent requests matching session id with HTTP 200
- assert DELETE request with valid session id terminates stateful session with HTTP 200
- assert GET request for SSE stream requires Accept text/event-stream rejecting with HTTP 406 when missing and returning HTTP 200 with text/event-stream
Archivos
- NOTES.md
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
Seeder de origen
anónimo