You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The everything server's documentation and implementation are out of sync regarding the type of the temperature argument in the complex_prompt. Additionally, this reveals a broader protocol limitation regarding argument type specifications.
To Reproduce
Steps to reproduce the behavior:
Send a GetPromptRequest JSON-RPC call to the everything server:
The server fails because it expects temperature as a string, but the documentation implies it should accept a number.
Expected behavior
Either:
The server should accept a number for temperature as implied by the documentation, or
The documentation should specify that temperature must be a string
Additional context
This issue is masked in the Python SDK because it uses a string-to-string dictionary for arguments (dict[str, str]), automatically converting all values to strings.
This highlights a limitation in the MCP protocol: ListPromptsResult doesn't provide a way to specify argument types, making it difficult for clients to handle type conversion correctly without relying on external documentation.
Consider enhancing the protocol to include type information in the ListPromptsResult schema, or standardize on string arguments for all prompt parameters.
A possible enhancement to the protocol would be to add a type field to the PromptArgument schema:
"PromptArgument": {
// ... existing fields ..."properties": {
// ... existing properties ..."type": {
"description": "The expected type of the argument (e.g., 'string', 'number', 'boolean').",
"type": "string",
"enum": ["string", "number", "boolean", "object", "array"]
}
}
}
The text was updated successfully, but these errors were encountered:
Describe the bug
The everything server's documentation and implementation are out of sync regarding the type of the
temperature
argument in thecomplex_prompt
. Additionally, this reveals a broader protocol limitation regarding argument type specifications.To Reproduce
Steps to reproduce the behavior:
temperature
as a string, but the documentation implies it should accept a number.Expected behavior
Either:
Additional context
dict[str, str]
), automatically converting all values to strings.ListPromptsResult
doesn't provide a way to specify argument types, making it difficult for clients to handle type conversion correctly without relying on external documentation.ListPromptsResult
schema, or standardize on string arguments for all prompt parameters.type
field to thePromptArgument
schema:The text was updated successfully, but these errors were encountered: