encarapi-mcp 1.2.1 → 1.3.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 +1 -1
- package/package.json +1 -1
- package/src/server.js +5 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
| Tool | What it does |
|
|
15
15
|
|---|---|
|
|
16
|
-
| `search_korean_cars` | Search Korean listings (brand, model, year, price in 10,000 KRW, mileage, fuel, accident-free, source: encar / kbc / kcar / all) |
|
|
16
|
+
| `search_korean_cars` | Search Korean listings (brand, model, year, price in 10,000 KRW, mileage, fuel, accident-free, seller region and city, source: encar / kbc / kcar / all) |
|
|
17
17
|
| `get_korean_car` | Full detail for one listing (specs, options, photos, price history, seller) |
|
|
18
18
|
| `get_korean_inspection` | Official Korean inspection report |
|
|
19
19
|
| `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.
|
|
3
|
+
"version": "1.3.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",
|
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.
|
|
7
|
+
export const VERSION = "1.3.0";
|
|
8
8
|
const MAX_TEXT = 40000;
|
|
9
9
|
|
|
10
10
|
const asText = (data) => {
|
|
@@ -46,6 +46,8 @@ const koreaItem = (c) => ({
|
|
|
46
46
|
transmission: c.Transmission,
|
|
47
47
|
powerPs: c.PowerPs,
|
|
48
48
|
color: c.Color,
|
|
49
|
+
region: c.Region || undefined,
|
|
50
|
+
city: c.City || undefined,
|
|
49
51
|
duplicateOf: c.IsDuplicate ? c.DuplicateOf : undefined,
|
|
50
52
|
url: c.Url,
|
|
51
53
|
photo: firstPhoto(c.Photos),
|
|
@@ -162,6 +164,8 @@ export function createServer({ apiKey, chinaKey, fetchImpl, transport = "stdio",
|
|
|
162
164
|
frame_clean: z.boolean().optional().describe("Only cars with an accident-free chassis frame"),
|
|
163
165
|
no_damage_cost: z.boolean().optional().describe("Only cars with zero insurance-reported repair cost"),
|
|
164
166
|
has_inspection: z.boolean().optional().describe("Only cars with an official inspection report"),
|
|
167
|
+
region: z.string().optional().describe("Seller region code, comma = OR: seoul, gyeonggi, incheon, busan, daegu, daejeon, ulsan, gwangju, sejong, gangwon, chungbuk, chungnam, jeonbuk, jeonnam, gyeongbuk, gyeongnam, jeju. Encar listings only: leave source unset"),
|
|
168
|
+
city: z.string().optional().describe("Seller city, e.g. suwon, gangnam (values in korean_filter_values -> city). Encar listings only: leave source unset"),
|
|
165
169
|
sort: z.enum(["newest", "price_asc", "price_desc", "mileage_asc", "mileage_desc", "year_desc", "year_asc"]).optional(),
|
|
166
170
|
limit: z.number().int().min(1).max(50).optional().describe("Results per page, default 10"),
|
|
167
171
|
page: z.number().int().min(1).optional(),
|