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

This reverts commit bc5360ecce.
This commit is contained in:
Mattt 2025-08-10 05:59:35 -07:00 • committed by GitHub
commit 7c58239ff6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,12 +243,3 @@ 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