Skip to content

Commit 30bdcba

Browse files
Stop using discriminated union. MCP can't handle it
1 parent 62de449 commit 30bdcba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contracts/customer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export const CustomerLookupToolSchema = z.object({
5959
.describe("The external ID from your system"),
6060
});
6161

62-
export const GetCustomerInputSchema = CustomerLookupInputSchema;
62+
export const GetCustomerInputSchema = CustomerLookupToolSchema;
6363
export type GetCustomerInput = z.infer<typeof GetCustomerInputSchema>;
6464

65-
export const DeleteCustomerInputSchema = CustomerLookupInputSchema;
65+
export const DeleteCustomerInputSchema = CustomerLookupToolSchema;
6666
export type DeleteCustomerInput = z.infer<typeof DeleteCustomerInputSchema>;
6767

6868
export const CreateCustomerInputSchema = z.object({

0 commit comments

Comments
 (0)