You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+125Lines changed: 125 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1146,6 +1146,128 @@ mcp:
1146
1146
1147
1147
**Note:** Each agent instance must have a unique `MAILBOX_AGENT_NAME` to properly filter and manage its own messages. The mailbox file is shared across all agents, but each agent only sees messages where it is the recipient.
1148
1148
1149
+
### 🚀 Opencode Server
1150
+
1151
+
An MCP server for controlling opencode AI sessions asynchronously. Start sessions, monitor progress, retrieve logs, and manage multiple concurrent opencode processes.
1152
+
1153
+
**Features:**
1154
+
- Async session management with unique session IDs
1155
+
- Start opencode sessions with full command-line option support
1156
+
- Monitor session status (running, completed, failed, stopped)
1157
+
- Retrieve stdout/stderr logs from sessions
1158
+
- Stop running sessions gracefully
1159
+
- List all sessions with filtering by status
1160
+
- Configurable concurrent session limits
1161
+
- Automatic log cleanup based on retention policy
1162
+
- Ephemeral sessions (do not survive server restarts)
1163
+
1164
+
**Tools:**
1165
+
- `start_session`- Start a new opencode session with a message and options
1166
+
- `get_session_status`- Get the current status of a session by ID
1167
+
- `get_session_logs`- Retrieve stdout and stderr logs from a session
1168
+
- `stop_session`- Stop a running session
1169
+
- `list_sessions`- List all sessions with optional status filtering
1170
+
1171
+
**Configuration:**
1172
+
- `OPENCODE_SESSION_DIR` - Directory for session state and logs (default: `/tmp/opencode-sessions`)
1173
+
- `OPENCODE_BINARY` - Path to opencode binary (default: `/usr/local/bin/opencode`)
1174
+
- `OPENCODE_MAX_SESSIONS` - Maximum number of concurrent sessions (default: `10`)
1175
+
- `OPENCODE_LOG_RETENTION_HOURS` - Hours to retain session logs before cleanup (default: `24`)
1176
+
- `OPENCODE_CONFIG`- Path to opencode config file
1177
+
- `OPENCODE_CONFIG_CONTENT`- Inline config as JSON string
1178
+
- `OPENCODE_MODEL`- Model to use in provider/model format (e.g., `openai/gpt-4`)
0 commit comments