Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(marketplace): use portable hosted developer MCPs
Ruben Lütke855b13086d9e
diff --git a/jarvis/marketplace/catalog_data.py b/jarvis/marketplace/catalog_data.pyindex b6325bfd51..5796efef4e 100644--- a/jarvis/marketplace/catalog_data.py+++ b/jarvis/marketplace/catalog_data.py@@ -20,9 +20,83 @@ _DEFAULT_CATALOG_PATH = (_PACKAGE_SEED_PATH = Path(__file__).parent / "seed_catalog.json"+_PORTABLE_MCP_MIGRATIONS: dict[str, tuple[dict[str, object], dict[str, object]]] = {+ "github": (+ {+ "transport": "stdio",+ "install": [+ "docker",+ "run",+ "-i",+ "--rm",+ "-e",+ "GITHUB_PERSONAL_ACCESS_TOKEN",+ "ghcr.io/github/github-mcp-server",+ ],+ "env_template": {+ "GITHUB_PERSONAL_ACCESS_TOKEN": "$plugin_github_access_token"+ },+ },+ {+ "transport": "http",+ "url": "https://api.githubcopilot.com/mcp/",+ "auth_header_template": (+ "Authorization: Bearer $plugin_github_access_token"+ ),+ },+ ),+ "supabase": (+ {+ "transport": "stdio",+ "install": [+ "npx",+ "-y",+ "@supabase/mcp-server-supabase@latest",+ "--read-only",+ "--access-token",+ "$plugin_supabase_access_token",+ ],+ "env_template": {},+ },+ {+ "transport": "http",+ "url": "https://mcp.supabase.com/mcp?read_only=true",+ "auth_header_template": (+ "Authorization: Bearer $plugin_supabase_access_token"+ ),+ },+ ),+}+++def _migrate_obsolete_mcp_transports(raw: object) -> object:+ """Upgrade exact built-in launcher specs without changing user variants.++ Older installs materialized the package catalog under ``data/``. That+ override otherwise wins forever and keeps GitHub dependent on Docker and+ Supabase dependent on Node.js even after the package seed is fixed. Only+ byte-equivalent legacy specs are upgraded in memory; any customized server+ command or endpoint remains untouched.+ """+ if not isinstance(raw, dict) or not isinstance(raw.get("plugins"), list):+ return raw+ for plugin in raw["plugins"]:+ if not isinstance(plugin, dict):+ continue+ migration = _PORTABLE_MCP_MIGRATIONS.get(str(plugin.get("id", "")))+ if migration is None:+ continue+ legacy, portable = migration+ if plugin.get("mcp_server") == legacy:+ plugin["mcp_server"] = portable+ return raw++def _read(path: Path) -> PluginCatalog:with path.open(encoding="utf-8-sig") as f:raw = json.load(f)+ if path.resolve() == _DEFAULT_CATALOG_PATH.resolve():+ raw = _migrate_obsolete_mcp_transports(raw)return PluginCatalog.model_validate(raw)diff --git a/jarvis/marketplace/seed_catalog.json b/jarvis/marketplace/seed_catalog.jsonindex 49ca2cb4c0..fdf8130190 100644--- a/jarvis/marketplace/seed_catalog.json+++ b/jarvis/marketplace/seed_catalog.json@@ -17,17 +17,11 @@"instruction_md": "1. The link below opens GitHub with the right scopes (repo, workflow, read:user) already ticked.\n2. Pick an expiration (90 days is a sensible default), then click 'Generate token'.\n3. Copy the token (shown only once) and paste it below.\n4. If your repos sit behind SAML SSO, click 'Configure SSO' next to the new token after creation."},"mcp_server": {- "transport": "stdio",- "install": [- "docker", "run", "-i", "--rm",- "-e", "GITHUB_PERSONAL_ACCESS_TOKEN",- "ghcr.io/github/github-mcp-server"- ],- "env_template": {- "GITHUB_PERSONAL_ACCESS_TOKEN": "$plugin_github_access_token"- }+ "transport": "http",+ "url": "https://api.githubcopilot.com/mcp/",+ "auth_header_template": "Authorization: Bearer $plugin_github_access_token"},- "post_install_hint_md": "If you use SAML SSO, you may need to authorize this token at https://github.com/settings/tokens after install."+ "post_install_hint_md": "Uses GitHub's hosted MCP server, so Docker is not required. If you use SAML SSO, authorize the token at https://github.com/settings/tokens after connecting."},{"id": "vercel",@@ -61,15 +55,11 @@"instruction_md": "1. Click 'Generate new token'\n2. Name: 'Personal Jarvis'\n3. Copy the token (shown once)"},"mcp_server": {- "transport": "stdio",- "install": [- "npx", "-y", "@supabase/mcp-server-supabase@latest",- "--read-only",- "--access-token", "$plugin_supabase_access_token"- ],- "env_template": {}+ "transport": "http",+ "url": "https://mcp.supabase.com/mcp?read_only=true",+ "auth_header_template": "Authorization: Bearer $plugin_supabase_access_token"},- "post_install_hint_md": "Read-only mode is enabled by default. To allow write operations, toggle in Plugin settings."+ "post_install_hint_md": "Uses Supabase's hosted MCP server, so Node.js is not required. Read-only mode is enforced in the server URL."},{"id": "notion",diff --git a/tests/unit/marketplace/test_catalog_seed.py b/tests/unit/marketplace/test_catalog_seed.pyindex ecda7bec1f..bf16133e81 100644--- a/tests/unit/marketplace/test_catalog_seed.py+++ b/tests/unit/marketplace/test_catalog_seed.py@@ -21,6 +21,27 @@ def test_package_seed_exists_and_is_valid() -> None:assert {"github", "notion", "linear"} <= ids+def test_developer_connectors_use_hosted_mcp_without_local_runtimes() -> None:+ catalog = _seed()+ github = catalog.by_id("github")+ supabase = catalog.by_id("supabase")++ assert github is not None and github.mcp_server == {+ "transport": "http",+ "url": "https://api.githubcopilot.com/mcp/",+ "auth_header_template": (+ "Authorization: Bearer $plugin_github_access_token"+ ),+ }+ assert supabase is not None and supabase.mcp_server == {+ "transport": "http",+ "url": "https://mcp.supabase.com/mcp?read_only=true",+ "auth_header_template": (+ "Authorization: Bearer $plugin_supabase_access_token"+ ),+ }++def test_falls_back_to_seed_when_no_data_override(monkeypatch, tmp_path) -> None:clear_cache()monkeypatch.setattr(catalog_data, "_DEFAULT_CATALOG_PATH", tmp_path / "absent.json")@@ -44,6 +65,52 @@ def test_data_override_wins_when_present(monkeypatch, tmp_path) -> None:clear_cache()+def test_default_override_migrates_only_exact_obsolete_mcp_launchers(+ monkeypatch,+ tmp_path,+) -> None:+ clear_cache()+ override = tmp_path / "plugin_catalog.json"+ seed = json.loads(catalog_data._PACKAGE_SEED_PATH.read_text(encoding="utf-8"))+ github = next(item for item in seed["plugins"] if item["id"] == "github")+ supabase = next(item for item in seed["plugins"] if item["id"] == "supabase")+ github["mcp_server"] = {+ "transport": "stdio",+ "install": [+ "docker",+ "run",+ "-i",+ "--rm",+ "-e",+ "GITHUB_PERSONAL_ACCESS_TOKEN",+ "ghcr.io/github/github-mcp-server",+ ],+ "env_template": {+ "GITHUB_PERSONAL_ACCESS_TOKEN": "$plugin_github_access_token"+ },+ }+ supabase["mcp_server"] = {+ "transport": "stdio",+ "install": [+ "npx",+ "-y",+ "@supabase/mcp-server-supabase@latest",+ "--read-only",+ "--access-token",+ "$plugin_supabase_access_token",+ ],+ "env_template": {},+ }+ override.write_text(json.dumps(seed), encoding="utf-8")+ monkeypatch.setattr(catalog_data, "_DEFAULT_CATALOG_PATH", override)++ catalog = load_catalog()++ assert catalog.by_id("github").mcp_server["transport"] == "http"+ assert catalog.by_id("supabase").mcp_server["transport"] == "http"+ clear_cache()++def _seed():"""Load the tracked package seed directly (independent of any data/ override)."""clear_cache()diff --git a/tests/unit/marketplace/test_mcp_bridge.py b/tests/unit/marketplace/test_mcp_bridge.pyindex 6cdda542c7..324df12875 100644--- a/tests/unit/marketplace/test_mcp_bridge.py+++ b/tests/unit/marketplace/test_mcp_bridge.py@@ -22,22 +22,21 @@ def _store(**connected: str) -> TokenStore:return ts-def test_stdio_plugin_resolves_env_token() -> None:- # github = stdio MCP; token rides in env_template GITHUB_PERSONAL_ACCESS_TOKEN+def test_github_uses_portable_hosted_mcp() -> None:servers = assemble_claude_mcp_servers(load_catalog(), _store(github="ghp_SECRET"))gh = servers["github"]- assert gh["command"] == "docker"- assert gh["env"]["GITHUB_PERSONAL_ACCESS_TOKEN"] == "ghp_SECRET"- # placeholder must be fully resolved, never leak verbatim+ assert gh["type"] == "http"+ assert gh["url"] == "https://api.githubcopilot.com/mcp/"+ assert gh["headers"]["Authorization"] == "Bearer ghp_SECRET"assert "$plugin_github_access_token" not in json.dumps(gh)-def test_stdio_plugin_resolves_arg_placeholder() -> None:- # supabase = stdio MCP; token rides as an ``--access-token`` argv value+def test_supabase_uses_portable_read_only_hosted_mcp() -> None:servers = assemble_claude_mcp_servers(load_catalog(), _store(supabase="sbp_SECRET"))sb = servers["supabase"]- assert sb["command"] == "npx"- assert "sbp_SECRET" in sb["args"]+ assert sb["type"] == "http"+ assert sb["url"] == "https://mcp.supabase.com/mcp?read_only=true"+ assert sb["headers"]["Authorization"] == "Bearer sbp_SECRET"assert "$plugin_supabase_access_token" not in json.dumps(sb)@@ -64,7 +63,12 @@ def test_unconnected_plugin_is_skipped() -> None:def test_extra_mcp_json_servers_are_merged() -> None:- extra = {"local-fs": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem"]}}+ extra = {+ "local-fs": {+ "command": "npx",+ "args": ["-y", "@modelcontextprotocol/server-filesystem"],+ }+ }servers = assemble_claude_mcp_servers(load_catalog(), _store(github="ghp_X"), extra_servers=extra)