Skip to main content

hyperdb_mcp/daemon/
mod.rs

1// Copyright (c) 2026, Salesforce, Inc. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4//! Single-instance daemon for sharing a `hyperd` process across MCP clients.
5
6pub mod discovery;
7pub mod health;
8pub mod run;
9pub mod spawn;
10
11/// Default TCP port the daemon binds for health checks and single-instance locking.
12pub const DEFAULT_DAEMON_PORT: u16 = 7484;
13
14/// Default idle timeout in seconds before the daemon shuts down.
15pub const DEFAULT_IDLE_TIMEOUT_SECS: u64 = 30 * 60; // 30 minutes
16
17/// Environment variable to override the daemon port.
18pub const ENV_DAEMON_PORT: &str = "HYPERDB_DAEMON_PORT";
19
20/// Environment variable to override the idle timeout (seconds).
21pub const ENV_IDLE_TIMEOUT: &str = "HYPERDB_DAEMON_IDLE_TIMEOUT";