-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart_lmcp.ps1
More file actions
28 lines (24 loc) · 935 Bytes
/
Copy pathstart_lmcp.ps1
File metadata and controls
28 lines (24 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# LMCP Launcher
# Opens the HTTP surface. UI available at http://127.0.0.1:7345/ui
#
# Usage:
# .\start_lmcp.ps1 # uses config/registry.yaml
# .\start_lmcp.ps1 -Registry path\to\reg.yaml # custom registry
param(
[string]$Registry = ""
)
$ErrorActionPreference = "Stop"
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $scriptDir
# Find registry: explicit param > config/registry.yaml > error
if ($Registry -eq "") {
$Registry = Join-Path $scriptDir "config\registry.yaml"
}
if (-not (Test-Path $Registry)) {
Write-Host "Registry not found: $Registry" -ForegroundColor Red
Write-Host "Copy config/registry.example.yaml to config/registry.yaml and configure it." -ForegroundColor Yellow
exit 1
}
Write-Host "Starting LMCP..." -ForegroundColor Cyan
Write-Host " Registry: $Registry" -ForegroundColor DarkGray
python -m lmcp --registry $Registry --serve-http