import { McpElicitation } from "@/components/ui/mcp-elicitation";
const ELICIT_SCHEMA = {
type: "object",
required: ["environment"],
properties: {
environment: {
type: "string",
enum: ["staging", "production"],
description: "Which database to migrate.",
},
confirm_backup: {
type: "boolean",
description: "A backup was taken in the last hour.",
},
api_key: {
type: "string",
description: "Needed to authenticate the migration.",
},
},
};
export default function McpElicitationDemo() {
return (
<div className="w-full max-w-lg">
<McpElicitation
server="postgres"
message="Before running the migration I need to know which environment to target."
schema={ELICIT_SCHEMA}
onSubmit={() => {}}
onDecline={() => {}}
/>
</div>
);
}