@ouro.bot/cli 0.1.0-alpha.142 → 0.1.0-alpha.145

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.
@@ -1,109 +1,81 @@
1
1
  # Configure Dev Tools for MCP Agent Bridge
2
2
 
3
- Set up your development tools (Claude Code, Codex) to communicate with Ouroboros agents via MCP (Model Context Protocol). This enables bidirectional structured communication between dev tools and running agents.
3
+ Set up your development tools (Claude Code, Codex) to communicate with Ouroboros agents via MCP. One command does everything.
4
4
 
5
- ## Claude Code Setup
5
+ ## Setup
6
6
 
7
- Add an MCP server entry to your Claude Code settings at `~/.claude/settings.json`:
8
-
9
- ```json
10
- {
11
- "mcpServers": {
12
- "ouro": {
13
- "command": "ouro",
14
- "args": ["mcp-serve", "--agent", "<agent-name>"]
15
- }
16
- }
17
- }
18
- ```
19
-
20
- Replace `<agent-name>` with the name of the agent you want to connect to (e.g., `slugger`).
21
-
22
- ### Per-project configuration
23
-
24
- You can also add the MCP entry to a project-level `.claude/settings.json` to scope it to a specific workspace.
25
-
26
- ## Codex Setup
27
-
28
- Add the MCP server using the Codex CLI:
7
+ ### Claude Code
29
8
 
30
9
  ```bash
31
- codex mcp add ouro -- ouro mcp-serve --agent <agent-name>
10
+ ouro setup --tool claude-code --agent <agent-name>
32
11
  ```
33
12
 
34
- ### Spawned session injection
13
+ This command:
14
+ 1. Registers the MCP server with Claude Code via `claude mcp add`
15
+ 2. Configures lifecycle hooks (SessionStart, Stop, PostToolUse) for passive awareness
16
+ 3. Detects dev vs installed mode automatically and uses the correct command path
35
17
 
36
- When the agent spawns Codex for coding tasks, MCP configuration is injected automatically via the `-c` flag:
18
+ ### Codex
37
19
 
38
20
  ```bash
39
- codex -c '{"mcp_servers":{"ouro":{"command":"ouro","args":["mcp-serve","--agent","<agent-name>"]}}}' ...
21
+ ouro setup --tool codex --agent <agent-name>
40
22
  ```
41
23
 
42
- You do not need to configure this manually -- the harness handles it.
24
+ This command:
25
+ 1. Registers the MCP server with Codex via `codex mcp add`
26
+ 2. Detects dev vs installed mode automatically
43
27
 
44
28
  ## Verification
45
29
 
46
- After configuration, verify the connection:
30
+ After setup, verify the connection:
47
31
 
48
- 1. **Check daemon is running**: The agent daemon must be active. Start it with `ouro daemon --agent <agent-name>` if needed.
49
- 2. **Test from Claude Code**: Ask Claude Code to use the `status` tool to check the agent's state.
50
- 3. **Test from Codex**: Run `codex exec "Use the ouro status tool to check the agent"`.
32
+ 1. **Check daemon is running**: `ouro up` (installed) or `ouro dev --repo-path <path>` (dev mode).
33
+ 2. **Test from Claude Code**: Start a new session and use the `status` tool.
34
+ 3. **Test from Codex**: Run `codex exec "Use the <agent-name> status tool"`.
35
+ 4. **Check registration**: `claude mcp list` or `codex mcp list`.
51
36
 
52
37
  ## Available MCP Tools
53
38
 
54
- Once connected, the following tools are available:
39
+ Once connected, these tools are available:
40
+
41
+ ### Conversation tools (new)
42
+ - **send_message** -- Send a message and get a synchronous agent response (full turn with tools)
43
+ - **check_response** -- Check for pending messages from the agent (after ponder or proactive surface)
55
44
 
45
+ ### Read-only tools
56
46
  - **ask** -- Ask the agent a question (uses memory and context)
57
47
  - **status** -- Get agent's current status and activity
58
48
  - **catchup** -- Get recent activity summary
59
- - **delegate** -- Request the agent to handle a task
60
49
  - **get_context** -- Get agent's current working context
61
50
  - **search_memory** -- Search agent's memory for specific topics
62
51
  - **get_task** -- Get details of the agent's current task
63
52
  - **check_scope** -- Verify if something is in scope for current work
64
- - **request_decision** -- Ask agent to make a decision about something
65
53
  - **check_guidance** -- Get guidance on how to approach something
54
+
55
+ ### Write tools
56
+ - **delegate** -- Request the agent to handle a task (runs full conversation turn)
57
+ - **request_decision** -- Ask agent to make a decision about something
66
58
  - **report_progress** -- Report progress on delegated work
67
59
  - **report_blocker** -- Report a blocker on delegated work
68
60
  - **report_complete** -- Report completion of delegated work
69
61
 
70
- ## Hybrid Model
71
-
72
- The MCP bridge creates a hybrid collaboration model:
73
-
74
- - **Dev tool** (Claude Code / Codex) handles code editing, file operations, and tool execution
75
- - **Agent** (Ouroboros) provides context, memory, task awareness, and decision-making
76
- - **Communication** flows both directions via MCP tool calls
77
-
78
- This means the dev tool can ask the agent for guidance mid-task, and the agent can monitor progress through structured reports.
79
-
80
62
  ## Troubleshooting
81
63
 
82
64
  ### "Daemon not running" error
83
- The agent daemon must be active before the MCP server can forward requests. Start it with:
84
- ```bash
85
- ouro daemon --agent <agent-name>
86
- ```
65
+ Most read-only tools work without the daemon (reads filesystem directly). For write operations and `send_message`, start the daemon with `ouro up` or `ouro dev`.
87
66
 
88
- ### MCP server not appearing in tool list
89
- - Verify the `ouro` command is available in your PATH (install via `npm install -g @ouro.bot/cli`)
90
- - Check that the settings file is valid JSON
91
- - Restart your dev tool after changing MCP configuration
67
+ ### MCP server not appearing
68
+ - Run `claude mcp list` or `codex mcp list` to verify registration
69
+ - Re-run `ouro setup` to fix
70
+ - Restart your dev tool (MCP loads at session start)
92
71
 
93
72
  ### Connection timeouts
94
- The MCP server connects to the daemon via Unix socket. If the socket file is stale:
95
- 1. Stop the daemon: `ouro daemon stop --agent <agent-name>`
96
- 2. Restart: `ouro daemon --agent <agent-name>`
97
-
98
- ### Friend identity
99
- By default, the MCP server identifies as the local user. To use a specific friend identity:
100
- ```json
101
- {
102
- "mcpServers": {
103
- "ouro": {
104
- "command": "ouro",
105
- "args": ["mcp-serve", "--agent", "<agent-name>", "--friend", "<friend-id>"]
106
- }
107
- }
108
- }
73
+ - Ensure `dist/` is built: `npm run build`
74
+ - Check that the entry point path is correct (setup auto-detects this)
75
+
76
+ ### Removing
77
+ ```bash
78
+ claude mcp remove ouro-<agent-name>
79
+ # or
80
+ codex mcp remove ouro-<agent-name>
109
81
  ```