ebay-mcp 1.7.3 → 1.7.5

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.
@@ -4,11 +4,13 @@ import { fileURLToPath } from 'url';
4
4
  import { dirname, join } from 'path';
5
5
  import { LocaleEnum } from '../types/ebay-enums.js';
6
6
  import { getVersion } from '../utils/version.js';
7
- // Load .env silently - suppress dotenv output to keep stdout clean for MCP JSON-RPC
8
- config({ quiet: true });
9
- // Get the current directory for loading scope files
7
+ // Get the current directory for loading scope files and .env
10
8
  const __filename = fileURLToPath(import.meta.url);
11
9
  const __dirname = dirname(__filename);
10
+ // Load .env from the package root (two levels up from src/config/), not process.cwd().
11
+ // MCP servers inherit cwd from the host (e.g. Claude Code's project dir), so
12
+ // process.cwd() may point to an unrelated project with a different .env.
13
+ config({ path: join(__dirname, '../../.env'), quiet: true });
12
14
  /**
13
15
  * Load and parse production scopes from JSON file
14
16
  */
package/build/index.js CHANGED
File without changes
@@ -0,0 +1,111 @@
1
+ [
2
+ {
3
+ "Scope": "https://api.ebay.com/oauth/api_scope",
4
+ "Description": "View public data from eBay"
5
+ },
6
+ {
7
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
8
+ "Description": "View your eBay marketing activities, such as ad campaigns and listing promotions"
9
+ },
10
+ {
11
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.marketing",
12
+ "Description": "View and manage your eBay marketing activities, such as ad campaigns and listing promotions"
13
+ },
14
+ {
15
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.inventory.readonly",
16
+ "Description": "View your inventory and offers"
17
+ },
18
+ {
19
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.inventory",
20
+ "Description": "View and manage your inventory and offers"
21
+ },
22
+ {
23
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.account.readonly",
24
+ "Description": "View your account settings"
25
+ },
26
+ {
27
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.account",
28
+ "Description": "View and manage your account settings"
29
+ },
30
+ {
31
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly",
32
+ "Description": "View your order fulfillments"
33
+ },
34
+ {
35
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.fulfillment",
36
+ "Description": "View and manage your order fulfillments"
37
+ },
38
+ {
39
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly",
40
+ "Description": "View your selling analytics data, such as performance reports"
41
+ },
42
+ {
43
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.finances",
44
+ "Description": "View and manage your payment and order information to display this information to you and allow you to initiate refunds using the third party application"
45
+ },
46
+ {
47
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.payment.dispute",
48
+ "Description": "View and manage disputes and related details (including payment and order information)."
49
+ },
50
+ {
51
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.readonly",
52
+ "Description": "View a user's basic information, such as username or business account details, from their eBay member account"
53
+ },
54
+ {
55
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.reputation",
56
+ "Description": "View and manage your reputation data, such as feedback."
57
+ },
58
+ {
59
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.reputation.readonly",
60
+ "Description": "View your reputation data, such as feedback."
61
+ },
62
+ {
63
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription",
64
+ "Description": "View and manage your event notification subscriptions"
65
+ },
66
+ {
67
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly",
68
+ "Description": "View your event notification subscriptions"
69
+ },
70
+ {
71
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.stores",
72
+ "Description": "View and manage eBay stores"
73
+ },
74
+ {
75
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.stores.readonly",
76
+ "Description": "View eBay stores"
77
+ },
78
+ {
79
+ "Scope": "https://api.ebay.com/oauth/scope/sell.edelivery",
80
+ "Description": "Allows access to eDelivery International Shipping APIs."
81
+ },
82
+ {
83
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.vero",
84
+ "Description": "Allows access to APIs that are related to eBay's Verified Rights Owner (VeRO) program."
85
+ },
86
+ {
87
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.inventory.mapping",
88
+ "Description": "Enables applications to manage and enhance inventory listings through the Inventory Mapping Public API."
89
+ },
90
+ {
91
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.message",
92
+ "Description": "Allows access to eBay Message APIs."
93
+ },
94
+ {
95
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.feedback",
96
+ "Description": "Allows access to Feedback APIs."
97
+ },
98
+ {
99
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.shipping",
100
+ "Description": "View and manage shipping information"
101
+ },
102
+ {},
103
+ {
104
+ "Scope": "https://api.ebay.com/oauth/api_scope",
105
+ "Description": "View public data from eBay"
106
+ },
107
+ {
108
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.feedback.readonly",
109
+ "Description": "Allows readonly access to Feedback APIs."
110
+ }
111
+ ]
@@ -0,0 +1,142 @@
1
+ [
2
+ {
3
+ "Scope": "https://api.ebay.com/oauth/api_scope",
4
+ "Description": "View public data from eBay"
5
+ },
6
+ {
7
+ "Scope": "https://api.ebay.com/oauth/api_scope/buy.order.readonly",
8
+ "Description": "View your order details"
9
+ },
10
+ {
11
+ "Scope": "https://api.ebay.com/oauth/api_scope/buy.guest.order",
12
+ "Description": "Purchase eBay items off eBay"
13
+ },
14
+ {
15
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
16
+ "Description": "View your eBay marketing activities, such as ad campaigns and listing promotions"
17
+ },
18
+ {
19
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.marketing",
20
+ "Description": "View and manage your eBay marketing activities, such as ad campaigns and listing promotions"
21
+ },
22
+ {
23
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.inventory.readonly",
24
+ "Description": "View your inventory and offers"
25
+ },
26
+ {
27
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.inventory",
28
+ "Description": "View and manage your inventory and offers"
29
+ },
30
+ {
31
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.account.readonly",
32
+ "Description": "View your account settings"
33
+ },
34
+ {
35
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.account",
36
+ "Description": "View and manage your account settings"
37
+ },
38
+ {
39
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly",
40
+ "Description": "View your order fulfillments"
41
+ },
42
+ {
43
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.fulfillment",
44
+ "Description": "View and manage your order fulfillments"
45
+ },
46
+ {
47
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.analytics.readonly",
48
+ "Description": "View your selling analytics data, such as performance reports"
49
+ },
50
+ {
51
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.marketplace.insights.readonly",
52
+ "Description": "This scope would allow signed in users read only access to marketplace insights."
53
+ },
54
+ {
55
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly",
56
+ "Description": "This scope would allow signed in user to read catalog data."
57
+ },
58
+ {
59
+ "Scope": "https://api.ebay.com/oauth/api_scope/buy.shopping.cart",
60
+ "Description": "This scope would allow signed in user to access shopping carts"
61
+ },
62
+ {
63
+ "Scope": "https://api.ebay.com/oauth/api_scope/buy.offer.auction",
64
+ "Description": "View and manage bidding activities for auctions"
65
+ },
66
+ {
67
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.readonly",
68
+ "Description": "View a user's basic information, such as username or business account details, from their eBay member account"
69
+ },
70
+ {
71
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.email.readonly",
72
+ "Description": "View a user's personal email information from their eBay member account"
73
+ },
74
+ {
75
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.phone.readonly",
76
+ "Description": "View a user's personal telephone information from their eBay member account"
77
+ },
78
+ {
79
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.address.readonly",
80
+ "Description": "View a user's personal address information from their eBay member account"
81
+ },
82
+ {
83
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.name.readonly",
84
+ "Description": "View a user's first and last name from their eBay member account"
85
+ },
86
+ {
87
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.identity.status.readonly",
88
+ "Description": "View a user's eBay member account status"
89
+ },
90
+ {
91
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.finances",
92
+ "Description": "View and manage your payment and order information to display this information to you and allow you to initiate refunds using the third party application"
93
+ },
94
+ {
95
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.payment.dispute",
96
+ "Description": "View and manage disputes and related details (including payment and order information)."
97
+ },
98
+ {
99
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.item.draft",
100
+ "Description": "View and manage your item drafts."
101
+ },
102
+ {
103
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.item",
104
+ "Description": "View and manage your item information."
105
+ },
106
+ {
107
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.reputation",
108
+ "Description": "View and manage your reputation data, such as feedback."
109
+ },
110
+ {
111
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.reputation.readonly",
112
+ "Description": "View your reputation data, such as feedback."
113
+ },
114
+ {
115
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription",
116
+ "Description": "View and manage your event notification subscriptions"
117
+ },
118
+ {
119
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.notification.subscription.readonly",
120
+ "Description": "View your event notification subscriptions"
121
+ },
122
+ {
123
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.stores",
124
+ "Description": "View and manage eBay stores"
125
+ },
126
+ {
127
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.stores.readonly",
128
+ "Description": "View eBay stores"
129
+ },
130
+ {
131
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.vero",
132
+ "Description": "Allows access to APIs that are related to eBay's Verified Rights Owner (VeRO) program."
133
+ },
134
+ {
135
+ "Scope": "https://api.ebay.com/oauth/api_scope/commerce.feedback",
136
+ "Description": "Allows access to Feedback APIs."
137
+ },
138
+ {
139
+ "Scope": "https://api.ebay.com/oauth/api_scope/sell.inventory.mapping",
140
+ "Description": "Enables applications to manage and enhance inventory listings through the Inventory Mapping Public API."
141
+ }
142
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebay-mcp",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "Local MCP server for eBay APIs - provides access to eBay developer functionality through MCP (Model Context Protocol)",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
@@ -8,19 +8,6 @@
8
8
  "bin": {
9
9
  "ebay-mcp": "build/index.js"
10
10
  },
11
- "scripts": {
12
- "build": "tsc && tsc-alias",
13
- "start": "node build/index.js",
14
- "dev": "tsx src/index.ts",
15
- "test": "vitest run",
16
- "test:coverage": "vitest run --coverage",
17
- "setup": "tsx src/scripts/setup.ts",
18
- "sync": "tsx src/scripts/dev-sync.ts",
19
- "diagnose": "tsx src/scripts/diagnostics.ts",
20
- "check": "tsc --noEmit && eslint . && prettier --check \"src/**/*.{ts,js,json,md}\"",
21
- "fix": "eslint . --fix && prettier --write \"src/**/*.{ts,js,json,md}\"",
22
- "prepare": "npm run build"
23
- },
24
11
  "keywords": [
25
12
  "mcp",
26
13
  "ebay",
@@ -43,7 +30,9 @@
43
30
  "build/index.d.ts",
44
31
  "build/server-http.d.ts",
45
32
  "public/icons/*.png",
46
- "README.md"
33
+ "README.md",
34
+ "docs/auth/production_scopes.json",
35
+ "docs/auth/sandbox_scopes.json"
47
36
  ],
48
37
  "repository": {
49
38
  "type": "git",
@@ -98,5 +87,18 @@
98
87
  },
99
88
  "engines": {
100
89
  "node": ">=18.0.0"
90
+ },
91
+ "scripts": {
92
+ "build": "tsc && tsc-alias",
93
+ "start": "node build/index.js",
94
+ "dev": "tsx src/index.ts",
95
+ "test": "vitest run",
96
+ "test:coverage": "vitest run --coverage",
97
+ "setup": "tsx src/scripts/setup.ts",
98
+ "sync": "tsx src/scripts/dev-sync.ts",
99
+ "diagnose": "tsx src/scripts/diagnostics.ts",
100
+ "typecheck": "tsc --noEmit",
101
+ "check": "tsc --noEmit && eslint . && prettier --check \"src/**/*.{ts,js,json,md}\"",
102
+ "fix": "eslint . --fix && prettier --write \"src/**/*.{ts,js,json,md}\""
101
103
  }
102
- }
104
+ }