mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Add MCP server management with auto-restart functionality
This commit is contained in:
1 parent
1723fa1d38
commit
fea3c214af
13 files changed
+916
-55
No files matched your search
@@ -120,6 +120,13 @@ class OpenCodeServerManager {
|
||||
this.isHealthy = false
|
||||
}
|
||||
|
||||
async restart(): Promise<void> {
|
||||
logger.info('Restarting OpenCode server')
|
||||
await this.stop()
|
||||
await new Promise(r => setTimeout(r, 1000))
|
||||
await this.start()
|
||||
}
|
||||
|
||||
getPort(): number {
|
||||
return OPENCODE_SERVER_PORT
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user