Skip to content

Commit bc5360e

Browse files
authored
Revert "Remove deprecated MCP.Error typealias (#102)" (#104)
This reverts commit d3f061d.
1 parent 800131f commit bc5360e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sources/MCP/Base/Error.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,12 @@ extension MCPError: Hashable {
243243
}
244244
}
245245
}
246+
247+
// MARK: -
248+
249+
/// This is provided to allow existing code that uses `MCP.Error` to continue
250+
/// to work without modification.
251+
///
252+
/// The MCPError type is now the recommended way to handle errors in MCP.
253+
@available(*, deprecated, renamed: "MCPError", message: "Use MCPError instead of MCP.Error")
254+
public typealias Error = MCPError

0 commit comments

Comments
 (0)