ebay-mcp 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +586 -0
- package/build/api/account-management/account.d.ts +216 -0
- package/build/api/account-management/account.js +305 -0
- package/build/api/analytics-and-report/analytics.d.ts +33 -0
- package/build/api/analytics-and-report/analytics.js +102 -0
- package/build/api/client.d.ts +89 -0
- package/build/api/client.js +343 -0
- package/build/api/communication/feedback.d.ts +45 -0
- package/build/api/communication/feedback.js +119 -0
- package/build/api/communication/message.d.ts +55 -0
- package/build/api/communication/message.js +131 -0
- package/build/api/communication/negotiation.d.ts +39 -0
- package/build/api/communication/negotiation.js +97 -0
- package/build/api/communication/notification.d.ts +128 -0
- package/build/api/communication/notification.js +373 -0
- package/build/api/index.d.ts +96 -0
- package/build/api/index.js +121 -0
- package/build/api/listing-management/inventory.d.ts +216 -0
- package/build/api/listing-management/inventory.js +633 -0
- package/build/api/listing-metadata/metadata.d.ts +154 -0
- package/build/api/listing-metadata/metadata.js +485 -0
- package/build/api/listing-metadata/taxonomy.d.ts +38 -0
- package/build/api/listing-metadata/taxonomy.js +58 -0
- package/build/api/marketing-and-promotions/marketing.d.ts +395 -0
- package/build/api/marketing-and-promotions/marketing.js +565 -0
- package/build/api/marketing-and-promotions/recommendation.d.ts +20 -0
- package/build/api/marketing-and-promotions/recommendation.js +32 -0
- package/build/api/order-management/dispute.d.ts +65 -0
- package/build/api/order-management/dispute.js +69 -0
- package/build/api/order-management/fulfillment.d.ts +80 -0
- package/build/api/order-management/fulfillment.js +89 -0
- package/build/api/other/compliance.d.ts +26 -0
- package/build/api/other/compliance.js +47 -0
- package/build/api/other/edelivery.d.ts +153 -0
- package/build/api/other/edelivery.js +219 -0
- package/build/api/other/identity.d.ts +17 -0
- package/build/api/other/identity.js +24 -0
- package/build/api/other/translation.d.ts +14 -0
- package/build/api/other/translation.js +22 -0
- package/build/api/other/vero.d.ts +30 -0
- package/build/api/other/vero.js +48 -0
- package/build/auth/oauth-metadata.d.ts +46 -0
- package/build/auth/oauth-metadata.js +59 -0
- package/build/auth/oauth-middleware.d.ts +35 -0
- package/build/auth/oauth-middleware.js +99 -0
- package/build/auth/oauth-types.d.ts +66 -0
- package/build/auth/oauth-types.js +4 -0
- package/build/auth/oauth.d.ts +93 -0
- package/build/auth/oauth.js +383 -0
- package/build/auth/scope-utils.d.ts +70 -0
- package/build/auth/scope-utils.js +304 -0
- package/build/auth/token-verifier.d.ts +57 -0
- package/build/auth/token-verifier.js +172 -0
- package/build/config/environment.d.ts +61 -0
- package/build/config/environment.js +260 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +98 -0
- package/build/schemas/account-management/account.d.ts +5324 -0
- package/build/schemas/account-management/account.js +366 -0
- package/build/schemas/analytics/analytics.d.ts +167 -0
- package/build/schemas/analytics/analytics.js +191 -0
- package/build/schemas/communication/messages.d.ts +1872 -0
- package/build/schemas/communication/messages.js +348 -0
- package/build/schemas/fulfillment/orders.d.ts +4655 -0
- package/build/schemas/fulfillment/orders.js +317 -0
- package/build/schemas/index.d.ts +2100 -0
- package/build/schemas/index.js +68 -0
- package/build/schemas/inventory-management/inventory.d.ts +6419 -0
- package/build/schemas/inventory-management/inventory.js +450 -0
- package/build/schemas/marketing/marketing.d.ts +14181 -0
- package/build/schemas/marketing/marketing.js +1088 -0
- package/build/schemas/metadata/metadata.d.ts +5259 -0
- package/build/schemas/metadata/metadata.js +614 -0
- package/build/schemas/other/other-apis.d.ts +257 -0
- package/build/schemas/other/other-apis.js +372 -0
- package/build/schemas/taxonomy/taxonomy.d.ts +215 -0
- package/build/schemas/taxonomy/taxonomy.js +571 -0
- package/build/scripts/auto-setup.d.ts +12 -0
- package/build/scripts/auto-setup.js +277 -0
- package/build/scripts/diagnostics.d.ts +8 -0
- package/build/scripts/diagnostics.js +299 -0
- package/build/scripts/download-specs.d.ts +1 -0
- package/build/scripts/download-specs.js +116 -0
- package/build/scripts/interactive-setup.d.ts +21 -0
- package/build/scripts/interactive-setup.js +723 -0
- package/build/server-http.d.ts +11 -0
- package/build/server-http.js +361 -0
- package/build/tools/definitions/account-with-schemas.d.ts +39 -0
- package/build/tools/definitions/account-with-schemas.js +170 -0
- package/build/tools/definitions/account.d.ts +12 -0
- package/build/tools/definitions/account.js +428 -0
- package/build/tools/definitions/analytics.d.ts +25 -0
- package/build/tools/definitions/analytics.js +66 -0
- package/build/tools/definitions/communication.d.ts +12 -0
- package/build/tools/definitions/communication.js +151 -0
- package/build/tools/definitions/fulfillment.d.ts +12 -0
- package/build/tools/definitions/fulfillment.js +326 -0
- package/build/tools/definitions/index.d.ts +25 -0
- package/build/tools/definitions/index.js +37 -0
- package/build/tools/definitions/inventory.d.ts +12 -0
- package/build/tools/definitions/inventory.js +429 -0
- package/build/tools/definitions/marketing.d.ts +12 -0
- package/build/tools/definitions/marketing.js +1095 -0
- package/build/tools/definitions/metadata.d.ts +12 -0
- package/build/tools/definitions/metadata.js +188 -0
- package/build/tools/definitions/other.d.ts +13 -0
- package/build/tools/definitions/other.js +309 -0
- package/build/tools/definitions/taxonomy.d.ts +25 -0
- package/build/tools/definitions/taxonomy.js +64 -0
- package/build/tools/definitions/token-management.d.ts +35 -0
- package/build/tools/definitions/token-management.js +103 -0
- package/build/tools/index.d.ts +11 -0
- package/build/tools/index.js +1003 -0
- package/build/tools/schemas.d.ts +14764 -0
- package/build/tools/schemas.js +667 -0
- package/build/tools/tool-definitions.d.ts +35 -0
- package/build/tools/tool-definitions.js +3534 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.d.ts +197 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.js +5 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.d.ts +155 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.js +5 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.d.ts +246 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.js +5 -0
- package/build/types/ebay-enums.d.ts +1204 -0
- package/build/types/ebay-enums.js +1330 -0
- package/build/types/ebay.d.ts +143 -0
- package/build/types/ebay.js +123 -0
- package/build/types/index.d.ts +6 -0
- package/build/types/index.js +10 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.d.ts +2579 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.js +5 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.d.ts +446 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.d.ts +705 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.js +5 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.d.ts +590 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.d.ts +1276 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.d.ts +277 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.d.ts +3133 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.d.ts +2289 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.js +5 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.d.ts +1869 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.d.ts +178 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.d.ts +128 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.d.ts +417 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.d.ts +273 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.d.ts +2537 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.js +5 -0
- package/build/utils/account-management/account.d.ts +1094 -0
- package/build/utils/account-management/account.js +831 -0
- package/build/utils/communication/feedback.d.ts +152 -0
- package/build/utils/communication/feedback.js +216 -0
- package/build/utils/communication/message.d.ts +174 -0
- package/build/utils/communication/message.js +242 -0
- package/build/utils/communication/negotiation.d.ts +123 -0
- package/build/utils/communication/negotiation.js +150 -0
- package/build/utils/communication/notification.d.ts +370 -0
- package/build/utils/communication/notification.js +369 -0
- package/build/utils/date-converter.d.ts +59 -0
- package/build/utils/date-converter.js +160 -0
- package/build/utils/llm-client-detector.d.ts +54 -0
- package/build/utils/llm-client-detector.js +318 -0
- package/build/utils/oauth-helper.d.ts +37 -0
- package/build/utils/oauth-helper.js +315 -0
- package/build/utils/order-management/dispute.d.ts +346 -0
- package/build/utils/order-management/dispute.js +369 -0
- package/build/utils/order-management/fulfillment.d.ts +200 -0
- package/build/utils/order-management/fulfillment.js +205 -0
- package/build/utils/other/compliance.d.ts +49 -0
- package/build/utils/other/compliance.js +76 -0
- package/build/utils/other/edelivery.d.ts +310 -0
- package/build/utils/other/edelivery.js +241 -0
- package/build/utils/other/identity.d.ts +13 -0
- package/build/utils/other/identity.js +13 -0
- package/build/utils/other/translation.d.ts +28 -0
- package/build/utils/other/translation.js +41 -0
- package/build/utils/other/vero.d.ts +61 -0
- package/build/utils/other/vero.js +90 -0
- package/build/utils/scope-helper.d.ts +49 -0
- package/build/utils/scope-helper.js +207 -0
- package/build/utils/security-checker.d.ts +46 -0
- package/build/utils/security-checker.js +248 -0
- package/build/utils/setup-validator.d.ts +25 -0
- package/build/utils/setup-validator.js +305 -0
- package/build/utils/token-utils.d.ts +40 -0
- package/build/utils/token-utils.js +40 -0
- package/package.json +115 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
import * as path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { dirname } from 'path';
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = dirname(__filename);
|
|
8
|
+
const DOCS_DIR = path.resolve(__dirname, '../../docs');
|
|
9
|
+
const README_PATH = path.resolve(__dirname, '../../docs/sell-apps/README.md');
|
|
10
|
+
const getUrlsFromReadme = (content) => {
|
|
11
|
+
// Regex to find URLs that end with .json, specifically for OpenAPI specs
|
|
12
|
+
// This assumes the README will directly link to the JSON spec files, but is less strict to allow for variations.
|
|
13
|
+
const urlRegex = /(https:\/\/[^\s)]+\.json)/g;
|
|
14
|
+
const urls = Array.from(content.matchAll(urlRegex)).map((match) => match[1]);
|
|
15
|
+
console.log('Found URLs:', urls);
|
|
16
|
+
return urls;
|
|
17
|
+
};
|
|
18
|
+
const getSpecUrlsFromHtml = (html) => {
|
|
19
|
+
const linkRegex = /<a[^>]*?class="[^"]*\bspec-parent\b[^"]*"[^>]*?href="([^"]+)"/g;
|
|
20
|
+
const matches = [...html.matchAll(linkRegex)];
|
|
21
|
+
const urls = matches.map((match) => match[1]);
|
|
22
|
+
// Filter out duplicates
|
|
23
|
+
return [...new Set(urls)];
|
|
24
|
+
};
|
|
25
|
+
const getFolderName = (specUrl) => {
|
|
26
|
+
const fileName = path.basename(specUrl);
|
|
27
|
+
// mapping from file name to folder name
|
|
28
|
+
// This mapping is based on the README.md structure and common API groupings
|
|
29
|
+
const folderMap = {
|
|
30
|
+
// Application Settings
|
|
31
|
+
'developer_analytics_v1_beta_oas3.json': 'application-settings',
|
|
32
|
+
'developer_key_management_v1_oas3.json': 'application-settings',
|
|
33
|
+
'developer_client_registration_v1_oas3.json': 'application-settings',
|
|
34
|
+
// Selling Apps - Listing Management
|
|
35
|
+
'sell_inventory_v1_oas3.json': 'sell-apps/listing-management',
|
|
36
|
+
'sell_feed_v1_oas3.json': 'sell-apps/listing-management',
|
|
37
|
+
'commerce_media_v1_beta_oas3.json': 'sell-apps/listing-management',
|
|
38
|
+
'sell_stores_v1_oas3.json': 'sell-apps/listing-management',
|
|
39
|
+
// Selling Apps - Listing Metadata & Taxonomy
|
|
40
|
+
'sell_metadata_v1_oas3.json': 'sell-apps/listing-metadata',
|
|
41
|
+
'commerce_taxonomy_v1_oas3.json': 'sell-apps/listing-metadata',
|
|
42
|
+
'commerce_charity_v1_oas3.json': 'sell-apps/listing-metadata',
|
|
43
|
+
// Selling Apps - Account Management
|
|
44
|
+
'sell_account_v1_oas3.json': 'sell-apps/account-management',
|
|
45
|
+
'sell_account_v2_oas3.json': 'sell-apps/account-management',
|
|
46
|
+
'sell_finances_v1_oas3.json': 'sell-apps/account-management',
|
|
47
|
+
// Selling Apps - Communication & Negotiation
|
|
48
|
+
'commerce_message_v1_oas3.json': 'sell-apps/communication',
|
|
49
|
+
'commerce_notification_v1_oas3.json': 'sell-apps/communication',
|
|
50
|
+
'sell_negotiation_v1_oas3.json': 'sell-apps/communication',
|
|
51
|
+
'commerce_feedback_v1_beta_oas3.json': 'sell-apps/communication',
|
|
52
|
+
// Selling Apps - Order Management
|
|
53
|
+
'sell_fulfillment_v1_oas3.json': 'sell-apps/order-management',
|
|
54
|
+
'sell_logistics_v1_oas3.json': 'sell-apps/order-management',
|
|
55
|
+
// Selling Apps - Marketing & Promotions
|
|
56
|
+
'sell_marketing_v1_oas3.json': 'sell-apps/marketing-and-promotions',
|
|
57
|
+
'sell_recommendation_v1_oas3.json': 'sell-apps/marketing-and-promotions',
|
|
58
|
+
'sell_analytics_v1_oas3.json': 'sell-apps/analytics-and-report',
|
|
59
|
+
// Selling Apps - Other Selling APIs
|
|
60
|
+
'commerce_translation_v1_beta_oas3.json': 'sell-apps/other-apis',
|
|
61
|
+
'sell_compliance_v1_oas3.json': 'sell-apps/other-apis',
|
|
62
|
+
'commerce_identity_v1_oas3.json': 'sell-apps/other-apis',
|
|
63
|
+
'sell_edelivery_international_shipping_oas3.json': 'sell-apps/other-apis',
|
|
64
|
+
'commerce_vero_v1_oas3.json': 'sell-apps/other-apis',
|
|
65
|
+
// Buying Apps - Inventory Discovery & Refresh
|
|
66
|
+
'buy_browse_v1_oas3.json': 'buy-apps/inventory-discovery',
|
|
67
|
+
'buy_feed_v1_beta_oas3.json': 'buy-apps/inventory-discovery',
|
|
68
|
+
'buy_feed_v1_oas3.json': 'buy-apps/inventory-discovery',
|
|
69
|
+
// commerce_notification_v1_oas3.json is already mapped under sell-apps,
|
|
70
|
+
// but it's also relevant here. We'll prioritize the first mapping or create a symlink if needed.
|
|
71
|
+
// Buying Apps - Marketing & Discounts
|
|
72
|
+
'buy_deal_v1_oas3.json': 'buy-apps/marketing-and-discounts',
|
|
73
|
+
'buy_marketing_v1_beta_oas3.json': 'buy-apps/marketing-and-discounts',
|
|
74
|
+
// Buying Apps - Marketplace Metadata
|
|
75
|
+
// commerce_taxonomy_v1_oas3.json is already mapped under sell-apps
|
|
76
|
+
'commerce_catalog_v1_beta_oas3.json': 'buy-apps/marketplace-metadata',
|
|
77
|
+
// commerce_charity_v1_oas3.json is already mapped under sell-apps
|
|
78
|
+
// Buying Apps - Checkout & Bidding
|
|
79
|
+
'buy_order_v2_oas3.json': 'buy-apps/checkout-and-bidding',
|
|
80
|
+
'buy_offer_v1_beta_oas3.json': 'buy-apps/checkout-and-bidding',
|
|
81
|
+
// Buying Apps - Other Buying APIs
|
|
82
|
+
// commerce_translation_v1_beta_oas3.json is already mapped under sell-apps
|
|
83
|
+
// commerce_identity_v1_oas3.json is already mapped under sell-apps
|
|
84
|
+
};
|
|
85
|
+
// Default to 'other-apis' if not found in map, or use the mapped folder
|
|
86
|
+
return folderMap[fileName] || 'other-apis';
|
|
87
|
+
};
|
|
88
|
+
const downloadFile = async (url, folderPath, fileName) => {
|
|
89
|
+
try {
|
|
90
|
+
const response = await axios.get(url, { responseType: 'arraybuffer' });
|
|
91
|
+
const filePath = path.join(folderPath, fileName);
|
|
92
|
+
fs.mkdirSync(folderPath, { recursive: true });
|
|
93
|
+
fs.writeFileSync(filePath, response.data);
|
|
94
|
+
console.log(`Downloaded ${fileName} to ${folderPath}`);
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error(`Failed to download ${url}:`, error);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const main = async () => {
|
|
101
|
+
try {
|
|
102
|
+
const readmeContent = fs.readFileSync(README_PATH, 'utf-8');
|
|
103
|
+
const urls = getUrlsFromReadme(readmeContent);
|
|
104
|
+
for (const url of urls) {
|
|
105
|
+
console.log(`Processing URL: ${url}`);
|
|
106
|
+
const fileName = path.basename(url);
|
|
107
|
+
const folderName = getFolderName(url);
|
|
108
|
+
const folderPath = path.join(DOCS_DIR, folderName);
|
|
109
|
+
await downloadFile(url, folderPath, fileName);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
console.error('Failed to read README.md:', error);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
main();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactive Setup for eBay API MCP Server - Complete Optimized Version
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Pre-flight security checks
|
|
6
|
+
* - First-time developer guidance
|
|
7
|
+
* - Interactive OAuth flow with local callback server
|
|
8
|
+
* - Scope selection and verification
|
|
9
|
+
* - Auto-generate access tokens
|
|
10
|
+
* - Multi-environment support
|
|
11
|
+
* - Enhanced LLM client detection and configuration
|
|
12
|
+
* - Docker setup option
|
|
13
|
+
* - Post-setup quick start guide
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* npx ebay-mcp Interactive setup wizard
|
|
17
|
+
* npx ebay-mcp --help Show help
|
|
18
|
+
* npx ebay-mcp --diagnose Run diagnostics
|
|
19
|
+
* npx ebay-mcp --first-time First-time developer guide
|
|
20
|
+
*/
|
|
21
|
+
export {};
|