ocerebro 0.4.22 → 0.4.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -444,17 +444,13 @@ def setup_claude(auto: bool = True) -> bool:
444
444
  python_cmd = find_python_with_ocerebro()
445
445
  print(f"[1/5] Python detectado: {python_cmd}")
446
446
 
447
- # Encontra caminho do OCerebro
448
- ocerebro_path = get_ocerebro_path()
449
-
450
447
  # Gera configuração MCP
451
448
  mcp_config = {
449
+ "transport": "stdio",
452
450
  "command": python_cmd,
453
- "args": ["-m", "src.mcp.server"],
454
- "cwd": str(ocerebro_path),
455
- "env": {}
451
+ "args": ["-m", "ocerebro.mcp.server"]
456
452
  }
457
- print(f"[2/5] Configuração MCP gerada")
453
+ print(f"[2/5] MCP command: {python_cmd} -m ocerebro.mcp.server")
458
454
 
459
455
  configured = []
460
456
  errors = []
@@ -499,13 +495,20 @@ def setup_claude(auto: bool = True) -> bool:
499
495
  except json.JSONDecodeError:
500
496
  print(f" Aviso: Config existente inválida, criando nova")
501
497
 
502
- if "mcpServers" not in existing_config:
503
- existing_config["mcpServers"] = {}
504
- existing_config["mcpServers"]["ocerebro"] = mcp_config
505
-
506
- if "mcp" not in existing_config:
507
- existing_config["mcp"] = {}
508
- existing_config["mcp"]["enabled"] = True
498
+ # MCP config para Claude Code usa mcp.servers
499
+ if target_type == "code":
500
+ if "mcp" not in existing_config:
501
+ existing_config["mcp"] = {}
502
+ if "servers" not in existing_config["mcp"]:
503
+ existing_config["mcp"]["servers"] = {}
504
+ existing_config["mcp"]["enabled"] = True
505
+ existing_config["mcp"]["servers"]["ocerebro"] = mcp_config
506
+
507
+ # MCP config para Claude Desktop usa mcpServers
508
+ elif target_type == "desktop":
509
+ if "mcpServers" not in existing_config:
510
+ existing_config["mcpServers"] = {}
511
+ existing_config["mcpServers"]["ocerebro"] = mcp_config
509
512
 
510
513
  # Adiciona hook para dream automatico ao final da sessao
511
514
  if "hooks" not in existing_config:
@@ -518,7 +521,7 @@ def setup_claude(auto: bool = True) -> bool:
518
521
  "hooks": [
519
522
  {
520
523
  "type": "command",
521
- "command": f"{python_cmd} -m src.cli.main dream --since 1 --apply --silent"
524
+ "command": "ocerebro dream --since 1 --apply --silent"
522
525
  }
523
526
  ]
524
527
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocerebro",
3
- "version": "0.4.22",
3
+ "version": "0.4.23",
4
4
  "description": "OCerebro - Sistema de Memoria para Agentes (Claude Code/MCP)",
5
5
  "main": "bin/ocerebro.js",
6
6
  "bin": {
@@ -47,6 +47,6 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "ocerebro": "^0.4.20"
50
+ "ocerebro": "^0.4.23"
51
51
  }
52
52
  }
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ocerebro"
7
- version = "0.4.22"
7
+ version = "0.4.23"
8
8
  description = "OCerebro - Sistema de Memoria para Agentes (Claude Code/MCP)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"