[PR #8243] feat(mcp): add elicitation request handling #12673

Open
opened 2026-02-16 18:17:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8243

State: open
Merged: No


Add support for MCP elicitation requests across the codebase:

  • Add elicitation store to sync context with requested/completed/rejected event handlers
  • Add ElicitationPrompt component to session UI with priority after permissions and questions
  • Register elicitation identifier prefix "eli"
  • Implement elicitation request handler in MCP client with form capabilities
  • Add /mcp/elicitation routes for list, reply, and reject operations
  • Generate SDK types

What does this PR do?

adds elicitation for human in the loop.

How did you verify your code works?

it works locally for me

Screenshot 2026-01-13 at 14 43 02

Closes #8251

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8243 **State:** open **Merged:** No --- Add support for MCP elicitation requests across the codebase: - Add elicitation store to sync context with requested/completed/rejected event handlers - Add ElicitationPrompt component to session UI with priority after permissions and questions - Register elicitation identifier prefix "eli" - Implement elicitation request handler in MCP client with form capabilities - Add /mcp/elicitation routes for list, reply, and reject operations - Generate SDK types ### What does this PR do? adds elicitation for human in the loop. ### How did you verify your code works? it works locally for me <img width="1061" height="855" alt="Screenshot 2026-01-13 at 14 43 02" src="https://github.com/user-attachments/assets/f7c3b65e-f257-4378-be28-c8d939c306f1" /> Closes #8251
yindo added the pull-request label 2026-02-16 18:17:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12673