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
fix(mcp): handle missing origin field in triage tool response
Steven Enamakel10e273e0cee3
diff --git a/crates/openhuman-core/src/agent/triage/origin_tests.rs b/crates/openhuman-core/src/agent/triage/origin_tests.rsindex 26abddfa1d..204ea5a340 100644--- a/crates/openhuman-core/src/agent/triage/origin_tests.rs+++ b/crates/openhuman-core/src/agent/triage/origin_tests.rs@@ -83,7 +83,7 @@ fn every_dispatch_site_scopes_an_origin() {const KNOWN_SITES: &[(&str, &str)] = &[// Remote payloads — park and audit.(- "crates/openhuman-core/src/memory/sync/composio/bus/trigger_subscriber.rs",+ "crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs","remote",),(diff --git a/crates/openhuman-core/src/mcp/server/handler.rs b/crates/openhuman-core/src/mcp/server/handler.rsindex 66306b783c..c452258ab7 100644--- a/crates/openhuman-core/src/mcp/server/handler.rs+++ b/crates/openhuman-core/src/mcp/server/handler.rs@@ -28,7 +28,7 @@ use super::{resources, subagent_depth, tools};const SOURCE_TYPE_PREFIX: &str = "mcp";/// The `instructions` OpenHuman's `initialize` result carries.-const INSTRUCTIONS: &str = "OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.search or memory.recall plus tree.read_chunk for local memory reads.";+const INSTRUCTIONS: &str = "OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.recall (answer with citations), memory.fetch or memory.list for local memory reads, and memory.learn or memory.forget to change it.";/// The handler every OpenHuman MCP transport serves.#[derive(Debug, Clone, Copy, Default)]diff --git a/crates/openhuman-core/src/mcp/server/stdio.rs b/crates/openhuman-core/src/mcp/server/stdio.rsindex bbb0e594bd..c5bcce28ed 100644--- a/crates/openhuman-core/src/mcp/server/stdio.rs+++ b/crates/openhuman-core/src/mcp/server/stdio.rs@@ -157,8 +157,7 @@ fn print_help() {eprintln!("Tools exposed (stdio and HTTP):");eprintln!(" core.list_tools, core.tool_instructions");eprintln!(" agent.list_subagents, agent.run_subagent");- eprintln!(" memory.search, memory.recall, tree.read_chunk, tree.browse,");- eprintln!(" tree.top_entities, tree.list_sources");+ eprintln!(" memory.recall, memory.fetch, memory.list, memory.learn, memory.forget");eprintln!();eprintln!("Logging is written to stderr. Stdio protocol messages use stdout only.");}diff --git a/crates/openhuman-core/src/mcp/server/tools/specs.rs b/crates/openhuman-core/src/mcp/server/tools/specs.rsindex 9c844f4c36..580967aea1 100644--- a/crates/openhuman-core/src/mcp/server/tools/specs.rs+++ b/crates/openhuman-core/src/mcp/server/tools/specs.rs@@ -180,7 +180,7 @@ pub fn base_tool_specs() -> Vec<McpToolSpec> {}/// Annotation preset for the read-only, closed-world tools that just read-/// OpenHuman's local memory tree or agent registry. The MCP spec defaults are+/// OpenHuman's local memory or agent registry. The MCP spec defaults are/// `readOnlyHint: false` / `openWorldHint: true`, so both fields must be set/// explicitly to communicate the actual shape to clients. Destructive and/// idempotent hints are deliberately omitted — per the spec they arediff --git a/crates/openhuman-core/src/mcp/server/wire_golden_tests.rs b/crates/openhuman-core/src/mcp/server/wire_golden_tests.rsindex f249ba0ac7..aed8a8443c 100644--- a/crates/openhuman-core/src/mcp/server/wire_golden_tests.rs+++ b/crates/openhuman-core/src/mcp/server/wire_golden_tests.rs@@ -24,19 +24,19 @@ const LINE_CASES: &[(&str, Option<&str>)] = &[(r#"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"Claude Desktop","version":"0"}}}"#,Some(- r#"{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{}},"instructions":"OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.search or memory.recall plus tree.read_chunk for local memory reads.","protocolVersion":"2025-06-18","serverInfo":{"name":"openhuman-core","version":"{{CARGO_PKG_VERSION}}"}}}"#,+ r#"{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{}},"instructions":"OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.recall (answer with citations), memory.fetch or memory.list for local memory reads, and memory.learn or memory.forget to change it.","protocolVersion":"2025-06-18","serverInfo":{"name":"openhuman-core","version":"{{CARGO_PKG_VERSION}}"}}}"#,),),(r#"{"jsonrpc":"2.0","id":"init","method":"initialize","params":{"protocolVersion":"1999-01-01"}}"#,Some(- r#"{"id":"init","jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{}},"instructions":"OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.search or memory.recall plus tree.read_chunk for local memory reads.","protocolVersion":"2025-11-25","serverInfo":{"name":"openhuman-core","version":"{{CARGO_PKG_VERSION}}"}}}"#,+ r#"{"id":"init","jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{}},"instructions":"OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.recall (answer with citations), memory.fetch or memory.list for local memory reads, and memory.learn or memory.forget to change it.","protocolVersion":"2025-11-25","serverInfo":{"name":"openhuman-core","version":"{{CARGO_PKG_VERSION}}"}}}"#,),),(r#"{"jsonrpc":"2.0","id":7,"method":"initialize"}"#,Some(- r#"{"id":7,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{}},"instructions":"OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.search or memory.recall plus tree.read_chunk for local memory reads.","protocolVersion":"2025-11-25","serverInfo":{"name":"openhuman-core","version":"{{CARGO_PKG_VERSION}}"}}}"#,+ r#"{"id":7,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{}},"instructions":"OpenHuman MCP exposes first-level core integration: inspect the live tool catalog with core.list_tools or core.tool_instructions, inspect subagents with agent.list_subagents, run a standalone subagent with agent.run_subagent, use web_search or web_answer for live web lookups (and searxng_search when self-hosted search is enabled), and use memory.recall (answer with citations), memory.fetch or memory.list for local memory reads, and memory.learn or memory.forget to change it.","protocolVersion":"2025-11-25","serverInfo":{"name":"openhuman-core","version":"{{CARGO_PKG_VERSION}}"}}}"#,),),(