diff --git a/.config/repo/conformance-baseline.yaml b/.config/repo/conformance-baseline.yaml new file mode 100644 index 00000000..ac506cd7 --- /dev/null +++ b/.config/repo/conformance-baseline.yaml @@ -0,0 +1,57 @@ +# Known MCP conformance failures for scripts/conformance.mts +# (@modelcontextprotocol/conformance, spec 2025-11-25). +# +# The CLI exits 1 on a failure that is not listed here (a regression) and on a +# listed scenario that now passes (a stale entry: delete it). Every entry has a +# one-line reason. socket-mcp advertises only the `tools` capability, and the +# tools-call-* scenarios call fixture tools (test_image_content, ...) that only +# the suite's reference server defines. +server: + # No `logging` capability: logging/setLevel answers -32601. + - logging-set-level + # No `completions` capability: completion/complete answers -32601. + - completion-complete + # Fixture tool test_image_content does not exist; no tool returns images. + - tools-call-image + # Fixture tool test_audio_content does not exist; no tool returns audio. + - tools-call-audio + # Fixture tool test_embedded_resource does not exist; no tool embeds resources. + - tools-call-embedded-resource + # Fixture tool test_multiple_content_types does not exist; tools return text only. + - tools-call-mixed-content + # No `logging` capability, so the tool cannot emit log notifications. + - tools-call-with-logging + # Fixture tool test_tool_with_progress does not exist; tools send no progress. + - tools-call-with-progress + # Fixture tool test_sampling does not exist; the server never requests sampling. + - tools-call-sampling + # Fixture tool test_elicitation does not exist; the server never elicits. + - tools-call-elicitation + # Fixture tool for SEP-1034 elicitation defaults does not exist; no elicitation. + - elicitation-sep1034-defaults + # Fixture tool for SEP-1330 elicitation enums does not exist; no elicitation. + - elicitation-sep1330-enums + # No `resources` capability: resources/list answers -32601. + - resources-list + # No `resources` capability: resources/read answers -32601. + - resources-read-text + # No `resources` capability: resources/read answers -32601. + - resources-read-binary + # No `resources` capability: resources/templates/list answers -32601. + - resources-templates-read + # No `resources` capability: resources/subscribe answers -32601. + - resources-subscribe + # No `resources` capability: resources/unsubscribe answers -32601. + - resources-unsubscribe + # No `prompts` capability: prompts/list answers -32601. + - prompts-list + # No `prompts` capability: prompts/get answers -32601. + - prompts-get-simple + # No `prompts` capability: prompts/get answers -32601. + - prompts-get-with-args + # No `prompts` capability: prompts/get answers -32601. + - prompts-get-embedded-resource + # No `prompts` capability: prompts/get answers -32601. + - prompts-get-with-image + # Stateless serving issues no Mcp-Session-Id by design; the scenario only warns, and baseline mode counts a warning as a failure. + - server-sse-multiple-streams diff --git a/.github/workflows/ci-gates.yml b/.github/workflows/ci-gates.yml index 6a14d325..768dacfb 100644 --- a/.github/workflows/ci-gates.yml +++ b/.github/workflows/ci-gates.yml @@ -68,3 +68,35 @@ jobs: path: ${{ env.SOCKET_MCP_TERMINAL_ARTIFACTS }} include-hidden-files: true if-no-files-found: ignore + + conformance: + name: MCP conformance + runs-on: ubuntu-26.04 + timeout-minutes: 5 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version-file: .node-version + - name: Install pnpm + run: npm install --global pnpm@12.14.0 + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Build + run: pnpm run build + # Starts the built server in HTTP mode on localhost with a dummy Socket + # API token and runs @modelcontextprotocol/conformance against it. Fails + # on a scenario missing from .config/repo/conformance-baseline.yaml or on + # a baseline entry that now passes. + - name: Run MCP conformance suite + run: pnpm run conformance + - name: Upload conformance results + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a + with: + name: mcp-conformance + path: .cache/conformance + include-hidden-files: true + if-no-files-found: ignore diff --git a/docs/commands.md b/docs/commands.md index 3cf24327..607d8052 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -65,23 +65,24 @@ The transport is stateless. Each `POST /` is self-contained, with no session to Environment variables for HTTP mode: -| Variable | Required | Default | Description | -| ------------------------------------------ | ----------------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `MCP_HTTP_MODE` | Yes, unless you pass `--http` | `false` | Set to `true` to serve HTTP instead of stdio. The `--http` CLI flag does the same thing. | -| `MCP_PORT` | No | `3000` | Port to bind the HTTP server to. | -| `SOCKET_API_TOKEN` | Optional | None | API token for outbound API calls. Use it only as a fallback for local stdio. `socket-mcp login` is the recommended local sign-in. HTTP OAuth does not need a startup token. See the alias list below. | -| `SOCKET_OAUTH_ISSUER` | With OAuth | None | OAuth issuer URL. Must be `https` on a public host. See "Enabling OAuth" below. | -| `SOCKET_OAUTH_INTROSPECTION_CLIENT_ID` | With OAuth | None | Client ID used for RFC 7662 token introspection. | -| `SOCKET_OAUTH_INTROSPECTION_CLIENT_SECRET` | With OAuth | None | Client secret used for RFC 7662 token introspection. | -| `SOCKET_OAUTH_REQUIRED_SCOPES` | No | None | Scopes required on incoming access tokens, separated by spaces or commas. When unset, any active token passes. | -| `SOCKET_API_BASE_URL` | No | None | Override the upstream Socket API endpoint. Falls back to `https://api.socket.dev` when unset. | -| `SOCKET_MCP_OAUTH_BASE_URL` | No | API URL | Override the issuer used by local stdio OAuth. By default, OAuth follows `SOCKET_API_BASE_URL`; an `api.` hostname maps to its matching `mcp.` resource host. Non-loopback URLs must use HTTPS. | -| `SOCKET_DEBUG` | No | `false` | Turns on verbose request and cache tracing on stderr, points `depscore` at `http://localhost:8866`, and permits a local OAuth issuer. | -| `SOCKET_MCP_APPS_CHALLENGE_TOKEN` | For domain verification | None | Token the OpenAI plugin portal issues for domain verification. When set, `GET /.well-known/openai-apps-challenge` returns it as plain text; when unset, that path returns `404`. | -| `SOCKET_MCP_SENTRY_DSN` | No | None | Sentry DSN for error reporting; it must use HTTPS. When unset, reporting is off: the Sentry SDK is never loaded and nothing is sent. When set, HTTP mode sends scrubbed events for server-side failures. See [Error reporting](service.md#error-reporting). | -| `SOCKET_MCP_SENTRY_ENVIRONMENT` | No | `production` | Sentry `environment` reported events carry, such as `staging`. Read only when `SOCKET_MCP_SENTRY_DSN` is set. | -| `SOCKET_MCP_SENTRY_TRACES_SAMPLE_RATE` | No | `0` | Share of `tools/call` requests sent to Sentry as transactions, from 0 to 1. `0`, unset or out of range sends none. Read only when `SOCKET_MCP_SENTRY_DSN` is set. See [Tracing](service.md#tracing). | -| `TRUST_PROXY` | No | `false` | Trust `X-Forwarded-Host` and `X-Forwarded-Proto` when building OAuth metadata URLs. Enable only behind a reverse proxy that rewrites them. | +| Variable | Required | Default | Description | +| ------------------------------------------ | ----------------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `MCP_HTTP_MODE` | Yes, unless you pass `--http` | `false` | Set to `true` to serve HTTP instead of stdio. The `--http` CLI flag does the same thing. | +| `MCP_HOST` | No | All interfaces | Address to bind the HTTP server to, for example `127.0.0.1` to accept loopback connections only. | +| `MCP_PORT` | No | `3000` | Port to bind the HTTP server to. | +| `SOCKET_API_TOKEN` | Optional | None | API token for outbound API calls. Use it only as a fallback for local stdio. `socket-mcp login` is the recommended local sign-in. HTTP OAuth does not need a startup token. See the alias list below. | +| `SOCKET_OAUTH_ISSUER` | With OAuth | None | OAuth issuer URL. Must be `https` on a public host. See "Enabling OAuth" below. | +| `SOCKET_OAUTH_INTROSPECTION_CLIENT_ID` | With OAuth | None | Client ID used for RFC 7662 token introspection. | +| `SOCKET_OAUTH_INTROSPECTION_CLIENT_SECRET` | With OAuth | None | Client secret used for RFC 7662 token introspection. | +| `SOCKET_OAUTH_REQUIRED_SCOPES` | No | None | Scopes required on incoming access tokens, separated by spaces or commas. When unset, any active token passes. | +| `SOCKET_API_BASE_URL` | No | None | Override the upstream Socket API endpoint. Falls back to `https://api.socket.dev` when unset. | +| `SOCKET_MCP_OAUTH_BASE_URL` | No | API URL | Override the issuer used by local stdio OAuth. By default, OAuth follows `SOCKET_API_BASE_URL`; an `api.` hostname maps to its matching `mcp.` resource host. Non-loopback URLs must use HTTPS. | +| `SOCKET_DEBUG` | No | `false` | Turns on verbose request and cache tracing on stderr, points `depscore` at `http://localhost:8866`, and permits a local OAuth issuer. | +| `SOCKET_MCP_APPS_CHALLENGE_TOKEN` | For domain verification | None | Token the OpenAI plugin portal issues for domain verification. When set, `GET /.well-known/openai-apps-challenge` returns it as plain text; when unset, that path returns `404`. | +| `SOCKET_MCP_SENTRY_DSN` | No | None | Sentry DSN for error reporting; it must use HTTPS. When unset, reporting is off: the Sentry SDK is never loaded and nothing is sent. When set, HTTP mode sends scrubbed events for server-side failures. See [Error reporting](service.md#error-reporting). | +| `SOCKET_MCP_SENTRY_ENVIRONMENT` | No | `production` | Sentry `environment` reported events carry, such as `staging`. Read only when `SOCKET_MCP_SENTRY_DSN` is set. | +| `SOCKET_MCP_SENTRY_TRACES_SAMPLE_RATE` | No | `0` | Share of `tools/call` requests sent to Sentry as transactions, from 0 to 1. `0`, unset or out of range sends none. Read only when `SOCKET_MCP_SENTRY_DSN` is set. See [Tracing](service.md#tracing). | +| `TRUST_PROXY` | No | `false` | Trust `X-Forwarded-Host` and `X-Forwarded-Proto` when building OAuth metadata URLs. Enable only behind a reverse proxy that rewrites them. | The three OAuth variables are a set: configure all three or none. Setting only some of them makes the server print `Incomplete OAuth configuration for HTTP mode` and exit `1`, rather than quietly start unauthenticated. diff --git a/lib/cli.mts b/lib/cli.mts index 4f492d03..da788cfe 100644 --- a/lib/cli.mts +++ b/lib/cli.mts @@ -13,6 +13,7 @@ import { errorMessage } from '@socketsecurity/lib/errors/message' import { getMcpHttpMode, + getMcpHost, getMcpPort, getSocketApiToken, getSocketMcpSentryDsn, @@ -46,6 +47,7 @@ export interface SocketMcpCliDeps { readonly apiToken: string | undefined readonly argv: readonly string[] readonly envHttpMode: boolean + readonly host: string | undefined readonly loadOAuthMetadata: () => Promise readonly port: number readonly promptForApiKey: () => Promise @@ -78,6 +80,7 @@ export function createSocketMcpCliDeps(): SocketMcpCliDeps { apiToken: getSocketApiToken(), argv: process.argv, envHttpMode: getMcpHttpMode(), + host: getMcpHost(), loadOAuthMetadata, port: getMcpPort(), promptForApiKey: getApiKeyInteractively, @@ -215,7 +218,7 @@ export async function runSocketMcpCli(deps: SocketMcpCliDeps): Promise { tracesSampleRate: deps.sentryTracesSampleRate, }) } - deps.startHttpServer(deps.port) + deps.startHttpServer(deps.port, deps.host) return 0 } diff --git a/lib/env.mts b/lib/env.mts index 2ace10cf..1dd228e0 100644 --- a/lib/env.mts +++ b/lib/env.mts @@ -4,8 +4,8 @@ * the catalog-pinned `lib@5.28.0`. The functions fall into * two groups: * - * 1. mcp-specific (MCP_HTTP_MODE, MCP_PORT, TRUST_PROXY) — these will never live - * in the canonical socket-lib env surface; they belong here. + * 1. mcp-specific (MCP_HTTP_MODE, MCP_HOST, MCP_PORT, TRUST_PROXY) — these will + * never live in the canonical socket-lib env surface; they belong here. * 2. naming drift (`getSocketApiUrl` → `getSocketApiBaseUrl` in lib@5.28+) and * OAuth getters that haven't shipped upstream yet — re-exports / shims * that keep the mcp call sites stable until lib catches up. When lib @@ -49,6 +49,12 @@ export function getMcpPort(): number { return envInt('MCP_PORT') ?? 3000 } +// Unset keeps Node's default of listening on every interface, which deployed +// servers rely on. Set it (for example to 127.0.0.1) to bind one address. +export function getMcpHost(): string | undefined { + return envString('MCP_HOST') +} + // API URL — bridge for naming drift. lib@5.28.0 exposes // `getSocketApiBaseUrl`; older mcp code asks for `getSocketApiUrl`. // Both names resolve to the same value (SOCKET_API_BASE_URL or its diff --git a/lib/http-server.mts b/lib/http-server.mts index ec828062..2129ea7e 100644 --- a/lib/http-server.mts +++ b/lib/http-server.mts @@ -364,7 +364,7 @@ export async function routeRequest( // Boot the HTTP MCP server: build the MCP handler, create the Node HTTP // server, route requests through `routeRequest`, listen, and log the start // banner. -export function startHttpServer(port: number): void { +export function startHttpServer(port: number, host?: string): void { logger.info(`Starting HTTP server on port ${port}`) // One handler for the process. It calls `createConfiguredServer` per @@ -389,7 +389,7 @@ export function startHttpServer(port: number): void { ) }) - httpServer.listen(port, () => { + const onListening = () => { const address = httpServer.address() if (typeof address === 'object' && address !== null) { listeningPort = address.port @@ -398,5 +398,10 @@ export function startHttpServer(port: number): void { `Socket MCP HTTP server version ${VERSION} started successfully on port ${listeningPort}`, ) logger.info(`Connect to: http://localhost:${listeningPort}/`) - }) + } + if (host === undefined) { + httpServer.listen(port, onListening) + } else { + httpServer.listen(port, host, onListening) + } } diff --git a/package.json b/package.json index 08314b03..87795d0b 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "repo:type": "tsc --noEmit -p tsconfig.json", "repo:scan": "node scripts/scan.mts", "clean": "node scripts/clean.mts", + "conformance": "node scripts/conformance.mts", "cover": "vitest run --coverage --config .config/repo/vitest.config.mts", "debug-http": "node ./mock-client/http-client.mts", "debug-sdk": "node ./mock-client/stdio-client.mts", @@ -71,6 +72,7 @@ "devDependencies": { "@anthropic-ai/mcpb": "catalog:", "@modelcontextprotocol/client": "catalog:", + "@modelcontextprotocol/conformance": "catalog:", "@modelcontextprotocol/core": "catalog:", "@modelcontextprotocol/node": "catalog:", "@modelcontextprotocol/server": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93398747..5f681c6f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -170,6 +170,9 @@ catalogs: '@modelcontextprotocol/client': specifier: 2.4.0 version: 2.4.0 + '@modelcontextprotocol/conformance': + specifier: 0.1.16 + version: 0.1.16 '@modelcontextprotocol/core': specifier: 2.4.0 version: 2.4.0 @@ -322,6 +325,9 @@ importers: '@modelcontextprotocol/client': specifier: 'catalog:' version: 2.4.0 + '@modelcontextprotocol/conformance': + specifier: 'catalog:' + version: 0.1.16(supports-color@7.2.0) '@modelcontextprotocol/core': specifier: 'catalog:' version: 2.4.0 @@ -378,7 +384,7 @@ importers: version: 4.10.2 mcp-tada: specifier: 'catalog:' - version: 0.5.0(@modelcontextprotocol/client@2.4.0)(typescript@7.1.0-dev.20261015.1) + version: 0.5.0(@modelcontextprotocol/client@2.4.0)(@modelcontextprotocol/sdk@1.32.2(supports-color@7.2.0)(zod@3.25.76))(typescript@7.1.0-dev.20261015.1) nock: specifier: 'catalog:' version: 14.0.17 @@ -529,6 +535,10 @@ packages: resolution: {integrity: sha512-LgrD2OphHuG12vfKFKz6SOnq7bKHQmhGJIAYdD+MZBn2npHEyry6uD8zvktodtl5CQM85MO0anUyD9JwmUmxww==} engines: {node: '>=20'} + '@modelcontextprotocol/conformance@0.1.16': + resolution: {integrity: sha512-GI7qiN0r39/MH2srVUR3AXaEN0YLCro20lIBbnvc1frBhszenxvUifBuTzxeVQVagILfBzCIcnungUOma8OrgA==} + hasBin: true + '@modelcontextprotocol/core@2.4.0': resolution: {integrity: sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q==} engines: {node: '>=20'} @@ -539,6 +549,16 @@ packages: peerDependencies: '@modelcontextprotocol/server': ^2.4.0 + '@modelcontextprotocol/sdk@1.32.2': + resolution: {integrity: sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==} + engines: {node: '>=18'} + peerDependencies: + '@cfworker/json-schema': ^4.1.1 + zod: 3.25.76 + peerDependenciesMeta: + '@cfworker/json-schema': + optional: true + '@modelcontextprotocol/server@2.4.0': resolution: {integrity: sha512-rgR9yxSaAJ+bcsi/XroT/S2AfPiIWloXAnrdfYSCms9ivVju0ishu/wW0J21Ho6+ZOR1r7RyeRbjiRuF87ix5Q==} engines: {node: '>=20'} @@ -547,6 +567,64 @@ packages: resolution: {integrity: sha512-VVPPgHyQ6ShqnrmDWuxjmUIsO9gWyOZFmuOfLd9LfBGQJwZfy0gvv9pbHSJuoFNIYC7ZDX9aoFwowjcdSC4E8w==} engines: {node: '>=18'} + '@octokit/auth-token@6.0.0': + resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==} + engines: {node: '>= 20'} + + '@octokit/core@7.0.8': + resolution: {integrity: sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==} + engines: {node: '>= 20'} + + '@octokit/endpoint@11.0.5': + resolution: {integrity: sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==} + engines: {node: '>= 20'} + + '@octokit/graphql@9.0.5': + resolution: {integrity: sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==} + engines: {node: '>= 20'} + + '@octokit/openapi-types@27.0.0': + resolution: {integrity: sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==} + + '@octokit/openapi-types@29.0.1': + resolution: {integrity: sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==} + + '@octokit/plugin-paginate-rest@14.0.0': + resolution: {integrity: sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==} + engines: {node: '>= 20'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-request-log@6.0.0': + resolution: {integrity: sha512-UkOzeEN3W91/eBq9sPZNQ7sUBvYCqYbrrD8gTbBuGtHEuycE4/awMXcYvx6sVYo7LypPhmQwwpUe4Yyu4QZN5Q==} + engines: {node: '>= 20'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-rest-endpoint-methods@17.0.0': + resolution: {integrity: sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==} + engines: {node: '>= 20'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/request-error@7.1.2': + resolution: {integrity: sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==} + engines: {node: '>= 20'} + + '@octokit/request@10.0.16': + resolution: {integrity: sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==} + engines: {node: '>= 20'} + + '@octokit/rest@22.0.1': + resolution: {integrity: sha512-Jzbhzl3CEexhnivb1iQ0KJ7s5vvjMWcmRtq5aUsKmKDrRW6z3r84ngmiFKFvpZjpiU/9/S6ITPFRpn5s/3uQJw==} + engines: {node: '>= 20'} + + '@octokit/types@16.0.0': + resolution: {integrity: sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==} + + '@octokit/types@18.0.0': + resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==} + '@open-draft/deferred-promise@2.2.0': resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==} @@ -924,6 +1002,10 @@ packages: '@sinclair/typebox@0.34.52': resolution: {integrity: sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw==} + '@socketregistry/es-define-property@1.0.7': + resolution: {integrity: sha512-pCJr9kYvUKzIZQUbkSzHW/PlZ5cvm4DXmxFMBmGydScVKxri4/BBdh9ASW+38/82pdaE5lTK92AN+MYydJIQCw==} + engines: {node: '>=18'} + '@socketregistry/packageurl-js@1.7.0': resolution: {integrity: sha512-1k7kRMrq7BAogHixLTGFVYCSsR6PAp1QUaSK205Eb1OUh9ElXNjQoG9xbzMLMx2m0QPhhp3eLneZl36DmU880A==} engines: {node: '>=18.20.8', npm: '>=10.8.2', pnpm: '>=12.12.0'} @@ -932,6 +1014,10 @@ packages: resolution: {integrity: sha512-jbEY37bJn51W9pP1pXxIoGcQbmbi9EQDtnXfWBjGLNvKC1iEyNLOaGm8ee7dN7Z+KgJdQbrrDjjD3HbGeOFC4A==} engines: {node: '>=18'} + '@socketregistry/side-channel@1.0.10': + resolution: {integrity: sha512-nqm2QgbXHldY6DgIBap3i1MlQms+eP7zIC0vPuyy9FmxF62ITa80hjj/3w6zH7DCxV4nQBcJsz3CaGNulQAP7g==} + engines: {node: '>=18'} + '@socketsecurity/lib@7.2.0': resolution: {integrity: sha512-mhnRTDARxD4DHWyeH8qVep1RBemOR713yna0hcJxs6IWWeHdT4cJs0WAmkM5jYvBOdccwH7IPa0VYLqf2g5jiw==} engines: {node: '>=18.20.8', npm: ^11.19.0 || >=12.0.2, pnpm: '>=12.12.0'} @@ -1281,6 +1367,16 @@ packages: '@xterm/headless@6.0.0': resolution: {integrity: sha512-5Yj1QINYCyzrZtf8OFIHi47iQtI+0qYFPHmouEfG8dHNxbZ9Tb9YGSuLcsEwj9Z+OL75GJqPyJbyoFer80a2Hw==} + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + ansi-escapes@4.3.2: resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} engines: {node: '>=8'} @@ -1300,6 +1396,17 @@ packages: ast-v8-to-istanbul@1.0.7: resolution: {integrity: sha512-kFL68AG6ajd8fg248zwM9GQrUWEp79gsmjum34OEXjs4yHuUMZfYKwOLW9GMmB4oNvVrj+EAGxsP7ye2UR9UlA==} + before-after-hook@4.0.0: + resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==} + + body-parser@2.4.0: + resolution: {integrity: sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==} + engines: {node: '>=18'} + + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + chai@6.3.0: resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} @@ -1322,9 +1429,29 @@ packages: resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} engines: {node: '>=16'} + content-disposition@2.0.1: + resolution: {integrity: sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==} + engines: {node: '>=18'} + + content-type@2.1.0: + resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} + engines: {node: '>=18'} + convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + + cors@2.8.6: + resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} + engines: {node: '>= 0.10'} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -1338,13 +1465,27 @@ packages: supports-color: optional: true + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + detect-libc@2.1.2: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + + encodeurl@2.0.3: + resolution: {integrity: sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==} + engines: {node: '>= 0.8'} + es-module-lexer@2.3.2: resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + escape-string-regexp@5.0.0: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} @@ -1352,6 +1493,10 @@ packages: estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + eventsource-parser@3.1.1: resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==} engines: {node: '>=18.0.0'} @@ -1364,6 +1509,16 @@ packages: resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} + express-rate-limit@8.7.5: + resolution: {integrity: sha512-wi+v38cx2EqD0JnhE/e74o5tFqKWUOAPFJIgyEiqJ8v2MNpoOAA3kI2hXYOI+YM+HE5yqbdAlVxm2GqOIeYOgA==} + engines: {node: '>= 16'} + peerDependencies: + express: '>= 4.11' + + express@5.3.0: + resolution: {integrity: sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==} + engines: {node: '>= 18'} + external-editor@3.1.0: resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} engines: {node: '>=4'} @@ -1372,6 +1527,12 @@ packages: resolution: {integrity: sha512-iK2f+YrcmoeGqk6fA0ea2bptcu/itMIm4NfEozq6N25+aG6h7s5HZbB/k1aV7b5w5sFLMCbbtRUsTVR+BgC3xw==} engines: {node: '>=12.17.0'} + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-uri@3.1.8: + resolution: {integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==} + fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -1384,6 +1545,10 @@ packages: fflate@0.8.3: resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} @@ -1391,6 +1556,14 @@ packages: resolution: {integrity: sha512-dz4HxH6pOvbUzZpZ/yXhafjbR2I8cenK5xL0KtBFb7U2ADsR+OwXifnxZjij/pZWF775uSCMzWVd+jDik2H2IA==} engines: {node: '>= 12'} + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + fs-extra@10.1.0: resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} engines: {node: '>=12'} @@ -1419,6 +1592,10 @@ packages: resolution: {integrity: sha512-AOLOEhvrV+iH92xXCnFr/5+3KjPKcI3xP63XJtX5spAnkznPdHijlIsUTpi7/9EhWqrTCekw5c5zh1K+YsVw7A==} engines: {node: '>=16.9.0'} + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + iconv-lite@0.7.3: resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} engines: {node: '>=0.10.0'} @@ -1427,6 +1604,17 @@ packages: resolution: {integrity: sha512-brTTsvFRt5C1gGHtPst/281UjPD5t9fBqbgoMPlVWy11ZLTPfu7HxK4ZYqO9H7o/yC9rSTCI85EaQ4OoY12qYw==} engines: {node: '>= 4'} + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + ip-address@10.7.2: + resolution: {integrity: sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==} + engines: {node: '>= 12'} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + ipaddr.js@2.5.0: resolution: {integrity: sha512-aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==} engines: {node: '>= 10'} @@ -1434,6 +1622,9 @@ packages: is-node-process@1.2.0: resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==} + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + isexe@4.0.0: resolution: {integrity: sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==} engines: {node: '>=20'} @@ -1448,9 +1639,18 @@ packages: js-tokens@10.0.0: resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==} + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + json-schema-typed@8.0.2: + resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==} + json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} + json-with-bigint@3.5.12: + resolution: {integrity: sha512-uwbF/wSSuOgC7qqlq27Xp5B6a2MHVug3t0idZdTqu0JnlFvgJuH7ju+KAk/J06C7GfhoYy2gnb9wz2INqcne7w==} + jsonfile@6.2.1: resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==} @@ -1550,6 +1750,22 @@ packages: typescript: optional: true + media-typer@1.1.1: + resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + mrmime@2.0.1: resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} engines: {node: '>=10'} @@ -1566,6 +1782,10 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + negotiator@1.1.0: + resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} + engines: {node: '>=18'} + nock@14.0.17: resolution: {integrity: sha512-EjRr1weMa4ALQX35AgZTEnP+weJJjlW1KGDiNM2IQC2069YDHas4f4B4UUYR+TTLyKWxJvOz2wObDKQs/LNreA==} engines: {node: '>=18.20.0 <20 || >=20.12.1'} @@ -1580,10 +1800,21 @@ packages: node-pty@1.2.0-beta.18: resolution: {integrity: sha512-3Rej3788OnasAwoSmTZhlCeUraJ9CQldtL5b571b9+3Nv47+PaxA5VPIGOOs+16OYQePTrC1Lrs8a9/df5WPRg==} + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + obug@3.0.0: resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} engines: {node: '>=12.20.0'} + on-finished@2.4.2: + resolution: {integrity: sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + outvariant@1.4.3: resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==} @@ -1613,10 +1844,17 @@ packages: vite-plus: optional: true + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + path-key@3.1.1: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} + path-to-regexp@8.4.2: + resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -1643,14 +1881,49 @@ packages: resolution: {integrity: sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==} engines: {node: '>= 8'} + proxy-addr@2.0.8: + resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} + engines: {node: '>= 0.10'} + pure-rand@8.4.2: resolution: {integrity: sha512-vvuOGgcuPJAirlHvuQw1TrOiw7ptaIXXmIbNuiNOY6lNGJJH49PQ1Kj4nd783nPdQhQdicgOjVI2yI/9BD6/Ng==} + qs@6.16.0: + resolution: {integrity: sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==} + engines: {node: '>=0.6'} + + range-parser@1.3.0: + resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} + engines: {node: '>= 0.6'} + + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + rolldown@1.2.15: resolution: {integrity: sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true + router@2.3.0: + resolution: {integrity: sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==} + engines: {node: '>= 18'} + + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -1671,6 +1944,10 @@ packages: resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'} + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + std-env@4.3.0: resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} @@ -1713,6 +1990,10 @@ packages: resolution: {integrity: sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==} engines: {node: '>=14.14'} + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + totalist@3.0.1: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} engines: {node: '>=6'} @@ -1721,6 +2002,10 @@ packages: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} + type-is@2.1.0: + resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} + engines: {node: '>= 18'} + typescript@7.1.0-dev.20261015.1: resolution: {integrity: sha512-IonOVC0CPC24brjf3BOPYSrU8CioR/p15jRRUnx6M6zywu4tcDw0vcIKE1dR9XpOEpArd15xZ5rIFj9wjAyOkg==} engines: {node: '>=16.20.0'} @@ -1732,10 +2017,21 @@ packages: undici-types@8.9.0: resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==} + undici@7.30.2: + resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==} + engines: {node: '>=20.18.1'} + + universal-user-agent@7.0.3: + resolution: {integrity: sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==} + universalify@2.0.1: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + valibot@1.5.0: resolution: {integrity: sha512-nil6AkP2TChWL43Z5uJ6GTxX01CUA+g8LWUM+N/rB9NBbkUMaUsi9PUNzlUPgoKASgmx9f7eGOYpJ04/fSa6FQ==} peerDependencies: @@ -1744,6 +2040,10 @@ packages: typescript: optional: true + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + vite@8.3.4: resolution: {integrity: sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1847,6 +2147,9 @@ packages: resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} engines: {node: '>=8'} + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + yaml@2.9.1: resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} engines: {node: '>= 14.6'} @@ -2029,6 +2332,21 @@ snapshots: pkce-challenge: 5.0.1 zod: 3.25.76 + '@modelcontextprotocol/conformance@0.1.16(supports-color@7.2.0)': + dependencies: + '@modelcontextprotocol/sdk': 1.32.2(supports-color@7.2.0)(zod@3.25.76) + '@octokit/rest': 22.0.1 + commander: 11.1.0 + eventsource-parser: 3.1.1 + express: 5.3.0(supports-color@7.2.0) + jose: 6.2.12 + undici: 7.30.2 + yaml: 2.9.1 + zod: 3.25.76 + transitivePeerDependencies: + - '@cfworker/json-schema' + - supports-color + '@modelcontextprotocol/core@2.4.0': dependencies: zod: 3.25.76 @@ -2039,6 +2357,28 @@ snapshots: '@modelcontextprotocol/server': 2.4.0 hono: 4.13.16 + '@modelcontextprotocol/sdk@1.32.2(supports-color@7.2.0)(zod@3.25.76)': + dependencies: + '@hono/node-server': 2.1.3(hono@4.13.16) + ajv: 8.20.0 + ajv-formats: 3.0.1 + content-type: 2.1.0 + cors: 2.8.6 + cross-spawn: 7.0.6 + eventsource: 3.0.7 + eventsource-parser: 3.1.1 + express: 5.3.0(supports-color@7.2.0) + express-rate-limit: 8.7.5(express@5.3.0(supports-color@7.2.0))(supports-color@7.2.0) + hono: 4.13.16 + jose: 6.2.12 + json-schema-typed: 8.0.2 + pkce-challenge: 5.0.1 + raw-body: 3.0.2 + zod: 3.25.76 + zod-to-json-schema: 3.25.2(zod@3.25.76) + transitivePeerDependencies: + - supports-color + '@modelcontextprotocol/server@2.4.0': dependencies: '@modelcontextprotocol/core': 2.4.0 @@ -2053,6 +2393,75 @@ snapshots: outvariant: 1.4.3 strict-event-emitter: 0.5.1 + '@octokit/auth-token@6.0.0': {} + + '@octokit/core@7.0.8': + dependencies: + '@octokit/auth-token': 6.0.0 + '@octokit/graphql': 9.0.5 + '@octokit/request': 10.0.16 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 + before-after-hook: 4.0.0 + universal-user-agent: 7.0.3 + + '@octokit/endpoint@11.0.5': + dependencies: + '@octokit/types': 18.0.0 + universal-user-agent: 7.0.3 + + '@octokit/graphql@9.0.5': + dependencies: + '@octokit/request': 10.0.16 + '@octokit/types': 18.0.0 + universal-user-agent: 7.0.3 + + '@octokit/openapi-types@27.0.0': {} + + '@octokit/openapi-types@29.0.1': {} + + '@octokit/plugin-paginate-rest@14.0.0(@octokit/core@7.0.8)': + dependencies: + '@octokit/core': 7.0.8 + '@octokit/types': 16.0.0 + + '@octokit/plugin-request-log@6.0.0(@octokit/core@7.0.8)': + dependencies: + '@octokit/core': 7.0.8 + + '@octokit/plugin-rest-endpoint-methods@17.0.0(@octokit/core@7.0.8)': + dependencies: + '@octokit/core': 7.0.8 + '@octokit/types': 16.0.0 + + '@octokit/request-error@7.1.2': + dependencies: + '@octokit/types': 18.0.0 + + '@octokit/request@10.0.16': + dependencies: + '@octokit/endpoint': 11.0.5 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 + content-type: 2.1.0 + json-with-bigint: 3.5.12 + universal-user-agent: 7.0.3 + + '@octokit/rest@22.0.1': + dependencies: + '@octokit/core': 7.0.8 + '@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.8) + '@octokit/plugin-request-log': 6.0.0(@octokit/core@7.0.8) + '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.8) + + '@octokit/types@16.0.0': + dependencies: + '@octokit/openapi-types': 27.0.0 + + '@octokit/types@18.0.0': + dependencies: + '@octokit/openapi-types': 29.0.1 + '@open-draft/deferred-promise@2.2.0': {} '@open-draft/logger@0.3.0': @@ -2242,10 +2651,14 @@ snapshots: '@sinclair/typebox@0.34.52': {} + '@socketregistry/es-define-property@1.0.7': {} + '@socketregistry/packageurl-js@1.7.0': {} '@socketregistry/safer-buffer@1.0.10': {} + '@socketregistry/side-channel@1.0.10': {} + '@socketsecurity/lib@7.2.0(typescript@7.1.0-dev.20261015.1)': optionalDependencies: typescript: 7.1.0-dev.20261015.1 @@ -2504,6 +2917,22 @@ snapshots: '@xterm/headless@6.0.0': {} + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.1.0 + + ajv-formats@3.0.1: + dependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.8 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + ansi-escapes@4.3.2: dependencies: type-fest: 0.21.3 @@ -2522,6 +2951,24 @@ snapshots: estree-walker: 3.0.3 js-tokens: 10.0.0 + before-after-hook@4.0.0: {} + + body-parser@2.4.0(supports-color@7.2.0): + dependencies: + bytes: 3.1.2 + content-type: 2.1.0 + debug: 4.4.3(supports-color@7.2.0) + http-errors: 2.0.1 + iconv-lite: 0.7.3 + on-finished: 2.4.2 + qs: 6.16.0 + raw-body: 3.0.2 + type-is: 2.1.0 + transitivePeerDependencies: + - supports-color + + bytes@3.1.2: {} + chai@6.3.0: {} chardet@0.7.0: {} @@ -2536,9 +2983,22 @@ snapshots: commander@11.1.0: {} + content-disposition@2.0.1: {} + + content-type@2.1.0: {} + convert-source-map@2.0.0: optional: true + cookie-signature@1.2.2: {} + + cookie@0.7.2: {} + + cors@2.8.6: + dependencies: + object-assign: 4.1.1 + vary: 1.1.2 + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -2551,16 +3011,26 @@ snapshots: optionalDependencies: supports-color: 7.2.0 + depd@2.0.0: {} + detect-libc@2.1.2: {} + ee-first@1.1.1: {} + + encodeurl@2.0.3: {} + es-module-lexer@2.3.2: {} + escape-html@1.0.3: {} + escape-string-regexp@5.0.0: {} estree-walker@3.0.3: dependencies: '@types/estree': 1.0.9 + etag@1.8.1: {} + eventsource-parser@3.1.1: {} eventsource@3.0.7: @@ -2569,6 +3039,47 @@ snapshots: expect-type@1.4.0: {} + express-rate-limit@8.7.5(express@5.3.0(supports-color@7.2.0))(supports-color@7.2.0): + dependencies: + debug: 4.4.3(supports-color@7.2.0) + express: 5.3.0(supports-color@7.2.0) + ip-address: 10.7.2 + transitivePeerDependencies: + - supports-color + + express@5.3.0(supports-color@7.2.0): + dependencies: + accepts: 2.0.0 + body-parser: 2.4.0(supports-color@7.2.0) + content-disposition: 2.0.1 + content-type: 2.1.0 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3(supports-color@7.2.0) + depd: 2.0.0 + encodeurl: 2.0.3 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.1(supports-color@7.2.0) + fresh: 2.0.0 + http-errors: 2.0.1 + merge-descriptors: 2.0.0 + mime-types: 3.0.2 + on-finished: 2.4.2 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.8 + qs: 6.16.0 + range-parser: 1.3.0 + router: 2.3.0(supports-color@7.2.0) + send: 1.2.1(supports-color@7.2.0) + serve-static: 2.2.1(supports-color@7.2.0) + statuses: 2.0.2 + type-is: 2.1.0 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + external-editor@3.1.0: dependencies: chardet: 0.7.0 @@ -2579,12 +3090,27 @@ snapshots: dependencies: pure-rand: 8.4.2 + fast-deep-equal@3.1.3: {} + + fast-uri@3.1.8: {} + fdir@6.5.0(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 fflate@0.8.3: {} + finalhandler@2.1.1(supports-color@7.2.0): + dependencies: + debug: 4.4.3(supports-color@7.2.0) + encodeurl: 2.0.3 + escape-html: 1.0.3 + on-finished: 2.4.2 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + flatted@3.4.4: optional: true @@ -2595,6 +3121,10 @@ snapshots: transitivePeerDependencies: - supports-color + forwarded@0.2.0: {} + + fresh@2.0.0: {} + fs-extra@10.1.0: dependencies: graceful-fs: 4.2.11 @@ -2621,16 +3151,32 @@ snapshots: hono@4.13.16: {} + http-errors@2.0.1: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.2 + toidentifier: 1.0.1 + iconv-lite@0.7.3: dependencies: safer-buffer: '@socketregistry/safer-buffer@1.0.10' ignore@7.0.9: {} + inherits@2.0.4: {} + + ip-address@10.7.2: {} + + ipaddr.js@1.9.1: {} + ipaddr.js@2.5.0: {} is-node-process@1.2.0: {} + is-promise@4.0.0: {} + isexe@4.0.0: {} jiti@2.7.0: @@ -2640,8 +3186,14 @@ snapshots: js-tokens@10.0.0: {} + json-schema-traverse@1.0.0: {} + + json-schema-typed@8.0.2: {} + json-stringify-safe@5.0.1: {} + json-with-bigint@3.5.12: {} + jsonfile@6.2.1: dependencies: universalify: 2.0.1 @@ -2707,11 +3259,22 @@ snapshots: '@babel/types': 7.29.8 source-map-js: 1.2.2 - mcp-tada@0.5.0(@modelcontextprotocol/client@2.4.0)(typescript@7.1.0-dev.20261015.1): + mcp-tada@0.5.0(@modelcontextprotocol/client@2.4.0)(@modelcontextprotocol/sdk@1.32.2(supports-color@7.2.0)(zod@3.25.76))(typescript@7.1.0-dev.20261015.1): optionalDependencies: '@modelcontextprotocol/client': 2.4.0 + '@modelcontextprotocol/sdk': 1.32.2(supports-color@7.2.0)(zod@3.25.76) typescript: 7.1.0-dev.20261015.1 + media-typer@1.1.1: {} + + merge-descriptors@2.0.0: {} + + mime-db@1.54.0: {} + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + mrmime@2.0.1: optional: true @@ -2721,6 +3284,10 @@ snapshots: nanoid@3.3.20: {} + negotiator@1.1.0: + dependencies: + content-type: 2.1.0 + nock@14.0.17: dependencies: '@mswjs/interceptors': 0.41.9 @@ -2735,8 +3302,18 @@ snapshots: dependencies: node-addon-api: 7.1.1 + object-assign@4.1.1: {} + obug@3.0.0: {} + on-finished@2.4.2: + dependencies: + ee-first: 1.1.1 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + outvariant@1.4.3: {} oxfmt@0.74.0: @@ -2787,8 +3364,12 @@ snapshots: '@oxlint/binding-win32-ia32-msvc': 1.89.0 '@oxlint/binding-win32-x64-msvc': 1.89.0 + parseurl@1.3.3: {} + path-key@3.1.1: {} + path-to-regexp@8.4.2: {} + pathe@2.0.3: optional: true @@ -2808,8 +3389,29 @@ snapshots: propagate@2.0.1: {} + proxy-addr@2.0.8: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + pure-rand@8.4.2: {} + qs@6.16.0: + dependencies: + es-define-property: '@socketregistry/es-define-property@1.0.7' + side-channel: '@socketregistry/side-channel@1.0.10' + + range-parser@1.3.0: {} + + raw-body@3.0.2: + dependencies: + bytes: 3.1.2 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + unpipe: 1.0.0 + + require-from-string@2.0.2: {} + rolldown@1.2.15: dependencies: '@oxc-project/types': 0.155.0 @@ -2831,6 +3433,43 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.2.15 '@rolldown/binding-win32-x64-msvc': 1.2.15 + router@2.3.0(supports-color@7.2.0): + dependencies: + debug: 4.4.3(supports-color@7.2.0) + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.4.2 + transitivePeerDependencies: + - supports-color + + send@1.2.1(supports-color@7.2.0): + dependencies: + debug: 4.4.3(supports-color@7.2.0) + encodeurl: 2.0.3 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.1 + mime-types: 3.0.2 + ms: 2.1.3 + on-finished: 2.4.2 + range-parser: 1.3.0 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + serve-static@2.2.1(supports-color@7.2.0): + dependencies: + encodeurl: 2.0.3 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1(supports-color@7.2.0) + transitivePeerDependencies: + - supports-color + + setprototypeof@1.2.0: {} + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 @@ -2848,6 +3487,8 @@ snapshots: source-map-js@1.2.2: {} + statuses@2.0.2: {} + std-env@4.3.0: {} strict-event-emitter@0.5.1: {} @@ -2881,11 +3522,19 @@ snapshots: tmp@0.2.7: {} + toidentifier@1.0.1: {} + totalist@3.0.1: optional: true type-fest@0.21.3: {} + type-is@2.1.0: + dependencies: + content-type: 2.1.0 + media-typer: 1.1.1 + mime-types: 3.0.2 + typescript@7.1.0-dev.20261015.1: optionalDependencies: '@typescript/typescript-darwin-arm64': 7.1.0-dev.20261015.1 @@ -2900,12 +3549,20 @@ snapshots: undici-types@8.9.0: {} + undici@7.30.2: {} + + universal-user-agent@7.0.3: {} + universalify@2.0.1: {} + unpipe@1.0.0: {} + valibot@1.5.0(typescript@7.1.0-dev.20261015.1): optionalDependencies: typescript: 7.1.0-dev.20261015.1 + vary@1.1.2: {} + vite@8.3.4(@types/node@26.6.5)(jiti@2.7.0)(yaml@2.9.1): dependencies: lightningcss: 1.33.0 @@ -2963,8 +3620,9 @@ snapshots: string-width: 8.2.2 strip-ansi: 7.2.0 - yaml@2.9.1: - optional: true + wrappy@1.0.2: {} + + yaml@2.9.1: {} yoctocolors-cjs@2.1.3: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 2f19d274..20ae9c06 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -24,6 +24,7 @@ catalog: ata-validator: 1.56.0 "@sinclair/typebox": 0.34.52 fallow: 3.33.1 + "@modelcontextprotocol/conformance": 0.1.16 mcp-tada: 0.5.0 tsrs: 0.18.0-ts7.1.0-dev.20260929 typebox: 1.3.37 diff --git a/scripts/conformance.mts b/scripts/conformance.mts new file mode 100644 index 00000000..f3464a72 --- /dev/null +++ b/scripts/conformance.mts @@ -0,0 +1,170 @@ +#!/usr/bin/env node +/** + * @file Run the official MCP conformance suite (@modelcontextprotocol/conformance) + * against the built server in HTTP mode on localhost. The server gets a + * dummy Socket API token: no conformance scenario reaches the Socket API, and + * nothing leaves the machine. Known failures live in + * `.config/repo/conformance-baseline.yaml`, so the run fails only on a + * regression or a stale baseline entry. Results land in `.cache/conformance`. + * Usage: pnpm run conformance [-- ] + */ + +import { spawn } from 'node:child_process' +import type { ChildProcess } from 'node:child_process' +import { existsSync, rmSync } from 'node:fs' +import { createServer } from 'node:net' +import path from 'node:path' +import { setTimeout as delay } from 'node:timers/promises' +import { pathToFileURL } from 'node:url' +import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default' + +import { REPO_ROOT, SERVER_BIN } from './paths.mts' + +const logger = getDefaultLogger() + +export const BASELINE_PATH = path.join( + REPO_ROOT, + '.config', + 'repo', + 'conformance-baseline.yaml', +) +export const OUTPUT_DIR = path.join(REPO_ROOT, '.cache', 'conformance') + +// The newest dated revision conformance 0.1.16 knows. Scenario filtering is +// cumulative, so this also runs the 2025-06-18 scenarios. +export const SPEC_VERSION = '2025-11-25' + +const CONFORMANCE_BIN = path.join( + REPO_ROOT, + 'node_modules', + '@modelcontextprotocol', + 'conformance', + 'dist', + 'index.js', +) + +const READY_TIMEOUT_MS = 15_000 + +// Ask the OS for a free port, then release it for the server to bind. +async function findFreePort(): Promise { + return await new Promise((resolve, reject) => { + const probe = createServer() + probe.once('error', reject) + probe.listen(0, '127.0.0.1', () => { + const address = probe.address() + const port = typeof address === 'object' && address ? address.port : 0 + probe.close(() => resolve(port)) + }) + }) +} + +// The server's environment: the caller's, minus anything Socket- or +// Sentry-specific, so a developer's real token or DSN never reaches it. +function serverEnv(port: number): NodeJS.ProcessEnv { + const env: NodeJS.ProcessEnv = {} + for (const [key, value] of Object.entries(process.env)) { + if (!/^(?:SOCKET_|SENTRY_|MCP_)/u.test(key)) { + env[key] = value + } + } + return { + ...env, + MCP_HOST: '127.0.0.1', + MCP_HTTP_MODE: 'true', + MCP_PORT: String(port), + SOCKET_API_TOKEN: 'conformance-dummy-token', + } +} + +async function waitForHealthy( + baseUrl: string, + server: ChildProcess, +): Promise { + const deadline = Date.now() + READY_TIMEOUT_MS + while (Date.now() < deadline) { + if (server.exitCode !== null) { + throw new Error(`Server exited early with code ${server.exitCode}`) + } + try { + // oxlint-disable-next-line no-await-in-loop -- polling is sequential by design + const res = await fetch(new URL('/health', baseUrl), { + signal: AbortSignal.timeout(Math.max(1, deadline - Date.now())), + }) + if (res.ok) { + return + } + } catch { + // Not listening yet. + } + // oxlint-disable-next-line no-await-in-loop -- polling is sequential by design + await delay(200) + } + throw new Error(`Server not healthy after ${READY_TIMEOUT_MS} ms`) +} + +async function runConformance( + baseUrl: string, + extraArgs: readonly string[], +): Promise { + const args = [ + CONFORMANCE_BIN, + 'server', + '--url', + baseUrl, + '--spec-version', + SPEC_VERSION, + '--expected-failures', + BASELINE_PATH, + '-o', + OUTPUT_DIR, + ...extraArgs, + ] + const child = spawn(process.execPath, args, { + cwd: REPO_ROOT, + stdio: 'inherit', + }) + return await new Promise((resolve, reject) => { + child.once('error', reject) + child.once('exit', code => resolve(code ?? 1)) + }) +} + +export async function main(extraArgs: readonly string[]): Promise { + if (!existsSync(SERVER_BIN)) { + logger.fail(`${SERVER_BIN} is missing. Run \`pnpm run build\` first.`) + return 1 + } + if (!existsSync(CONFORMANCE_BIN)) { + logger.fail( + '@modelcontextprotocol/conformance is not installed. Run `pnpm install`.', + ) + return 1 + } + rmSync(OUTPUT_DIR, { force: true, recursive: true }) + + const port = await findFreePort() + const baseUrl = `http://127.0.0.1:${port}/` + const server = spawn(process.execPath, [SERVER_BIN], { + cwd: REPO_ROOT, + env: serverEnv(port), + stdio: ['ignore', 'inherit', 'inherit'], + }) + try { + await waitForHealthy(baseUrl, server) + logger.log(`Running MCP conformance (spec ${SPEC_VERSION}) on ${baseUrl}`) + return await runConformance(baseUrl, extraArgs) + } catch (error) { + logger.fail(error instanceof Error ? error.message : String(error)) + return 1 + } finally { + server.kill() + } +} + +if ( + process.argv[1] && + import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href +) { + const extraArgs = process.argv.slice(2).filter(arg => arg !== '--') + process.exitCode = await main(extraArgs) +} diff --git a/test/repo/unit/cli.test.mts b/test/repo/unit/cli.test.mts index 27eab169..92da501c 100644 --- a/test/repo/unit/cli.test.mts +++ b/test/repo/unit/cli.test.mts @@ -21,6 +21,7 @@ import { logger } from '../../../lib/logger.mts' // What startup did with the deps it was handed. interface Recorded { errorReporting: ErrorReportingConfig[] + httpHosts: Array httpPorts: number[] prompted: number staticKeys: Array<{ key: string; shared: boolean | undefined }> @@ -35,6 +36,7 @@ function recordingDeps(overrides?: Partial | undefined): { } { const recorded: Recorded = { errorReporting: [], + httpHosts: [], httpPorts: [], prompted: 0, staticKeys: [], @@ -45,6 +47,7 @@ function recordingDeps(overrides?: Partial | undefined): { apiToken: 'static-token', argv: ['node', 'socket-mcp'], envHttpMode: false, + host: undefined, loadOAuthMetadata: () => Promise.resolve({}), port: 3000, promptForApiKey: () => { @@ -66,8 +69,9 @@ function recordingDeps(overrides?: Partial | undefined): { recorded.errorReporting.push(config) return Promise.resolve() }, - startHttpServer: port => { + startHttpServer: (port, host) => { recorded.httpPorts.push(port) + recorded.httpHosts.push(host) }, } return { deps: { ...base, ...overrides }, recorded } @@ -207,6 +211,15 @@ describe('transport selection', () => { expect(recorded.httpPorts).toEqual([8080]) }) + test('passes MCP_HOST through as the bind address', async () => { + const { deps, recorded } = recordingDeps({ + envHttpMode: true, + host: '127.0.0.1', + }) + await expect(runSocketMcpCli(deps)).resolves.toBe(0) + expect(recorded.httpHosts).toEqual(['127.0.0.1']) + }) + test('reports the failure and exits 1 when the stdio transport throws', async () => { const { deps } = recordingDeps({ serveStdio: () => { diff --git a/test/repo/unit/env.test.mts b/test/repo/unit/env.test.mts index 6cc71169..ee4d75a7 100644 --- a/test/repo/unit/env.test.mts +++ b/test/repo/unit/env.test.mts @@ -5,6 +5,7 @@ import { envInt, envString, getMcpHttpMode, + getMcpHost, getMcpPort, getSocketApiToken, getSocketBlobCacheBytes, @@ -29,6 +30,7 @@ const TOUCHED = [ 'TEST_ENV_BOOL', 'TEST_ENV_INT', 'TEST_ENV_STRING', + 'MCP_HOST', 'MCP_HTTP_MODE', 'MCP_PORT', 'SOCKET_BLOB_CACHE_BYTES', @@ -102,7 +104,7 @@ describe('envString', () => { }) }) -describe('getMcpHttpMode / getMcpPort / getTrustProxy', () => { +describe('getMcpHttpMode / getMcpHost / getMcpPort / getTrustProxy', () => { test('http mode reflects MCP_HTTP_MODE', () => { expect(getMcpHttpMode()).toBe(false) process.env['MCP_HTTP_MODE'] = 'true' @@ -115,6 +117,12 @@ describe('getMcpHttpMode / getMcpPort / getTrustProxy', () => { expect(getMcpPort()).toBe(8080) }) + test('host is unset by default and reads MCP_HOST', () => { + expect(getMcpHost()).toBeUndefined() + process.env['MCP_HOST'] = '127.0.0.1' + expect(getMcpHost()).toBe('127.0.0.1') + }) + test('trust proxy reflects TRUST_PROXY', () => { expect(getTrustProxy()).toBe(false) process.env['TRUST_PROXY'] = '1' diff --git a/test/repo/unit/http-server-start.test.mts b/test/repo/unit/http-server-start.test.mts index bbabfc7a..f98df45d 100644 --- a/test/repo/unit/http-server-start.test.mts +++ b/test/repo/unit/http-server-start.test.mts @@ -35,14 +35,20 @@ vi.mock(import('node:http'), async importOriginal => { // Boot the server the way production does and wait for the socket to be up. async function bootServer(): Promise { - startHttpServer(0) + return (await bootServerAddress()).port +} + +async function bootServerAddress( + host?: string, +): Promise<{ address: string; port: number }> { + startHttpServer(0, host) const server = createdServers.at(-1)! await once(server, 'listening') const address = server.address() if (typeof address !== 'object' || address === null) { throw new Error('Expected a listening TCP server') } - return address.port + return address } afterEach(async () => { @@ -97,3 +103,11 @@ test('startHttpServer wires the MCP handler onto the listening server', async () const message = res.json() as { result: { tools: Array<{ name: string }> } } expect(message.result.tools.map(tool => tool.name)).toContain('depscore') }) + +test('startHttpServer binds only the given host when one is passed', async () => { + const { address, port } = await bootServerAddress('127.0.0.1') + expect(address).toBe('127.0.0.1') + + const res = await httpRequest(`http://127.0.0.1:${port}/health`) + expect(res.status).toBe(200) +})