refactor: McpError renamed to MCPError and flatten parameters (#1956)

Co-authored-by: Max Isbey <224885523+maxisbey@users.noreply.github.com>
This commit is contained in:
Marcelo Trylesinski 2026-01-26 14:37:44 +01:00 • committed by GitHub
commit acba5478a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 253 additions and 326 deletions

View file

@ -1654,8 +1654,8 @@ class ElicitRequestURLParams(RequestParams):
"""The URL that the user should navigate to."""
elicitation_id: str
"""
The ID of the elicitation, which must be unique within the context of the server.
"""The ID of the elicitation, which must be unique within the context of the server.
The client MUST treat this ID as an opaque value.
"""

View file

@ -59,15 +59,15 @@ class ErrorData(BaseModel):
"""The error type that occurred."""
message: str
"""
A short description of the error. The message SHOULD be limited to a concise single
sentence.
"""A short description of the error.
The message SHOULD be limited to a concise single sentence.
"""
data: Any = None
"""
Additional information about the error. The value of this member is defined by the
sender (e.g. detailed error information, nested errors etc.).
"""Additional information about the error.
The value of this member is defined by the sender (e.g. detailed error information, nested errors, etc.).
"""