encarapi-mcp 1.5.0 → 1.6.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
@@ -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.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",
@@ -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.0";
8
8
  const MAX_TEXT = 40000;
9
9
 
10
10
  const asText = (data) => {
@@ -368,6 +368,8 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
368
368
  price_min: z.number().int().optional().describe("Minimum price in CNY"),
369
369
  price_max: z.number().int().optional().describe("Maximum price in CNY"),
370
370
  mileage_max: z.number().int().optional().describe("Maximum mileage in km"),
371
+ power_min: z.number().int().optional().describe("Minimum power in hp (cars without a known power figure are left out)"),
372
+ power_max: z.number().int().optional().describe("Maximum power in hp"),
371
373
  city: z.string().optional().describe("City: pass the exact 'value' of an entry in chinese_filter_values (list 'cities')"),
372
374
  fuel: z.string().optional().describe("Fuel type in English, see chinese_filter_values (list 'fuels')"),
373
375
  export_ready: z.boolean().optional().describe("Only cars that can be exported now"),
@@ -396,6 +398,17 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
396
398
  run(({ id, source }) => needChina().vehicle(id, { source }))
397
399
  );
398
400
 
401
+ server.registerTool(
402
+ "get_chinese_car_by_url",
403
+ {
404
+ title: "Get a Chinese car by link",
405
+ 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.",
406
+ inputSchema: { url: z.string().describe("Listing link, e.g. https://m.che168.com/cardetail/index?infoid=60234085") },
407
+ annotations: readOnly,
408
+ },
409
+ run(({ url }) => needChina().vehicleByUrl(url))
410
+ );
411
+
399
412
  server.registerTool(
400
413
  "get_chinese_inspection",
401
414
  {