MCPcopy
hub / github.com/xpf0000/FlyEnv / assertLifecycleFlag

Method assertLifecycleFlag

src/main/core/MCPTools.ts:276–285  ·  view source on GitHub ↗
(flag: string, action: 'start' | 'stop' | 'restart')

Source from the content-addressed store, hash-verified

274 }
275
276 private assertLifecycleFlag(flag: string, action: 'start' | 'stop' | 'restart') {
277 if (isMcpLifecycleFlag(flag)) {
278 return
279 }
280 throw new Error(
281 `${flag} is not a lifecycle-managed FlyEnv service and cannot be ${action}ed via MCP. ` +
282 'Use list_online_versions plus install_service for installable runtimes/toolchains such as bun, ' +
283 'and manage project execution outside these service lifecycle tools.'
284 )
285 }
286
287 private assertInstallableFlag(flag: string) {
288 if (isMcpInstallableFlag(flag)) {

Callers 4

startServiceMethod · 0.95
stopServiceMethod · 0.95
stopAllServiceMethod · 0.95
restartServiceMethod · 0.95

Calls 1

isMcpLifecycleFlagFunction · 0.90

Tested by

no test coverage detected