Add MCP server management with auto-restart functionality

This commit is contained in:
Chris Scott committed 2025-11-26 23:43:19 -05:00
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
}