encarapi-mcp 1.4.0 → 1.4.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 +1 -0
- package/package.json +2 -2
- package/src/server.js +12 -1
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 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "encarapi-mcp",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.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,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@modelcontextprotocol/sdk": "^1.32.0",
|
|
52
|
-
"encarapi": "^1.3.
|
|
52
|
+
"encarapi": "^1.3.1",
|
|
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.
|
|
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
|
{
|