siliconflow-image-mcp 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
#!/
|
|
1
|
+
#!/bin/sh
|
|
2
2
|
# SiliconFlow Image MCP - Unix/Linux/macOS wrapper script
|
|
3
3
|
# Handles both local development and global installation
|
|
4
|
-
# For Windows, use the siliconflow-image-mcp.cmd wrapper
|
|
5
4
|
|
|
6
5
|
# Get the real directory of this script (resolves symlinks)
|
|
7
6
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
8
|
-
# If we're in a symlinked location, follow it to find the real package location
|
|
9
|
-
if [ -L "$0" ]; then
|
|
10
|
-
SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
|
|
11
|
-
fi
|
|
12
7
|
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exec tsx "$SCRIPT_DIR/../src/index.ts"
|
|
17
|
-
elif [ -f "$SCRIPT_DIR/../dist/index.js" ]; then
|
|
8
|
+
# In production (npm install), dist/index.js is in node_modules/siliconflow-image-mcp/dist/
|
|
9
|
+
# The bin script is in node_modules/siliconflow-image-mcp/bin/
|
|
10
|
+
if [ -f "$SCRIPT_DIR/../dist/index.js" ]; then
|
|
18
11
|
# Production mode - run compiled JavaScript
|
|
19
|
-
exec node "$SCRIPT_DIR/../dist/index.js"
|
|
12
|
+
exec node "$SCRIPT_DIR/../dist/index.js" "$@"
|
|
20
13
|
else
|
|
21
|
-
echo "
|
|
22
|
-
echo "Searched in: $SCRIPT_DIR/../
|
|
14
|
+
echo "Error: Could not find siliconflow-image-mcp dist/index.js"
|
|
15
|
+
echo "Searched in: $SCRIPT_DIR/../dist/index.js"
|
|
23
16
|
exit 1
|
|
24
|
-
fi
|
|
17
|
+
fi
|
|
@@ -7,15 +7,16 @@ setlocal
|
|
|
7
7
|
REM Get the directory where this script is located
|
|
8
8
|
set "SCRIPT_DIR=%~dp0"
|
|
9
9
|
|
|
10
|
-
REM
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
npx tsx "%SCRIPT_DIR%..\src\index.ts" %*
|
|
14
|
-
) else if exist "%SCRIPT_DIR%..\dist\index.js" (
|
|
10
|
+
REM In production (npm install), dist/index.js is in node_modules/siliconflow-image-mcp/dist/
|
|
11
|
+
REM The bin script is in node_modules/siliconflow-image-mcp/bin/
|
|
12
|
+
if exist "%SCRIPT_DIR%..\dist\index.js" (
|
|
15
13
|
REM Production mode - run compiled JavaScript
|
|
16
14
|
node "%SCRIPT_DIR%..\dist\index.js" %*
|
|
15
|
+
) else if exist "%SCRIPT_DIR%..\..\dist\index.js" (
|
|
16
|
+
REM Alternative production path
|
|
17
|
+
node "%SCRIPT_DIR%..\..\dist\index.js" %*
|
|
17
18
|
) else (
|
|
18
|
-
echo
|
|
19
|
-
echo Searched in: %SCRIPT_DIR%..\
|
|
19
|
+
echo Error: Could not find siliconflow-image-mcp dist/index.js
|
|
20
|
+
echo Searched in: %SCRIPT_DIR%..\dist\index.js
|
|
20
21
|
exit /b 1
|
|
21
22
|
)
|
package/dist/package.json
CHANGED