Skip to content

Conversation

@mattzcarey
Copy link

@mattzcarey mattzcarey commented Jan 13, 2026

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

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node
Copy link
Collaborator

We should prolly update this too:

protocolVersion: "2024-11-05",

Since this is a more recent addition to protocol

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
- Add module tests for Elicitation namespace (handle, reply, reject, list, cancel)
- Add server route tests for /mcp/elicitation endpoints
- Add TUI tests for schemaToFields function
- Export schemaToFields and FormField types for testing
- Update MCP debug protocol version to 2025-03-26
- Extract schemaToFields to elicitation-schema.ts to avoid JSX runtime import
  errors in tests
- Add x-opencode-directory header to server tests for correct Instance context
- Update TUI tests to import from elicitation-schema.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MCP elicitation support

2 participants