Skip to content

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

test(observability): align mcp 401 classification fixtures with tinymcp

Steven Enamakel74563522db7f
diff --git a/Cargo.lock b/Cargo.lock
index 6751952a32..30e0c53559 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7092,9 +7092,6 @@ dependencies = [
name = "tinymcp"
version = "0.13.0"
dependencies = [
- "anyhow",
- "async-trait",
- "axum",
"base64 0.23.1",
"dirs 7.0.0",
"futures-util",
@@ -7110,7 +7107,6 @@ dependencies = [
"tinytools",
"tinytools-std",
"tokio",
- "tokio-stream",
"tracing",
"url",
"urlencoding",
diff --git a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs
index 98586a1294..69736eeeb7 100644
--- a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs
+++ b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs
@@ -140,23 +140,20 @@ fn report_error_or_expected_demotes_codex_auth_unavailable() {
/// preventable user-state (the server needs OAuth sign-in), already handled
/// by the `needs_auth` UX (#3733 / #3719), so it must classify as
/// `McpServerNeedsAuth` and stay out of Sentry. The canonical body comes
-/// using the public TinyMCP unauthorized message shape (both the bare and
-/// `resource metadata:` variants), plus the
-/// `mcp_clients_connect`-prefixed RPC re-report shape that actually reaches
-/// the dispatcher.
+/// using the public TinyMCP unauthorized message shape, plus the
+/// `mcp_clients_connect`-prefixed RPC re-report shape that reaches the
+/// dispatcher. The metadata URL is intentionally absent from the message.
#[test]
fn classifies_mcp_connect_401_as_needs_auth() {
// Pin the wording that reaches the classifier without linking the
// implementation crate into host tests.
- let bare = "MCP server at https://youtube.run.tools requires authentication";
- let with_meta = "MCP server at https://youtube.run.tools requires authentication (resource metadata: https://youtube.run.tools/.well-known/oauth-protected-resource)";
+ let bare = "mcp unauthorized for `https://youtube.run.tools` (HTTP 401)";
for msg in [
bare.to_string(),
- with_meta.to_string(),
// The stringified RPC re-report shape that propagates from
// `mcp_clients_connect` to `report_error_or_expected`.
- format!("openhuman.mcp_clients_connect failed: {with_meta}"),
+ format!("openhuman.mcp_clients_connect failed: {bare}"),
] {
assert_eq!(
expected_error_kind(&msg),
diff --git a/vendor/tinymcp b/vendor/tinymcp
index 11ef3c8403..e61b513654 160000
--- a/vendor/tinymcp
+++ b/vendor/tinymcp
@@ -1 +1 @@
-Subproject commit 11ef3c840309e18274fce6a6ded26490ca7a9138
+Subproject commit e61b513654ede38fd631848b4a1338f1965efe44