encarapi-mcp 1.4.1 → 1.5.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
@@ -26,6 +26,7 @@
26
26
  | `search_chinese_cars` | Search Chinese listings (brand, model, model year, registration year, price in CNY, mileage, city, fuel, source, export-ready) |
27
27
  | `get_chinese_car` | Full record for one Chinese listing |
28
28
  | `get_chinese_inspection` | Chinese inspection report (accident, flood, fire, EV battery) |
29
+ | `get_chinese_specs` | Autohome specification sheet of a Che168 trim (cc, kW, hp, torque, emission standard, weights, EV battery) |
29
30
  | `chinese_filter_values` | Valid makes, fuels, cities and sources with listing counts |
30
31
  | `chinese_models` | Models of a brand with listing counts |
31
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encarapi-mcp",
3
- "version": "1.4.1",
3
+ "version": "1.5.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,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@modelcontextprotocol/sdk": "^1.32.0",
52
- "encarapi": "^1.3.1",
52
+ "encarapi": "^1.4.0",
53
53
  "zod": "^4.1.0",
54
54
  "express": "^5.2.1"
55
55
  }
package/src/server.js CHANGED
@@ -407,6 +407,19 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
407
407
  run(({ id, source }) => needChina().inspection(id, { source }))
408
408
  );
409
409
 
410
+ server.registerTool(
411
+ "get_chinese_specs",
412
+ {
413
+ title: "Get a Chinese trim specification sheet",
414
+ description:
415
+ "Autohome specification sheet of a Che168 trim (use trim.id from get_chinese_car): displacement in cc, power in kW and hp (also EVs), " +
416
+ "torque, emission standard, wheelbase, weights, tank, gears, drive type, EV battery. One sheet covers every car of that trim. Che168 only.",
417
+ inputSchema: { trimId: z.union([z.string(), z.number()]).describe("Autohome trim id (trim.id of a Che168 vehicle record)") },
418
+ annotations: readOnly,
419
+ },
420
+ run(({ trimId }) => needChina().specs(trimId))
421
+ );
422
+
410
423
  server.registerTool(
411
424
  "chinese_filter_values",
412
425
  {