Revert "Remove deprecated MCP.Error typealias (#102)" (#104)

This reverts commit d3f061dacd.
This commit is contained in:
Mattt 2025-05-07 03:26:07 -07:00 • committed by GitHub
commit bc5360ecce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,3 +243,12 @@ extension MCPError: Hashable {
}
}
}
// MARK: -
/// This is provided to allow existing code that uses `MCP.Error` to continue
/// to work without modification.
///
/// The MCPError type is now the recommended way to handle errors in MCP.
@available(*, deprecated, renamed: "MCPError", message: "Use MCPError instead of MCP.Error")
public typealias Error = MCPError