-
Notifications
You must be signed in to change notification settings - Fork 7.9k
feat(mcp): add elicitation request handling #8243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
|
We should prolly update this too: opencode/packages/opencode/src/cli/cmd/mcp.ts Line 651 in 80e1173
Since this is a more recent addition to protocol |
8bebbcf to
4c21af6
Compare
|
done. @rekram1-node |
|
/review |
packages/opencode/src/cli/cmd/tui/routes/session/elicitation-schema.ts
Outdated
Show resolved
Hide resolved
|
lgtm |
544c02d to
061b108
Compare
95daa62 to
38a5def
Compare
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
38a5def to
afbdbda
Compare
- 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()
|
@rekram1-node ready for you to play with |
|
Will do just have a backlog to go through unfortunately, but this is on my list |
Add support for MCP elicitation requests across the codebase:
What does this PR do?
adds elicitation for human in the loop.
How did you verify your code works?
it works locally for me
Closes #8251