redis-crud-server
Advanced tools
+4
-4
@@ -64,4 +64,4 @@ #!/usr/bin/env node | ||
| // 优先级 1: 尝试读取 .env 文件 | ||
| // 支持通过 ENV_PATH 环境变量指定 .env 文件路径 | ||
| const envPath = process.env.ENV_PATH || path.join(__dirname, '..', '.env'); | ||
| // 优先级顺序:当前工作目录 > ENV_PATH环境变量 > 源代码相对路径 | ||
| const envPath = process.env.ENV_PATH || path.join(process.cwd(), '.env'); | ||
| // 首先尝试解析 INI 格式 | ||
@@ -73,4 +73,4 @@ const iniConfig = parseIniConfig(envPath); | ||
| const configNameMappings = { | ||
| host: ['REDIS_HOST', 'REDIS_SERVER_HOST', 'HOST', 'HOSTNAME', 'REDIS_HOSTNAME'], | ||
| port: ['REDIS_PORT', 'REDIS_SERVER_PORT', 'PORT', 'HOSTPORT'], | ||
| host: ['REDIS_HOST', 'REDIS_SERVER_HOST', 'REDIS_HOSTNAME', 'HOST', 'HOSTNAME'], | ||
| port: ['REDIS_PORT', 'REDIS_SERVER_PORT', 'HOSTPORT', 'PORT'], | ||
| password: ['REDIS_PASSWORD', 'REDIS_SERVER_PASSWORD', 'PASSWORD'], | ||
@@ -77,0 +77,0 @@ db: ['REDIS_DB', 'SELECT', 'DATABASE_INDEX', 'DB_INDEX'] |
+1
-1
| MIT License | ||
| Copyright (c) 2025 Nicolas | ||
| Copyright (c) 2025 Your Name | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
+3
-3
| { | ||
| "name": "redis-crud-server", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Redis CRUD MCP 服务器 - 提供完整的 Redis 数据库操作工具", | ||
@@ -22,3 +22,3 @@ "main": "build/index.js", | ||
| "type": "git", | ||
| "url": "https://github.com/Nicolas-One/redis-crud-server" | ||
| "url": "https://github.com/your-username/redis-crud-server" | ||
| }, | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
| ], | ||
| "author": "wocaonimabi2025@gmail.com", | ||
| "author": "Your Name <your-email@example.com>", | ||
| "license": "MIT", | ||
@@ -37,0 +37,0 @@ "engines": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
50002
0.07%