mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-09-24 15:49:09 +00:00
7d8f46d00d
Expose the existing catalog MCP as a Settings-managed local bridge with discovery lifecycle, one-click client setup, and reserved external scope so third-party agents can use Netcatty without a sidebar chat session. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
816 B
Batchfile
26 lines
816 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "SERVER_SCRIPT=%SCRIPT_DIR%..\mcp\netcatty-external-mcp-server.cjs"
|
|
set "APP_EXE="
|
|
|
|
if defined NETCATTY_CLI_ELECTRON_EXEC_PATH if exist "%NETCATTY_CLI_ELECTRON_EXEC_PATH%" set "APP_EXE=%NETCATTY_CLI_ELECTRON_EXEC_PATH%"
|
|
if not defined APP_EXE if exist "%SCRIPT_DIR%..\..\..\..\Netcatty.exe" set "APP_EXE=%SCRIPT_DIR%..\..\..\..\Netcatty.exe"
|
|
if not defined APP_EXE if exist "%SCRIPT_DIR%..\..\..\..\netcatty.exe" set "APP_EXE=%SCRIPT_DIR%..\..\..\..\netcatty.exe"
|
|
|
|
if defined APP_EXE (
|
|
set "ELECTRON_RUN_AS_NODE=1"
|
|
"%APP_EXE%" "%SERVER_SCRIPT%" %*
|
|
exit /b %ERRORLEVEL%
|
|
)
|
|
|
|
where node >nul 2>nul
|
|
if not errorlevel 1 (
|
|
node "%SERVER_SCRIPT%" %*
|
|
exit /b %ERRORLEVEL%
|
|
)
|
|
|
|
echo Failed to locate the bundled Netcatty runtime for netcatty-external-mcp. 1>&2
|
|
exit /b 1
|