encarapi-mcp 1.4.0 → 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
@@ -17,6 +17,7 @@
17
17
  | `search_korean_excavators` | Search Korean used excavators (maker, model, operating hours, weight class, region; Business/Scale key) |
18
18
  | `search_korean_trucks` | Search Korean trucks, buses and special vehicles (body type, payload in tons, use, region; Business/Scale key) |
19
19
  | `find_korean_car_by_vin` | All Encar / K Car listings of one VIN, incl. removed ones (Business/Scale key) |
20
+ | `get_korean_truck` | Full record for one truck: detail, inspection report, cargo box, VIN and plate (Business/Scale key) |
20
21
  | `get_korean_car` | Full detail for one listing (specs, options, photos, price history, seller) |
21
22
  | `get_korean_inspection` | Official Korean inspection report |
22
23
  | `get_korean_accident_record` | Insurance accident history and ownership changes |
@@ -25,6 +26,7 @@
25
26
  | `search_chinese_cars` | Search Chinese listings (brand, model, model year, registration year, price in CNY, mileage, city, fuel, source, export-ready) |
26
27
  | `get_chinese_car` | Full record for one Chinese listing |
27
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) |
28
30
  | `chinese_filter_values` | Valid makes, fuels, cities and sources with listing counts |
29
31
  | `chinese_models` | Models of a brand with listing counts |
30
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encarapi-mcp",
3
- "version": "1.4.0",
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.0",
52
+ "encarapi": "^1.4.0",
53
53
  "zod": "^4.1.0",
54
54
  "express": "^5.2.1"
55
55
  }
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.0";
7
+ export const VERSION = "1.4.1";
8
8
  const MAX_TEXT = 40000;
9
9
 
10
10
  const asText = (data) => {
@@ -274,6 +274,17 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
274
274
  run(async ({ vin }) => needKorea().vehicleByVin(vin))
275
275
  );
276
276
 
277
+ server.registerTool(
278
+ "get_korean_truck",
279
+ {
280
+ title: "Get a Korean truck",
281
+ description: "Full record for one truck or bus from search_korean_trucks: detail page, official inspection report, cargo box dimensions, horse power, VIN and plate. Needs a Business or Scale key (or a trial).",
282
+ inputSchema: { id: z.string().describe("Truck id from search_korean_trucks") },
283
+ annotations: readOnly,
284
+ },
285
+ run(async ({ id }) => needKorea().truck(id, { lang: "en" }))
286
+ );
287
+
277
288
  server.registerTool(
278
289
  "get_korean_car",
279
290
  {
@@ -396,6 +407,19 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
396
407
  run(({ id, source }) => needChina().inspection(id, { source }))
397
408
  );
398
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
+
399
423
  server.registerTool(
400
424
  "chinese_filter_values",
401
425
  {