{
  "name": "@modelcontextprotocol/server-legacy",
  "private": false,
  "version": "2.0.0",
  "description": "Frozen v1 SSE transport and OAuth Authorization Server helpers for the Model Context Protocol TypeScript SDK. Deprecated; use StreamableHTTP and a dedicated OAuth server in production.",
  "deprecated": "This package is a frozen copy of v1's SSE transport and OAuth Authorization Server helpers for migration purposes only. Use StreamableHTTP from @modelcontextprotocol/server and a dedicated OAuth server in production. Will not receive new features.",
  "license": "MIT",
  "author": "Anthropic, PBC (https://anthropic.com)",
  "homepage": "https://modelcontextprotocol.io",
  "bugs": "https://github.com/modelcontextprotocol/typescript-sdk/issues",
  "type": "module",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git"
  },
  "engines": {
    "node": ">=20"
  },
  "keywords": [
    "modelcontextprotocol",
    "mcp",
    "server",
    "legacy",
    "sse",
    "oauth"
  ],
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.mts",
        "default": "./dist/index.mjs"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./sse": {
      "import": {
        "types": "./dist/sse/index.d.mts",
        "default": "./dist/sse/index.mjs"
      },
      "require": {
        "types": "./dist/sse/index.d.cts",
        "default": "./dist/sse/index.cjs"
      }
    },
    "./auth": {
      "import": {
        "types": "./dist/auth/index.d.mts",
        "default": "./dist/auth/index.mjs"
      },
      "require": {
        "types": "./dist/auth/index.d.cts",
        "default": "./dist/auth/index.cjs"
      }
    }
  },
  "main": "./dist/index.cjs",
  "types": "./dist/index.d.mts",
  "typesVersions": {
    "*": {
      "sse": [
        "dist/sse/index.d.mts"
      ],
      "auth": [
        "dist/auth/index.d.mts"
      ]
    }
  },
  "files": [
    "dist"
  ],
  "dependencies": {
    "zod": "^4.2.0",
    "raw-body": "^3.0.0",
    "content-type": "^1.0.5",
    "cors": "^2.8.5",
    "express-rate-limit": "^8.2.1",
    "pkce-challenge": "^5.0.0",
    "@modelcontextprotocol/core": "2.0.0"
  },
  "peerDependencies": {
    "express": "^4.18.0 || ^5.0.0"
  },
  "peerDependenciesMeta": {
    "express": {
      "optional": true
    }
  },
  "devDependencies": {
    "@types/content-type": "^1.1.8",
    "@types/cors": "^2.8.17",
    "@types/express": "^5.0.6",
    "@types/express-serve-static-core": "^5.1.0",
    "@types/supertest": "^6.0.2",
    "@eslint/js": "^9.39.2",
    "@typescript/native-preview": "^7.0.0-dev.20251217.1",
    "eslint": "^9.39.2",
    "eslint-config-prettier": "^10.1.8",
    "eslint-plugin-n": "^17.23.1",
    "prettier": "3.6.2",
    "supertest": "^7.0.0",
    "tsdown": "^0.18.0",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.48.1",
    "vitest": "^4.0.15",
    "@modelcontextprotocol/core-internal": "^2.0.0",
    "@modelcontextprotocol/tsconfig": "^2.0.0",
    "@modelcontextprotocol/eslint-config": "^2.0.0",
    "@modelcontextprotocol/vitest-config": "^2.0.0"
  },
  "scripts": {
    "typecheck": "tsgo -p tsconfig.json --noEmit",
    "build": "tsdown",
    "build:watch": "tsdown --watch",
    "lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
    "lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
    "check": "pnpm run typecheck && pnpm run lint",
    "test": "vitest run",
    "test:watch": "vitest"
  }
}