stateless-mcp-incident-lab-typescript-sdk
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stateless-mcp-incident-lab-typescript-sdkrun the conformance test suite"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stateless MCP Incident Lab — TypeScript SDK
Official @modelcontextprotocol/sdk implementation of the Stateless MCP Incident Lab.
Requirements
Node.js 24+
The external conformance repository checked out as
../stateless-mcp-incident-lab-conformance(or setCONFORMANCE_PATH)
Related MCP server: Vulnerable MCP Server
Development
npm ci
npm run format
npm run lint
npm run typecheck
npm run test:architecture
npm test
npm run test:coverage
npm run test:conformance
npm run test:mutationThe external suite holds 197 golden contracts; the SDK lane selects and runs 159 of them. Conformance fixtures remain in the external repository and are never copied into this implementation.
Runtime
npm run build
npm startThe server listens on port 3102 by default (PORT overrides it). Every request crosses an official @modelcontextprotocol/sdk Server/Client pair over InMemoryTransport before application dispatch, carrying the request's real JSON-RPC method, its params, and the negotiated protocol version for the SDK's own request schema to validate. The lab's 2026-07-28 wire revision — the _meta protocol-version envelope, resultType/requestState/inputRequests results, and Mcp-Method/Mcp-Name header mirroring — is not representable by the pinned SDK's HTTP transport, so HTTP framing and header validation remain in this adapter:
MCP:
POST /sdk/mcpHealth:
GET /sdk/healthz
The same executable is the network client; the command group comes first, with no client prefix:
node dist/src/main.js discover http://localhost:3102/sdk/mcp
node dist/src/main.js tools list http://localhost:3102/sdk/mcp
node dist/src/main.js tools call http://localhost:3102/sdk/mcp get_incident '{"incident_id":"..."}'Configuration
PORT(default3102) andHOST(default127.0.0.1; the image sets0.0.0.0).REPLICA_ID— the replica identity reported in_metaon discovery, catalog, MRTR, and streamed diagnostic results, and in telemetry records. Falls back toHOSTNAME(the container ID when running in Docker) and then tosdk-local-1; the same value is used on every surface.MCP_REQUEST_STATE_SECRET— at least 32 bytes. Required whenNODE_ENV=production: without it/sdk/healthzreports 503 and signingrequestStatefails. Outside production a per-process random key is used, so signed state does not survive a restart or span replicas.EFFECT_STORE—memoryfor explicit local, per-replica state, ordynamodbfor durable shared state.DYNAMODB_TABLE— required withEFFECT_STORE=dynamodb. Create this table with string partition and sort keys namedPKandSK; enable DynamoDB TTL on the numeric attributettlso expired incident rows are eventually reaped. The single-table adapter uses strongly consistent reads, conditional lifecycle writes, and an atomic effect-claim/incident-mitigation transaction. Its health probe performs one non-mutating strongly consistent read when the same store instance backs both persistence interfaces.
Container
docker build -t incident-lab-sdk .
docker run --rm -p 3102:3102 \
-e EFFECT_STORE=memory \
-e MCP_REQUEST_STATE_SECRET=0123456789abcdef0123456789abcdef \
incident-lab-sdk
curl http://localhost:3102/sdk/healthzThe Docker test target accepts the conformance repository as a named build context, as demonstrated by CI.
Quality gates
CI enforces formatting, lint, type checking, standalone architecture verification against the sdk-provider assertion files in the external suite, unit tests, overall coverage thresholds (90% statements/functions/lines, 80% branches) plus 100% statement/branch/function/line coverage for the protocol codec and validator, the complete SDK conformance lane, production dependency audit, build, mutation score ≥80%, the charter invariants (197 external contracts, zero vendored fixtures, the architecture contract directories, and no suppression pragmas in src/), the container test target, and a build-and-probe of the production image against /sdk/healthz and a live server/discover.
The mutation gate is scoped to the decision-dense modules listed in stryker.config.mjs: the incident lifecycle and state machine, MRTR and request-state signing, the client cache and cache-key laws, the domain transition table, header codec, protocol validation, the capability scanner, version recovery, the official SDK dispatch boundary (sdk-registry.ts:59-107), and the complete DynamoDB adapter. The ≥80% score speaks only to those modules. It deliberately excludes the HTTP framing in server.ts and the request-metadata validation in http.ts, whose behaviour is covered instead by the live-server integration tests in test/unit/main.test.ts and by the external conformance lane. The implementation stub scan stays a local step because it is supplied by the separate cdd-skills tooling repository, which CI does not check out.
This server cannot be deployed
Maintenance
Related MCP Connectors
Experimental MCP server for current empirical verification of explicit public HTTPS endpoint claims.
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Conformance checker for MCP servers. Free, no key, verdicts recomputable and re-measured daily.
An MCP server that provides Javelin Standalone Guardrails
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceA minimal reference implementation of an MCP server that responds with "Hello, World" via Streamable HTTP. Serves as a baseline for integration testing and MCP client development with production-ready features including health checks, metrics, and containerized deployment.325,948 npm-
- FlicenseNot gradedqualityDmaintenanceA deliberately insecure MCP server designed as a pentest lab to demonstrate common vulnerabilities in MCP deployments.-
- AlicenseNot gradedqualityCmaintenanceEnables a stateless, horizontally scaled MCP server using the 2026-07-28 specification, with tools for load testing and instance-aware operations.MIT
- FlicenseNot gradedqualityBmaintenanceAn MCP server exposing narrowly scoped storage workflows with Overseer approval integration and redacted execution evidence, currently in fixture-only development for testing via stdio.-