Skip to content

Conversation

@cliffhall
Copy link
Member

@cliffhall cliffhall commented Aug 28, 2025

Description

In server-everything, suppress startElicitation tool if client does not advertise support for elicitation capability.

  • In everything.ts

    • Remove inappropriate elicitation entry from server capabilities (this is a client capability)
    • When creating tool list, only add ToolName.ELICITATION definition to tools array if clientCapabilities includes elicitation
  • In package.json & package-lock.json

    • bump @modelcontextprotocol/sdk to ^1.17.4, adding elicitation to ClientCapabilities type

Server Details

  • Server: everything
  • Changes to: tools

Motivation and Context

If the client does not support elicitations, the startElicitation tool will cause an error when run.

Currently, When Client Doesn't Support Elicitation

Screenshot 2025-08-28 at 2 18 55 PM

How Has This Been Tested?

Commented out elicitation support in the Inspector. Tried with and without elicitiations, showing that the startElicitation tool is only shown if the client supports it.

When Client Supports Elicitation

Screenshot 2025-08-28 at 2 03 55 PM

When Client Doesn't Support Elicitation

Screenshot 2025-08-28 at 2 04 40 PM

Breaking Changes

Nope.

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 Protocol Documentation
  • My changes follows MCP security best practices
  • I have updated the server's README accordingly
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have documented all environment variables and configuration options

Additional context

…or elicitation capability

* In everything.ts
  - remove inappropriate elicitation entry from server capabilities (this is a client capability)
  - When creating tool list, only add `ToolName.ELICITATION` definition to tools array if `clientCapabilities` includes `elicitation`

* In package.json / package-lock.json
  - bump @modelcontextprotocol/sdk to "^1.17.4", adding `elicitation` to `ClientCapabilities` type
Copy link
Member

@olaservo olaservo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on this!

@olaservo olaservo merged commit 9feeb51 into modelcontextprotocol:main Aug 28, 2025
19 checks passed
@cliffhall cliffhall deleted the conditional-elicitation-tool branch August 28, 2025 18:28
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.

2 participants