examples/ai-e2e-next/app/chat/mcp-elicitation/README.md
This example demonstrates how to use the MCP (Model Context Protocol) elicitation feature in a Next.js application with a chat interface.
register_user)pnpm tsx src/elicitation-ui/server.ts
This will start the server on http://localhost:8085.
cd examples/ai-e2e-next
pnpm dev
Navigate to http://localhost:3000/mcp-elicitation
Type a message in the chat input, such as:
The AI will call the register_user tool, which triggers an elicitation request.
A modal will appear asking you to fill in registration information:
You can:
The conversation continues based on your response.
This example involves working with human-in-the-loop tools and MCP Elicitation requests.