@@ -280,7 +280,8 @@ Returned by `createSession()` and `resumeSession()`. Key methods:
280280- ** ` updateSettings(params) ` ** — update model, autonomy level, etc.
281281- ** ` enterSpecMode(params?) ` ** — switch the current session into spec mode
282282- ** ` forkSession() ` ** — create a forked server-side session and return its new session ID
283- - ** ` addMcpServer(params) ` ** / ** ` removeMcpServer(params) ` ** — manage MCP servers
283+ - ** ` addMcpServer(params) ` ** / ** ` removeMcpServer(params) ` ** / ** ` toggleMcpServer(params) ` ** — manage MCP servers
284+ - ** ` listMcpServers() ` ** / ** ` listMcpTools() ` ** / ** ` authenticateMcpServer(params) ` ** — inspect and authenticate MCP servers
284285- ** ` listTools(params?) ` ** — inspect the exec tool catalog and current allow/deny state
285286- ** ` renameSession(params) ` ** — rename the current session
286287- ** ` sessionId ` ** — the session ID
@@ -318,6 +319,9 @@ if (msg.type === DroidMessageType.AssistantTextDelta) {
318319| ` create_message ` | Full assistant message created |
319320| ` turn_complete ` | Sentinel: agent turn finished |
320321| ` session_title_updated ` | Session title changed |
322+ | ` mcp_status_changed ` | MCP server status changed |
323+ | ` mcp_auth_required ` | MCP authentication required |
324+ | ` mcp_auth_completed ` | MCP authentication completed |
321325| ` error ` | Error event from the process |
322326
323327### Options
@@ -332,6 +336,7 @@ if (msg.type === DroidMessageType.AssistantTextDelta) {
332336- ** ` reasoningEffort ` ** — ` ReasoningEffort ` enum value
333337- ** ` specModeModelId ` ** — override model used in spec mode
334338- ** ` specModeReasoningEffort ` ** — override reasoning level used in spec mode
339+ - ** ` mcpServers ` ** — initial MCP server configurations, including SDK-backed MCP servers from ` createSdkMcpServer() `
335340- ** ` enabledToolIds ` ** — explicit exec tool allowlist
336341- ** ` disabledToolIds ` ** — explicit exec tool denylist
337342- ** ` permissionHandler ` ** — callback for tool confirmations
@@ -367,6 +372,7 @@ See the [`examples/`](./examples) directory for runnable examples:
367372- ** [ ` spec-mode-same-session.ts ` ] ( ./examples/spec-mode-same-session.ts ) ** — approve a spec and continue in the same session
368373- ** [ ` spec-mode-new-session.ts ` ] ( ./examples/spec-mode-new-session.ts ) ** — approve a spec and hand off implementation to a new session
369374- ** [ ` tool-controls.ts ` ] ( ./examples/tool-controls.ts ) ** — configure allow/deny lists and inspect tool availability
375+ - ** [ ` sdk-mcp-tool.ts ` ] ( ./examples/sdk-mcp-tool.ts ) ** — expose SDK-defined tools to Droid through MCP
370376- ** [ ` fork-session.ts ` ] ( ./examples/fork-session.ts ) ** — fork a session and continue from the new session ID
371377- ** [ ` list-sessions.ts ` ] ( ./examples/list-sessions.ts ) ** — discover droid sessions saved on disk
372378
0 commit comments