sh-mcp/packages/shared/src
Adam Moussa a60a5a5794 Add security-weighted test suite + coverage gate; wire tooling
Add tests for the highest-risk surface (build-plan §5, design.md §7.3):
tool-hiding, server-side scope enforcement (incl. forced hidden calls),
audience binding, input-schema validation, finance redaction on egress, audit
emission with hashed args, prompt-injection regression (tool output is data),
rate limiting, MCP conformance (in-memory transport round-trip), OpenAPI 3.1
validity, and local-auth safety. Add HTTP integration tests (supertest) for both
servers and per-package dev-client tests. 405 tests pass.

Wire the coverage gate into vitest.config.ts: 80% overall, with per-file
thresholds on the auth + dispatch crown jewels; exclude deferred real client
stubs, entrypoints, cdk apps, and aws-only config from the gate (documented).
Extend eslint flat config + add .prettierignore to cover servers/. Commit the
updated package-lock.json.
2026-06-26 12:48:26 -04:00
..
audit.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
audit.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
auth.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
cognito-auth.test.ts Phase 0b slice: monorepo scaffold + @sh-mcp/shared core + integration packages (#2) 2026-06-26 12:42:17 -04:00
cognito-auth.ts Phase 0b slice: monorepo scaffold + @sh-mcp/shared core + integration packages (#2) 2026-06-26 12:42:17 -04:00
dispatch.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
dispatch.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
http.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
http.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
index.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
local-auth.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
local-auth.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
mcp.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
mcp.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
openapi-document.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
openapi.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
openapi.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
rate-limit.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
rate-limit.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00
redact.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
redact.ts Add in-memory dev clients; make package tool exports lazy 2026-06-26 12:48:26 -04:00
registry.ts Phase 0b slice: monorepo scaffold + @sh-mcp/shared core + integration packages (#2) 2026-06-26 12:42:17 -04:00
types.ts Phase 0b slice: monorepo scaffold + @sh-mcp/shared core + integration packages (#2) 2026-06-26 12:42:17 -04:00
visibility.test.ts Add security-weighted test suite + coverage gate; wire tooling 2026-06-26 12:48:26 -04:00
visibility.ts Add shared transport: dispatch, MCP + OpenAPI adapters, local auth 2026-06-26 12:48:26 -04:00