encarapi-mcp 1.5.0 → 1.6.1

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
@@ -23,8 +23,9 @@
23
23
  | `get_korean_accident_record` | Insurance accident history and ownership changes |
24
24
  | `find_korean_models` | Model name autocomplete across brands |
25
25
  | `korean_filter_values` | Valid filter values |
26
- | `search_chinese_cars` | Search Chinese listings (brand, model, model year, registration year, price in CNY, mileage, city, fuel, source, export-ready) |
26
+ | `search_chinese_cars` | Search Chinese listings (brand, model, model year, registration year, price in CNY, mileage, power, city, fuel, source, export-ready) |
27
27
  | `get_chinese_car` | Full record for one Chinese listing |
28
+ | `get_chinese_car_by_url` | Full record by Che168/Dongchedi listing link (desktop, mobile or app) |
28
29
  | `get_chinese_inspection` | Chinese inspection report (accident, flood, fire, EV battery) |
29
30
  | `get_chinese_specs` | Autohome specification sheet of a Che168 trim (cc, kW, hp, torque, emission standard, weights, EV battery) |
30
31
  | `chinese_filter_values` | Valid makes, fuels, cities and sources with listing counts |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encarapi-mcp",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
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",
@@ -49,8 +49,8 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@modelcontextprotocol/sdk": "^1.32.0",
52
- "encarapi": "^1.4.0",
53
- "zod": "^4.1.0",
54
- "express": "^5.2.1"
52
+ "encarapi": "^1.5.0",
53
+ "express": "^5.2.1",
54
+ "zod": "^4.1.0"
55
55
  }
56
56
  }
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.4.1";
7
+ export const VERSION = "1.6.1";
8
8
  const MAX_TEXT = 40000;
9
9
 
10
10
  const asText = (data) => {
@@ -45,6 +45,7 @@ const koreaItem = (c) => ({
45
45
  fuel: c.FuelTypeEnglish || c.FuelType,
46
46
  transmission: c.Transmission,
47
47
  powerPs: c.PowerPs,
48
+ displacementCc: c.DisplacementCc,
48
49
  color: c.Color,
49
50
  region: c.Region || undefined,
50
51
  city: c.City || undefined,
@@ -368,6 +369,8 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
368
369
  price_min: z.number().int().optional().describe("Minimum price in CNY"),
369
370
  price_max: z.number().int().optional().describe("Maximum price in CNY"),
370
371
  mileage_max: z.number().int().optional().describe("Maximum mileage in km"),
372
+ power_min: z.number().int().optional().describe("Minimum power in hp (cars without a known power figure are left out)"),
373
+ power_max: z.number().int().optional().describe("Maximum power in hp"),
371
374
  city: z.string().optional().describe("City: pass the exact 'value' of an entry in chinese_filter_values (list 'cities')"),
372
375
  fuel: z.string().optional().describe("Fuel type in English, see chinese_filter_values (list 'fuels')"),
373
376
  export_ready: z.boolean().optional().describe("Only cars that can be exported now"),
@@ -396,6 +399,17 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
396
399
  run(({ id, source }) => needChina().vehicle(id, { source }))
397
400
  );
398
401
 
402
+ server.registerTool(
403
+ "get_chinese_car_by_url",
404
+ {
405
+ title: "Get a Chinese car by link",
406
+ description: "Same full record as get_chinese_car, looked up by a Che168 or Dongchedi listing link (desktop, mobile site or app, also inside a pasted share text). Short links are not resolved.",
407
+ inputSchema: { url: z.string().describe("Listing link, e.g. https://m.che168.com/cardetail/index?infoid=60234085") },
408
+ annotations: readOnly,
409
+ },
410
+ run(({ url }) => needChina().vehicleByUrl(url))
411
+ );
412
+
399
413
  server.registerTool(
400
414
  "get_chinese_inspection",
401
415
  {