Skip to content

Conversation

@ochafik
Copy link
Contributor

@ochafik ochafik commented Oct 14, 2025

Adds a new elicitInputs tool that allows testing MCP's elicitation feature.

The tool requests various input field types including strings, booleans, emails, dates, numbers, and enums.

cc/ @devin-kuokka

Motivation and Context

Testing elicitation as is possible in https://github.com/modelcontextprotocol/servers/commits/main/src/everything

How Has This Been Tested?

Tested in inspector

npx -y concurrently \
  "npm run dev:internal" \
  "npx --registry=https://registry.npmjs.org/ -y @modelcontextprotocol/inspector http://localhost:3232/mcp"
CleanShot 2025-10-15 at 20 40 21@2x

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

ochafik and others added 3 commits October 14, 2025 17:40
Adds a new elicitInputs tool that demonstrates how to use MCP's elicitation
feature to request user input. The tool showcases various input field types
including strings, booleans, emails, dates, numbers, and enums. This allows
clients to interactively collect structured user input during tool execution.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ochafik ochafik marked this pull request as ready for review October 15, 2025 19:35
@ochafik ochafik requested a review from bhosmer-ant October 15, 2025 19:38
@bhosmer-ant bhosmer-ant merged commit 2a6413d into main Oct 16, 2025
4 checks passed
@ochafik ochafik deleted the ochafik/add-elicitation-tool branch October 16, 2025 19:33
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.

3 participants