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

@mattzcarey
Copy link
Author

done. @rekram1-node

@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@mattzcarey mattzcarey force-pushed the feat-elicitations branch 2 times, most recently from 95daa62 to 38a5def Compare January 20, 2026 11:29
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
- Update protocol version to 2025-11-25 for elicitation support
- Generate SDK types
mattzcarey and others added 4 commits January 20, 2026 12:43
- Use onMount for initializing default values in ElicitationPrompt
- Add validation error state and display in UI
- Use zod safeParse for schema validation instead of type assertion
- Return 404 for unknown elicitation IDs in reply/reject endpoints
- Use early return pattern in toggleMultiSelect
- Refactor schemaToFields to use Object.entries().map()
@mattzcarey
Copy link
Author

@rekram1-node ready for you to play with

@rekram1-node
Copy link
Collaborator

Will do just have a backlog to go through unfortunately, but this is on my list

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