The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(registry): re-export ServerProvenance and make custom module public
Steven Enamakeld73646b4a3a5
diff --git a/src/openhuman/mcp/registry/custom/ops.rs b/src/openhuman/mcp/registry/custom/ops.rsindex 5431b08213..4e884cf7fc 100644--- a/src/openhuman/mcp/registry/custom/ops.rs+++ b/src/openhuman/mcp/registry/custom/ops.rs@@ -185,53 +185,54 @@ pub async fn mcp_clients_update_custom(let store = reg.store();let updated = store.update_server_rmw(&server_id, |current, stored_env| {- if current.provenance != ServerProvenance::Custom {- return Err(tinymcp::Error::other(format!(- "server `{server_id}` was installed from a registry; its command and endpoint \+ if current.provenance != ServerProvenance::Custom {+ return Err(tinymcp::Error::other(format!(+ "server `{server_id}` was installed from a registry; its command and endpoint \come from the catalog listing and cannot be edited here"- )));- }- let scope_changed = credential_scope(¤t.transport) != credential_scope(&transport);- let env = resolve_env_for_transport(- &input.env,- &stored_env.into_iter().collect::<HashMap<String, String>>(),- ¤t.transport,- &transport,- );- tracing::debug!(- "[mcp-custom] update server_id={} transport={}{} env_keys={:?}",- server_id,- transport.dispatch_kind(),- if scope_changed {- " (re-scoped — stored env dropped)"- } else {- ""- },- env.keys().collect::<Vec<_>>()- );- let record = InstalledServer {- // Identity and provenance survive an edit untouched — re-deriving- // `qualified_name` from the new display name would orphan this row's- // env values.- server_id: current.server_id.clone(),- qualified_name: current.qualified_name.clone(),- installed_at: current.installed_at,- provenance: current.provenance,- icon_url: current.icon_url.clone(),- config: current.config.clone(),- enabled: current.enabled,- last_connected_at: current.last_connected_at,-- display_name: display_name.clone(),- description: clean_description(input.description.clone()),- command_kind,- command: command.clone(),- args: args.clone(),- env_keys: env_key_list(&env),- transport: transport.clone(),- };- let env_btree: std::collections::BTreeMap<String, String> = env.into_iter().collect();- Ok((record, env_btree))+ )));+ }+ let scope_changed =+ credential_scope(¤t.transport) != credential_scope(&transport);+ let env = resolve_env_for_transport(+ &input.env,+ &stored_env.into_iter().collect::<HashMap<String, String>>(),+ ¤t.transport,+ &transport,+ );+ tracing::debug!(+ "[mcp-custom] update server_id={} transport={}{} env_keys={:?}",+ server_id,+ transport.dispatch_kind(),+ if scope_changed {+ " (re-scoped — stored env dropped)"+ } else {+ ""+ },+ env.keys().collect::<Vec<_>>()+ );+ let record = InstalledServer {+ // Identity and provenance survive an edit untouched — re-deriving+ // `qualified_name` from the new display name would orphan this row's+ // env values.+ server_id: current.server_id.clone(),+ qualified_name: current.qualified_name.clone(),+ installed_at: current.installed_at,+ provenance: current.provenance,+ icon_url: current.icon_url.clone(),+ config: current.config.clone(),+ enabled: current.enabled,+ last_connected_at: current.last_connected_at,++ display_name: display_name.clone(),+ description: clean_description(input.description.clone()),+ command_kind,+ command: command.clone(),+ args: args.clone(),+ env_keys: env_key_list(&env),+ transport: transport.clone(),+ };+ let env_btree: std::collections::BTreeMap<String, String> = env.into_iter().collect();+ Ok((record, env_btree))}).map_err(|e| e.to_string())?;diff --git a/src/openhuman/mcp/registry/mod.rs b/src/openhuman/mcp/registry/mod.rsindex e22f64e233..8712bf67aa 100644--- a/src/openhuman/mcp/registry/mod.rs+++ b/src/openhuman/mcp/registry/mod.rs@@ -35,6 +35,8 @@#[cfg(feature = "mcp")]pub mod bus;#[cfg(feature = "mcp")]+pub mod custom;+#[cfg(feature = "mcp")]pub(crate) mod helpers;#[cfg(feature = "mcp")]pub mod ops;@@ -62,7 +64,7 @@ pub mod types {pub use tinymcp_bus::{ChatTurn, CommandKind, ConnStatus, ConnectedServerOverview, InstalledServer, McpTool,RegistryConnection as SmitheryConnection, RegistryServerDetail as SmitheryServerDetail,- RegistryServerSummary as SmitheryServerSummary, ServerStatus, Transport,+ RegistryServerSummary as SmitheryServerSummary, ServerProvenance, ServerStatus, Transport,};}