- Add PROJECT_KEY_REGEX for valid format (2-5 uppercase letters) - Add validateProjectKey() and isValidProjectKey() functions - Update getProjectKey() to validate input and generated keys - Reject invalid formats with clear error messages Invalid formats now rejected: - Single letters (A, C, U) - Numbers (1, 20, 123) - Full names (ClaudeFramework, Circles) - Mixed case (Circles) - Too long (>5 chars) Also fixes Sentry SDK v8 API changes (httpIntegration, postgresIntegration). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
632 B
JSON
27 lines
632 B
JSON
{
|
|
"name": "task-mcp",
|
|
"version": "1.0.0",
|
|
"description": "MCP server for task management with PostgreSQL/pgvector backend",
|
|
"main": "dist/index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx src/index.ts",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
"@sentry/node": "^9.47.1",
|
|
"@sentry/profiling-node": "^10.37.0",
|
|
"dotenv": "^17.2.3",
|
|
"pg": "^8.11.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.0",
|
|
"@types/pg": "^8.10.9",
|
|
"tsx": "^4.7.0",
|
|
"typescript": "^5.3.3"
|
|
}
|
|
}
|