encarapi-mcp 1.8.1 → 1.9.0

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/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
  | `get_korean_accident_record` | Insurance accident history and ownership changes |
26
26
  | `find_korean_models` | Model name autocomplete across brands |
27
27
  | `korean_filter_values` | Valid filter values |
28
- | `search_chinese_cars` | Search Chinese listings (brand, model, model year, registration year, price in CNY, mileage, power, city, fuel, source, export-ready; `lang`: en, zh or ru) |
28
+ | `search_chinese_cars` | Search Chinese listings (brand, model, model year, registration year, price in CNY, mileage, power, city, fuel, source incl. `che168_domestic` (Che168 cars only on the domestic site, on request), export-ready; `lang`: en, zh or ru) |
29
29
  | `get_chinese_car` | Full record for one Chinese listing (`lang`: en, zh or ru) |
30
30
  | `get_chinese_car_by_url` | Full record by Che168/Dongchedi listing link (desktop, mobile or app; `lang`: en, zh or ru) |
31
31
  | `get_chinese_inspection` | Chinese inspection report (accident, flood, fire, EV battery) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encarapi-mcp",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "MCP server for EnCarAPI and ChinaCarAPI: live Korean (Encar, KB Chachacha, K Car) and Chinese (Dongchedi, Che168) used car listings for Claude, Cursor and other AI assistants.",
5
5
  "type": "module",
6
6
  "main": "src/server.js",
package/src/server.js CHANGED
@@ -4,7 +4,7 @@ import encarapi from "encarapi";
4
4
 
5
5
  const { KoreaClient, ChinaClient } = encarapi;
6
6
 
7
- export const VERSION = "1.8.1";
7
+ export const VERSION = "1.9.0";
8
8
  const MAX_TEXT = 40000;
9
9
 
10
10
  const asText = (data) => {
@@ -92,7 +92,7 @@ const chinaLang = z
92
92
  );
93
93
 
94
94
  const chinaSource = z
95
- .enum(["dongchedi", "che168"])
95
+ .enum(["dongchedi", "che168", "che168_domestic"])
96
96
  .optional()
97
97
  .describe("Marketplace of the id, from the search result; needed when an id exists on both");
98
98
 
@@ -422,7 +422,13 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
422
422
  inputSchema: {
423
423
  make: z.string().optional().describe("Brand in English, e.g. BYD, Toyota, Audi"),
424
424
  model: z.string().optional().describe("Model name or id from chinese_models"),
425
- source: z.enum(["dongchedi", "che168"]).optional().describe("Marketplace; default both"),
425
+ source: z
426
+ .enum(["dongchedi", "che168", "che168_domestic"])
427
+ .optional()
428
+ .describe(
429
+ "Marketplace; default dongchedi and che168. che168_domestic = Che168 cars listed only on the domestic site che168.com, " +
430
+ "not in its export portal: only returned when chosen here, price is the dealer's CNY price as listed"
431
+ ),
426
432
  duplicates: z
427
433
  .enum(["include"])
428
434
  .optional()