pub struct RemoteEndpoint {
pub url: String,
pub token_env: Option<String>,
pub token_file: Option<PathBuf>,
pub project_key: Option<String>,
pub project_key_prefix: Option<String>,
}Expand description
One remote MCP endpoint declaration.
The token itself is never written here — token_env names the
environment variable that carries it, because config.toml travels
through pack / backup paths where a literal credential must not.
Fields§
§url: StringEndpoint URL, e.g. http://ssot-host:8486/mcp.
token_env: Option<String>Env var name holding the bearer token. None falls back to the
daemon’s conventional name (e.g. OUTLINE_MCP_HTTP_TOKEN); an unset
or empty variable means “no token” (loopback daemons allow that).
token_file: Option<PathBuf>File holding the bearer token (first line, trimmed). Checked when
the token_env variable is unset — MCP hosts spawn lds with an
environment the user does not control per-project, so a file the
server reads itself is the reliable path. The journal endpoint
defaults to ~/.config/lds/journal-mcp-token when this is unset.
Keep the file itself out of config.toml (it travels through pack /
backup paths); mode 0600 recommended.
project_key: Option<String>Project key sent instead of a local path (journal only). Explicit
per-project pin — the normal all-projects setup leaves this unset
and lets the key be derived as <project_key_prefix>/<repo-name>.
project_key_prefix: Option<String>Prefix for the derived project key (journal only). When
project_key is unset, the forwarded key becomes
<prefix>/<session-root-basename>, so one user-global
[remote.journal] entry namespaces every project automatically.
Defaults to /data/journal (the layout the Fly deploy runbook
provisions).
Trait Implementations§
Source§impl Clone for RemoteEndpoint
impl Clone for RemoteEndpoint
Source§fn clone(&self) -> RemoteEndpoint
fn clone(&self) -> RemoteEndpoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more