parseapi-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 +8 -1
- package/dist/{chunk-MZR3GHLE.js → chunk-3CF6NRFS.js} +22 -4
- package/dist/http.js +1 -1
- package/dist/registry.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -80,6 +80,13 @@ Example tool arguments:
|
|
|
80
80
|
| `time` | `{"timezone":"America/New_York","at":"2026-09-05T09:00:00","to":"Asia/Tokyo"}` |
|
|
81
81
|
| `time` | `{"lat":40.71,"lon":-74.01}` |
|
|
82
82
|
| `date` | `{"date":"03/04/2026","format":"dmy"}` |
|
|
83
|
+
| `elevation` | `{"lat":35.2271,"lon":-80.8431}` |
|
|
84
|
+
| `elevation` | `{"points":"35.2271,-80.8431|40.7128,-74.006"}` |
|
|
85
|
+
| `elevation` | `{"path":"35.2271,-80.8431|35.5951,-82.5515","samples":100}` |
|
|
86
|
+
|
|
87
|
+
Elevation accepts exactly one of `lat` and `lon`, `points`, or `path` with `samples`. A point list supports up to 512 coordinates as `lat,lon` pairs separated by `|`, or `enc:` followed by a Google encoded polyline, with at most 12000 characters. The `points` response array preserves input order and duplicate coordinates. Each sample includes meters, feet and grid resolution in meters. Unknown samples stay null. A list uses one pooled request, with JSON POST selected automatically for long URLs.
|
|
88
|
+
|
|
89
|
+
A path uses the same string formats with 2-512 vertices and a required integer `samples` count from 2 to 512. The response `points` include both endpoints, spaced uniformly by cumulative great-circle distance along the path. Each segment follows the shortest arc. A segment with antipodal endpoints is rejected because it does not define a unique arc. A path uses one pooled request. `samples` is invalid with a single coordinate or a point list.
|
|
83
90
|
|
|
84
91
|
Australian `postal` lookup returns core `localities` with suburb choices (`city`, `state`, `state_name`). Null or an omitted field means unknown, while `[]` means the reviewed reference has no eligible choices. A single choice can coexist with `city: null`. Ask for the user's suburb choice and preserve manual entry. These are geographic choices, not mailing-address verification. AU Postal tool results include a separate source notice after the JSON. [G-NAF source, adaptations and licence](https://parseapi.com/legal/attribution#postal-au).
|
|
85
92
|
|
|
@@ -120,7 +127,7 @@ The estimate allows up to three attempts per ordinary lookup and one per Email D
|
|
|
120
127
|
For a compact tool catalog, set `PARSEAPI_MCP_MODE=compact` on the MCP process:
|
|
121
128
|
|
|
122
129
|
```bash
|
|
123
|
-
PARSEAPI_MCP_MODE=compact npx -y parseapi-mcp@1.
|
|
130
|
+
PARSEAPI_MCP_MODE=compact npx -y parseapi-mcp@1.5.0
|
|
124
131
|
```
|
|
125
132
|
|
|
126
133
|
Set `PARSEAPI_KEY` in the process environment for lookups. Compact mode advertises three tools, `discover`, `preflight` and `lookup`. After discovering an operation, pass its exact name and arguments:
|
|
@@ -372,7 +372,7 @@ function registerPreflight(server, client, transport) {
|
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
// src/registry.ts
|
|
375
|
-
var VERSION = "1.
|
|
375
|
+
var VERSION = "1.5.0";
|
|
376
376
|
var API_VERSION = "2.0.0";
|
|
377
377
|
var AU_POSTAL_NOTICE = "Incorporates or developed using G-NAF \xA9 Geoscape Australia licensed by the Commonwealth of Australia under the Open Geo-coded National Address File (G-NAF) End User Licence Agreement. Geographic choices are not mailing-address verification. Source, adaptations and licence: https://parseapi.com/legal/attribution#postal-au";
|
|
378
378
|
var deep = z3.boolean().optional().describe("Include the nested deep object when available. Pricing depends on the operation.");
|
|
@@ -706,9 +706,27 @@ function buildServer(key, transport, options = {}) {
|
|
|
706
706
|
);
|
|
707
707
|
tool(
|
|
708
708
|
"elevation",
|
|
709
|
-
"Elevation in meters
|
|
710
|
-
{
|
|
711
|
-
|
|
709
|
+
"Elevation in meters and feet with grid resolution in meters. Choose lat and lon for one sample, points for supplied coordinates in order, or path with samples for evenly spaced great-circle samples including both endpoints. Lists and paths use one pooled request. Unknown elevations stay null.",
|
|
710
|
+
{
|
|
711
|
+
lat: lat.optional(),
|
|
712
|
+
lon: lon.optional(),
|
|
713
|
+
points: z3.string().min(1).max(12e3).optional().describe("lat,lon pairs separated by |, or enc: followed by a Google polyline. At most 512 points and 12000 characters. Omit lat and lon."),
|
|
714
|
+
path: z3.string().min(1).max(12e3).optional().describe("Path with 2-512 vertices as lat,lon pairs separated by |, or enc: followed by a Google polyline. At most 12000 characters. Segments follow the shortest great-circle arc. Segments with antipodal endpoints are invalid. Requires samples. Omit lat, lon and points."),
|
|
715
|
+
samples: z3.number().int().min(2).max(512).optional().describe("Number of evenly spaced samples along the path, including both endpoints. Required with path and invalid without it.")
|
|
716
|
+
},
|
|
717
|
+
(c, a, request) => {
|
|
718
|
+
if (a.path !== void 0) {
|
|
719
|
+
return c.elevation.path(a.path, a.samples, request);
|
|
720
|
+
}
|
|
721
|
+
if (a.points !== void 0) {
|
|
722
|
+
return c.elevation.points(a.points, request);
|
|
723
|
+
}
|
|
724
|
+
return c.elevation(a.lat, a.lon, request);
|
|
725
|
+
},
|
|
726
|
+
(schema) => schema.refine(
|
|
727
|
+
(args) => args.path !== void 0 ? args.samples !== void 0 && args.lat === void 0 && args.lon === void 0 && args.points === void 0 : args.samples === void 0 && (args.points !== void 0 ? args.lat === void 0 && args.lon === void 0 : args.lat !== void 0 && args.lon !== void 0),
|
|
728
|
+
{ message: "Pass lat and lon, points, or path with samples." }
|
|
729
|
+
)
|
|
712
730
|
);
|
|
713
731
|
tool(
|
|
714
732
|
"weather",
|
package/dist/http.js
CHANGED
package/dist/registry.js
CHANGED
package/dist/stdio.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parseapi-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"mcpName": "com.parseapi/mcp",
|
|
5
5
|
"description": "Official ParseAPI MCP server. Look up places, addresses, company numbers, email, phone, weather, dates and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
52
52
|
"@modelcontextprotocol/node": "^2.0.0",
|
|
53
|
-
"@parseapi/sdk": "^1.
|
|
53
|
+
"@parseapi/sdk": "^1.5.0",
|
|
54
54
|
"zod": "^4.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|