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
docs(mcp): update registry README to reflect removal of setup tools and install-from-catalog RPC
Steven Enamakelf9da5a47c47b
diff --git a/crates/openhuman-core/src/mcp/registry/README.md b/crates/openhuman-core/src/mcp/registry/README.mdindex f1deebe4a2..750e8bc0b3 100644--- a/crates/openhuman-core/src/mcp/registry/README.md+++ b/crates/openhuman-core/src/mcp/registry/README.md@@ -1,13 +1,18 @@-# mcp/registry — user-installed MCP servers+# mcp/registry — user-declared MCP servers-Host half of the dynamic, user-installed MCP server surface. The registry+Host half of the dynamic, user-declared MCP server surface. The registryitself — the Smithery and official catalogs, the SQLite store, the live-connection map, the subprocess/browser-sign-in supervisor, and the setup-secret vault — moved to [`tinymcp`](https://github.com/tinyhumansai/tinymcp).-What is left here is what belongs to this application: the `mcp_clients` and-`mcp_setup` RPC surface, the agent-facing tools, the prompt-injection scan-over remote tool definitions, and turning what the reconnect supervisor-observed into this application's own events.+connection map, and the subprocess/browser-sign-in supervisor — moved to+[`tinymcp`](https://github.com/tinyhumansai/tinymcp). What is left here is+what belongs to this application: the `mcp_clients` RPC surface, the+`mcp.json` document that is the only way a server is added or removed, the+agent-facing tools, the prompt-injection scan over remote tool definitions,+and turning what the reconnect supervisor observed into this application's+own events.++The catalogs are **browse-only**. There is no install-from-catalog RPC, no+install tool and no setup agent: a user finds a server in the Registry tab,+opens its own page, and declares it in `mcp.json`.The RPC namespace and the on-disk database filename are still `mcp_clients`,unchanged across the move — existing frontend code and existing on-disk state@@ -19,12 +24,13 @@ keep working. The Rust module path is `crate::mcp::registry`.| --- | --- || `mod.rs` | Module declarations, the `connections`/`store`/`boot`/`supervisor`/`oauth` re-export facades, and `tools_safe_for_agent` (the prompt-injection scan). || `ops.rs` / `ops_tests.rs` | `mcp_clients_*` RPC handler bodies — each delegates to the service `mcp::host` holds. |-| `setup_ops.rs` / `setup_ops_tests.rs` | `mcp_setup_*` guided-setup handler bodies. |-| `schemas.rs`, `schemas/` (`mod.rs`, `registry.rs`, `handlers.rs`, `params.rs`, `setup_registry.rs`, `setup_handlers.rs`), `schemas_tests.rs` | Controller schema registry and dispatch. |+| `config_doc.rs` / `config_doc_tests.rs` | The `mcp.json` contract: how the store renders as a document (credential names only), what a written one may say, and the reconciliation helpers. |+| `config_ops.rs` | `mcp_clients_config_get` / `config_set`: replace the store with what the document declares. |+| `schemas/` (`mod.rs`, `registry.rs`, `handlers.rs`, `params.rs`), `schemas_tests.rs` | Controller schema registry and dispatch. || `supervisor_events.rs` / `supervisor_events_tests.rs` | Maps a supervisor tick's `TickReport` into `DomainEvent`s. || `bus.rs` / `bus_tests.rs` | `McpClientEventSubscriber` — logs lifecycle events for observability. || `tools.rs` / `tools_tests.rs` | Agent-facing `mcp_registry_*` tools, thin shims over `ops.rs`. |-| `helpers.rs` | Shared identifier validation, workspace-service resolution, and env-key injection used by both `ops.rs` and `setup_ops.rs`. |+| `helpers.rs` | Shared identifier validation, workspace-service resolution, and env-key injection used by the handlers. || `stub.rs` | The `mcp`-less mirror of the always-on surface: `all_mcp_registry_registered_controllers` (empty), `boot`, `bus`, `supervisor`, `oauth`, and the three `connections` lookups always-on callers name. |## Modules re-exported over `tinymcp`@@ -57,29 +63,33 @@ keep working. The Rust module path is `crate::mcp::registry`.## RPC surface`ops.rs` implements the `mcp_clients` namespace: `registry_search`,-`registry_get`, `installed_list`, `install`, `update_env`, `uninstall`,-`detect_auth`, `oauth_begin`, `connect`, `disconnect`, `status`, `tool_call`,-`config_assist`, `registry_settings_get`, `registry_settings_set`,-`set_enabled`. `setup_ops.rs` implements the `mcp_setup` namespace: `search`,-`get`, `request_secret`, `submit_secret`, `test_connection`,-`install_and_connect`. Both are registered together by-`schemas::all_registered_controllers` (`schemas/registry.rs`).+`registry_get`, `installed_list`, `update_env`, `uninstall`, `detect_auth`,+`oauth_begin`, `connect`, `disconnect`, `status`, `tool_call`,+`registry_settings_get`, `registry_settings_set`, `set_enabled`.+`config_ops.rs` adds `config_get` and `config_set` — the `mcp.json`+document. All are registered by `schemas::all_registered_controllers`+(`schemas/registry.rs`).++`config_set` is a *replace*: a server absent from the document is+uninstalled, a new one is inserted as an `InstalledServer` built straight+from its declaration (`command`/`args` → stdio, `url` → HTTP-remote), and one+whose dial changed is rewritten under the same `server_id` so the row the+frontend and the connection map address stays the same row. Credentials are+the exception: `env` (stdio) and `headers` (HTTP) are write-only — a read+renders only `envKeys` and `authConfigured` — so an entry saved without a+credential block keeps what is stored, and a key set to `""` removes that one+value. Enabled servers that were added or rewritten are connected in the+background; the status poll reports the outcome.What stayed host-side inside these handlers, on purpose:- **Events** — `tinymcp` reports outcomes in its return values and publishes- nothing; `ops.rs`/`setup_ops.rs` turn those into `DomainEvent`s because the- vocabulary is this application's.+ nothing; the handlers turn those into `DomainEvent`s because the vocabulary+ is this application's.- **The prompt-injection scan** — `tools_safe_for_agent` filters remote tooldefinitions before they reach the agent.-- **The configuration-assistant agent turn** — `tinymcp` gathers catalog- detail and the credential names an install would need; running the model- turn needs the agent, the tool surface, and the approval gate, all of which- live in this crate.-- **Setup secret handles** — the `secret://…` opaque handle flow: `tinymcp`- owns the vault, this layer publishes the event that prompts the user- out-of-band and waits for the answer. The raw value never crosses the- model-facing surface.+- **The document** — `tinymcp` has no notion of `mcp.json`; the shape, the+ refusals and the reconciliation are this application's.## Reconnect-supervisor events@@ -100,14 +110,13 @@ for the stays-down/restored/parked cases, the desktop notification bridge.`mcp_registry_installed_list`, `mcp_registry_status`,`mcp_registry_list_tools`, `mcp_registry_connect`,`mcp_registry_disconnect`, `mcp_registry_tool_call`,-`mcp_registry_config_assist`, `mcp_registry_install`,`mcp_registry_uninstall` — thin shims over `ops.rs`. Discovery/observe/-connect/call tools are default-ON; `install`/`uninstall` (persistent writes-of installed state and secrets) ship default-OFF, gated behind the-`mcp_manage` toggle in `tools/user_filter.rs`. Re-exported by-`tools/mod.rs` behind `#[cfg(feature = "mcp")]`. The `mcp_setup_*`-setup-agent tools and the generic `mcp_list_servers`/`mcp_call_tool` bridge-tools live elsewhere and are a distinct surface from these+connect/call tools are default-ON; `uninstall` (a persistent write of+installed state) ships default-OFF, gated behind the `mcp_manage` toggle in+`tools/user_filter.rs`. There is no install tool: servers are declared by+the user in `mcp.json`. Re-exported by `tools/mod.rs` behind+`#[cfg(feature = "mcp")]`. The generic `mcp_list_servers`/`mcp_call_tool`+bridge tools live elsewhere and are a distinct surface from these`mcp_registry_*` tools.## Compile-time gate (`mcp` feature)@@ -136,8 +145,6 @@ same real type in both builds.supervisor.- `crates/openhuman-core/src/core/jsonrpc.rs` — the `/oauth/mcp/callback`route calls `oauth::complete`.-- `crates/openhuman-core/src/tools/impl/network/mcp_setup.rs` — the- `mcp_setup_*` agent tools wrap `setup_ops`.- `crates/openhuman-core/src/tools/registry/ops.rs` and`crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs` —read `mcp::registry::connections` to list connected servers/tools for thediff --git a/crates/openhuman-core/src/tools/README.md b/crates/openhuman-core/src/tools/README.mdindex 00b0e7f42e..0bc9822a0a 100644--- a/crates/openhuman-core/src/tools/README.md+++ b/crates/openhuman-core/src/tools/README.md@@ -39,7 +39,7 @@ The agent tool layer. Defines the core [`Tool`] trait every agent-callable capab| `crates/openhuman-core/src/tools/impl/filesystem/` | Tools `file_read`, `file_write`, `edit`, `apply_patch`, `grep`, `glob`, `list`, `read_diff`, `csv_export`, `git_operations`, `run_linter`, `run_tests`, `update_memory_md`. Helper modules (not tools): `git_operations_config`/`git_operations_render`, and `write_sink` (the injectable filesystem-write seam tests use to provoke OS refusals). || `crates/openhuman-core/src/tools/impl/browser/` | `browser` (DOM-snapshot automation, pluggable backend), `browser_open`, `image_info`, Playwright backend. || `crates/openhuman-core/src/tools/impl/system/` | Tools `shell`, `node_exec`, `npm_exec`, `python_exec`, `install_tool`, `detect_tools`, `current_time`, `resolve_time`, `schedule`, `proxy_config`, `pushover`, `lsp`, `tool_stats`, `update_check`, `update_apply`, `insert_sql_record`, `read_workspace_state`, `retrieve_tool_output`. Helper module (not a tool): `command_output`, the shared exit-code/stdout/stderr formatter for the shell family. |-| `crates/openhuman-core/src/tools/impl/network/` | Tools `http_request`, `web_fetch`, `curl`, `gitbooks_search`/`gitbooks_get_page`, `mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool` and the five `mcp_setup_*` tools (both `mcp`-feature gated), `gmail_unsubscribe`. Helper module: `url_guard` (host allowlist matching, private-address rejection, `validate_url`). |+| `crates/openhuman-core/src/tools/impl/network/` | Tools `http_request`, `web_fetch`, `curl`, `gitbooks_search`/`gitbooks_get_page`, `mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool` (`mcp`-feature gated), `gmail_unsubscribe`. Helper module: `url_guard` (host allowlist matching, private-address rejection, `validate_url`). || `crates/openhuman-core/src/tools/impl/meta/` | Tools *about* the tool surface itself: `tool_search` (the lookup half of `ToolExposure::Deferred`) and `collapse` (multi-action schema/permission merging helpers). || `crates/openhuman-core/src/tools/impl/document/` (`documents` feature) | `DocumentTool` (`generate_document`) — structured document generation/editing engine. || `crates/openhuman-core/src/tools/impl/presentation/` (`documents` feature) | `PresentationTool` (`generate_presentation`) — structured slide-deck generation engine. |@@ -78,7 +78,7 @@ This module **owns** the cross-cutting built-in tools (the only ones that belong- **Filesystem**: `file_read`, `file_write`, `edit`, `apply_patch`, `grep`, `glob`, `list`, `read_diff`, `csv_export`, `git_operations`, `run_linter`, `run_tests`, `update_memory_md`.- **System/process**: `shell`, `node_exec`, `npm_exec`, `python_exec`, `install_tool`, `detect_tools`, `current_time`, `resolve_time`, `schedule`, `proxy_config`, `pushover`, `lsp`, `tool_stats`, `update_check`, `update_apply`, `insert_sql_record`, `read_workspace_state`, `retrieve_tool_output`.- **Browser**: `browser`, `browser_open`, `image_info`.-- **Generic network**: `http_request`, `web_fetch`, `curl`, `gitbooks_search`/`gitbooks_get_page`, MCP bridge (`mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool`), `mcp_setup_*` tools, `gmail_unsubscribe`.+- **Generic network**: `http_request`, `web_fetch`, `curl`, `gitbooks_search`/`gitbooks_get_page`, MCP bridge (`mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool`), `gmail_unsubscribe`.- **Meta**: `tool_search` (deferred-tool lookup) and the `collapse` multi-action helpers used by other tools' schema merging.- **Documents** (`documents` feature): `generate_document` (`DocumentTool`), `generate_presentation` (`PresentationTool`).- **Search**: `web_search` and provider-specific search families are registered by `crate::search`; `search.engine = "disabled"` suppresses this surface entirely.diff --git a/crates/openhuman-core/src/tools/impl/README.md b/crates/openhuman-core/src/tools/impl/README.mdindex 49ad2ef52a..c03bc93015 100644--- a/crates/openhuman-core/src/tools/impl/README.md+++ b/crates/openhuman-core/src/tools/impl/README.md@@ -32,7 +32,7 @@ tested but no production assembly site constructs it today.| `system/` | `ShellTool`, `NodeExecTool`, `NpmExecTool`, `PythonExecTool`, `InstallToolTool`, `DetectToolsTool`, `CurrentTimeTool`, `ResolveTimeTool`, `ScheduleTool`, `ProxyConfigTool`, `PushoverTool`, `LspTool`, `ToolStatsTool`, `UpdateCheckTool`, `UpdateApplyTool`, `InsertSqlRecordTool`, `WorkspaceStateTool`, `RetrieveToolOutputTool`; `command_output.rs` is a shared helper, not a tool | `node_exec`/`npm_exec` and `shell`'s PATH injection need the `runtime-node` Cargo feature plus `node.enabled`; `python_exec` needs `runtime_python.enabled`; `LspTool` needs `OPENHUMAN_LSP_ENABLED` (`lsp_capability_enabled`); `ToolStatsTool` needs `learning.enabled` and `learning.tool_tracking_enabled`; `InsertSqlRecordTool` is exported, not registered; the rest are always registered || `filesystem/` | `FileReadTool`, `FileWriteTool`, `EditFileTool`, `ApplyPatchTool`, `GrepTool`, `GlobTool`, `ListFilesTool`, `ReadDiffTool`, `CsvExportTool`, `GitOperationsTool`, `RunLinterTool`, `RunTestsTool`, `UpdateMemoryMdTool` | always registered, except `ReadDiffTool`, `RunLinterTool`, and `RunTestsTool`, which are exported, not registered || `browser/` | `BrowserTool` (DOM-snapshot automation with pluggable backend: `agent_browser`, `playwright`, `rust_native`, `computer_use`, `auto`), `BrowserOpenTool`, `ImageInfoTool` | `BrowserTool`/`BrowserOpenTool` need `browser.enabled`; `ImageInfoTool` is always registered. The browser host allowlist is `browser_allowed_domains(http_request.allowed_domains)`, which strips the `"*"` wildcard; allow-all needs `OPENHUMAN_BROWSER_ALLOW_ALL`. Playwright ships as `playwright_backend.rs` + `include_str!("playwright_runner.mjs")`; `native_backend.rs` (fantoccini) compiles only with the `browser-native` Cargo feature |-| `network/` | `HttpRequestTool`, `WebFetchTool`, `CurlTool`, `GitbooksSearchTool`, `GitbooksGetPageTool`, `GmailUnsubscribeTool`, and under the `mcp` Cargo feature `McpListServersTool`, `McpListToolsTool`, `McpCallTool`, `McpSetupSearchTool`, `McpSetupGetTool`, `McpSetupInstallAndConnectTool`, `McpSetupRequestSecretTool`, `McpSetupTestConnectionTool`; `url_guard.rs` is the shared SSRF/allowlist validator, not a tool | `http_request`, `web_fetch`, `curl`, `gmail_unsubscribe` always registered; `gitbooks_*` need `gitbooks.enabled` and, when the active profile sets an `mcp_allowlist`, an entry named `gitbooks`; the `mcp_setup_*` tools register whenever the `mcp` feature is on; `mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool` register only when the static `[[mcp_client.servers]]` registry (after the profile allowlist) is non-empty |+| `network/` | `HttpRequestTool`, `WebFetchTool`, `CurlTool`, `GitbooksSearchTool`, `GitbooksGetPageTool`, `GmailUnsubscribeTool`, and under the `mcp` Cargo feature `McpListServersTool`, `McpListToolsTool`, `McpCallTool`; `url_guard.rs` is the shared SSRF/allowlist validator, not a tool | `http_request`, `web_fetch`, `curl`, `gmail_unsubscribe` always registered; `gitbooks_*` need `gitbooks.enabled` and, when the active profile sets an `mcp_allowlist`, an entry named `gitbooks`; `mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool` register only when the static `[[mcp_client.servers]]` registry (after the profile allowlist) is non-empty || `document/` (feature `documents`) | `DocumentTool` (`generate_document`) | always registered when compiled. Builds `.docx` bytes via the pure-Rust `engine` module (`docx-rs`, no subprocess) inside `spawn_blocking` + `tokio::time::timeout`; allocates the artifact with `agent::artifacts::create_artifact` (kind `Document`), persists `args.json` next to it for the failed-card Retry path, then `finalize_artifact` or `fail_artifact` || `presentation/` (feature `documents`) | `PresentationTool` (`generate_presentation`) | always registered when compiled. Same shape as `document/` with `ppt-rs` producing `.pptx` and kind `Presentation` || `meta/` | `ToolSearchTool` (`tool_search`, name constant `TOOL_SEARCH_NAME`), `ToolSearchIndex`, `ToolSearchHandle`, `strip_deferred_from_visible`, `bind_tool_search_index`; `collapse` helpers (`resolve`, `merge_action_schemas`, `args_without_action`, `strictest_permission`, `any_external_effect`, `unknown_action_message`, `CollapsedAction`) | not registered: nothing in `tools/ops.rs` or the session builder constructs `ToolSearchTool`, and `strip_deferred_from_visible`/`bind_tool_search_index` have no production caller, so `ToolExposure::Deferred` (declared by e.g. `integrations/tools/stock_prices.rs`) is not enforced today; only `Hidden` is filtered in `agent/session_host/builder/factory.rs`. The `collapse` helpers are used by `cron/tools/collapsed.rs` and `memory/tools/collapsed.rs` to merge a multi-action tool's per-action schemas and permissions into one entry |diff --git a/gitbooks/developing/architecture/frontend.md b/gitbooks/developing/architecture/frontend.mdindex 00ee7bb7f6..bd58d6d8e7 100644--- a/gitbooks/developing/architecture/frontend.md+++ b/gitbooks/developing/architecture/frontend.md@@ -508,7 +508,7 @@ components/├── BootCheckGate/, daemon/ # Boot + service gates in the provider chain├── commands/ # CommandProvider (command palette)├── Announcement/, upsell/, userErrors/, walkthrough/ # Shell-level overlays-├── keyring/, mcp-setup/, InitProgressScreen/ # Consent + init overlays+├── keyring/, InitProgressScreen/ # Consent + init overlays└── intelligence/ # Memory/vault surfaces (ObsidianVaultSection, VaultHealthChecklist, WorkflowsTab, …)```