Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(mcp): remove stale registry docs and tests

Steven Enamakeld6b64b65326c
diff --git a/crates/openhuman-core/src/mcp/registry/README.md b/crates/openhuman-core/src/mcp/registry/README.md
index f715fd5ac7..e123498da1 100644
--- a/crates/openhuman-core/src/mcp/registry/README.md
+++ b/crates/openhuman-core/src/mcp/registry/README.md
@@ -23,7 +23,6 @@ RPC or agent install tool.
| [`bus.rs`](./bus.rs) / tests | Logs lifecycle events for observability. |
| [`tools.rs`](./tools.rs) / tests | Maps module-provided registry tool specs to OpenHuman permissions and dispatch. |
| [`action_tool.rs`](./action_tool.rs) / tests | Builds deferred installed-server action tools and rechecks admission before execution. |
-| [`helpers.rs`](./helpers.rs) | Product identifier validation, workspace config selection, and environment-key injection. |
| [`stub.rs`](./stub.rs) | Empty/no-op registry facade when the `mcp` feature is disabled. |
## Behavior and boundaries
diff --git a/crates/openhuman-core/src/mcp/registry/mod.rs b/crates/openhuman-core/src/mcp/registry/mod.rs
index fec350a85b..187855d351 100644
--- a/crates/openhuman-core/src/mcp/registry/mod.rs
+++ b/crates/openhuman-core/src/mcp/registry/mod.rs
@@ -37,7 +37,6 @@ pub mod bus;
#[cfg(feature = "mcp")]
pub mod config_ops;
#[cfg(feature = "mcp")]
-#[cfg(feature = "mcp")]
pub mod ops;
#[cfg(feature = "mcp")]
mod schemas;
diff --git a/crates/openhuman-core/src/mcp/registry/ops_tests.rs b/crates/openhuman-core/src/mcp/registry/ops_tests.rs
index 2f9e5496e6..9faa506897 100644
--- a/crates/openhuman-core/src/mcp/registry/ops_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/ops_tests.rs
@@ -16,18 +16,6 @@ use tinymcp_bus::{
ValidateServerArgumentsRequest,
};
-#[test]
-fn a_blank_identifier_is_refused_with_the_field_name() {
- // The frontend surfaces this text, so it has to name what was missing.
- let error = require(" ", "server_id").expect_err("a blank identifier");
- assert_eq!(error, "server_id must not be empty");
-}
-
-#[test]
-fn an_identifier_is_trimmed_before_it_is_used() {
- assert_eq!(require(" srv-1 ", "server_id").unwrap(), "srv-1");
-}
-
// ── list_tools refusals (#6313) ─────────────────────────────────────────────
//
// A per-workspace fake module port keeps these handler tests independent of a
@@ -197,9 +185,13 @@ fn refusals_name_only_tools_on_every_listing_belt() {
let refusals: Vec<String> = ["srv-1", "io.github.other/absent"]
.into_iter()
.map(|requested| {
- match explain_not_connected(requested, std::slice::from_ref(&install), Caller::Agent) {
- NotConnected::Refused(message) => message,
- NotConnected::Resolved(id) => panic!("{requested} resolved to {id}"),
+ match explain_not_connected(
+ requested,
+ std::slice::from_ref(&install),
+ Caller::Agent.remedy(),
+ ) {
+ NotConnectedExplanation::Refused(message) => message,
+ other => panic!("{requested} was not refused: {other:?}"),
}
})
.collect();
@@ -309,22 +301,3 @@ async fn a_qualified_name_lists_the_tools_of_its_connected_install() {
listed.value
);
}
-
-#[test]
-fn a_registry_name_installed_twice_is_refused_with_both_ids() {
- let install = |server_id: &str| tinymcp_bus::ConnStatus {
- server_id: server_id.into(),
- qualified_name: QUALIFIED.into(),
- display_name: "uuid".into(),
- status: tinymcp_bus::ServerStatus::Disconnected,
- tool_count: 0,
- last_error: None,
- auth_hint: None,
- };
- let installs = [install("srv-a"), install("srv-b")];
- let NotConnected::Refused(message) = explain_not_connected(QUALIFIED, &installs, Caller::Agent)
- else {
- panic!("an ambiguous name must not resolve");
- };
- assert!(message.contains("srv-a, srv-b"), "{message}");
-}