feat: ebay 'buy it now' and 'canada only' filters support

This commit is contained in:
2025-12-17 14:38:52 -05:00
parent 083b862552
commit 497c7995a2
4 changed files with 40 additions and 6 deletions

View File

@@ -131,6 +131,8 @@ export async function handleMcpRequest(req: Request): Promise<Response> {
strictMode: args.strictMode || false,
exclusions: args.exclusions || [],
keywords: args.keywords || [query],
buyItNowOnly: args.buyItNowOnly !== false,
canadaOnly: args.canadaOnly !== false,
});
result = items || [];
} else {

View File

@@ -52,7 +52,7 @@ export const tools = [
},
{
name: "search_ebay",
description: "Search eBay for listings matching a query",
description: "Search eBay for listings matching a query (default: Buy It Now only, Canada only)",
inputSchema: {
type: "object",
properties: {
@@ -83,6 +83,16 @@ export const tools = [
items: { type: "string" },
description: "Keywords to include in search",
},
buyItNowOnly: {
type: "boolean",
description: "Include only Buy It Now listings (exclude auctions)",
default: true,
},
canadaOnly: {
type: "boolean",
description: "Include only Canadian sellers/listings",
default: true,
},
maxItems: {
type: "number",
description: "Maximum number of items to return",