packages/computeruse/examples/mcp-client-elicitation/README.md
A simple CLI MCP client that demonstrates elicitation handling.
npm install
npm run start:stdio
This will:
computeruse-mcp-agent via npx as a child processTo use a local build instead of the npm package:
LOCAL_BUILD=1 npm run start:stdio
npm run start:http [port]
Connects to a computeruse-mcp-agent running in HTTP mode (default port: 8080).
When the server sends an elicitation/create request, the client will:
Note: As of Dec 2025, the computeruse-mcp-agent has elicitation support but
no tools currently trigger elicitation. This client is ready for when tools
start using peer.elicit().
To test elicitation, you would need to:
computeruse-mcp-agent to call elicit_with_fallback()============================================================
ELICITATION REQUEST
============================================================
Message: What is the business purpose of this workflow?
Please fill in the following fields (or type 'cancel' to cancel, 'decline' to decline):
What is the business purpose of this automation?: Automate invoice processing
Target application name (optional): Excel
Expected outcome or success criteria (optional): All invoices processed
----------------------------------------
Collected data: {
"business_purpose": "Automate invoice processing",
"target_app": "Excel",
"expected_outcome": "All invoices processed"
}
Submit this data? (yes/no): yes