Skip to content

Commit af3c6f2

Browse files
committed
fix mcp tests
1 parent 966528c commit af3c6f2

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

modelcontextprotocol/src/test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ describe('parseArgs function', () => {
657657
'--apiUrl=https://api.commercetools.com',
658658
];
659659
expect(() => parseArgs(args)).toThrow(
660-
'Invalid tool: invalid.tool. Accepted tools are: business-unit.read, business-unit.create, business-unit.update, products.read, products.create, products.update, project.read, product-search.read, category.read, category.create, category.update, channel.read, channel.create, channel.update, product-selection.read, product-selection.create, product-selection.update, order.read, order.create, order.update, cart.read, cart.create, cart.update, customer.create, customer.read, customer.update, customer-group.read, customer-group.create, customer-group.update, quote.read, quote.create, quote.update, quote-request.read, quote-request.create, quote-request.update, staged-quote.read, staged-quote.create, staged-quote.update, standalone-price.read, standalone-price.create, standalone-price.update, product-discount.read, product-discount.create, product-discount.update, cart-discount.read, cart-discount.create, cart-discount.update, discount-code.read, discount-code.create, discount-code.update, product-type.read, product-type.create, product-type.update, bulk.create, bulk.update, inventory.read, inventory.create, inventory.update, store.read, store.create, store.update'
660+
`Invalid tool: invalid.tool. Accepted tools are: ${ACCEPTED_TOOLS.join(", ")}`
661661
);
662662
});
663663

modelcontextprotocol/src/test/main.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ describe('main function', () => {
9595
'custom-objects': {read: true, create: true, update: true},
9696
'payment-intents': {update: true},
9797
transactions: {read: true, create: true},
98+
'approval-flow': {read: true, create: true, update: true},
99+
'approval-rule': {read: true, create: true, update: true},
100+
'associte-role': {read: true, create: true, update: true},
101+
'order-edit': {read: true, create: true, update: true},
102+
'product-selection-product': {read: true},
103+
'recurrence-policy': {read: true, create: true, update: true},
104+
states: {read: true, create: true, update: true},
98105
},
99106
context: {
100107
isAdmin: true,

0 commit comments

Comments
 (0)