parseapi-mcp 1.7.0 → 1.7.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/dist/{chunk-XLQITELE.js → chunk-SCQMK735.js} +24 -1
- package/dist/http.js +1 -1
- package/dist/registry.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +1 -1
|
@@ -871,6 +871,7 @@ function registerDiscovery(server, operations, mode, apiVersion) {
|
|
|
871
871
|
const all = [...operations.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
872
872
|
const reviewed = Object.keys(policies).filter((name) => operations.has(name)).sort();
|
|
873
873
|
server.registerTool("discover", {
|
|
874
|
+
title: "Discover ParseAPI operations",
|
|
874
875
|
description: "Find ParseAPI operations by keyword, or describe one by its exact name. Returns inputs and reviewed capability, freshness, uncertainty, billing and access policies. Metadata only, no API request or usage charge. Use preflight for effective credential permissions and account-specific cost estimates. Use operation to get full detail before lookup.",
|
|
875
876
|
inputSchema: z.object({
|
|
876
877
|
query: z.string().trim().min(1).max(256).optional().describe("Keywords such as mailbox, DNS, or population"),
|
|
@@ -916,6 +917,7 @@ function registerDiscovery(server, operations, mode, apiVersion) {
|
|
|
916
917
|
});
|
|
917
918
|
if (mode !== "compact") return;
|
|
918
919
|
server.registerTool("lookup", {
|
|
920
|
+
title: "Run a ParseAPI lookup",
|
|
919
921
|
description: "Run one ParseAPI operation found with discover. Pass its exact name and arguments. Uses the same validation, API 2.0.0 contract, credentials and billing as the named lookup. Reads can consume pooled or paid units. Ordinary lookups can retry twice, metered checks default to no retries.",
|
|
920
922
|
inputSchema: z.object({ operation: z.string().min(1).max(64), arguments: object2 }),
|
|
921
923
|
annotations: { readOnlyHint: true, idempotentHint: false }
|
|
@@ -942,6 +944,7 @@ var task = z2.strictObject({
|
|
|
942
944
|
});
|
|
943
945
|
function registerPreflight(server, client, transport) {
|
|
944
946
|
server.registerTool("preflight", {
|
|
947
|
+
title: "Estimate ParseAPI task usage",
|
|
945
948
|
description: "Estimate whether your secret key permits a proposed Email, Domain, DNS, MX or Country task, its advisory capacity, and additional USD charges under accepted terms. Supply operation counts and optional Deep, without lookup inputs. Uses default SDK retries: up to three attempts per ordinary lookup and one per Email Deep lookup. Authenticated metadata request, no lookup units or paid checks. Reserves no units or money and does not enforce a budget. Check permitted, cost.status, capacity and budget before lookup.",
|
|
946
949
|
inputSchema: task,
|
|
947
950
|
annotations: { readOnlyHint: true, idempotentHint: true }
|
|
@@ -957,7 +960,7 @@ function registerPreflight(server, client, transport) {
|
|
|
957
960
|
}
|
|
958
961
|
|
|
959
962
|
// src/registry.ts
|
|
960
|
-
var VERSION = "1.7.
|
|
963
|
+
var VERSION = "1.7.1";
|
|
961
964
|
var API_VERSION = "2.0.0";
|
|
962
965
|
var US_ROUTING_NOTICE = "Routing reference attribution: https://parseapi.com/legal/attribution#routing-numbers";
|
|
963
966
|
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";
|
|
@@ -966,6 +969,25 @@ var lat = z3.number().min(-90).max(90).describe("Latitude in decimal degrees");
|
|
|
966
969
|
var lon = z3.number().min(-180).max(180).describe("Longitude in decimal degrees");
|
|
967
970
|
var iso2 = (what) => z3.string().describe(`ISO 3166-1 alpha-2 ${what}, e.g. US`);
|
|
968
971
|
var countryOpt = z3.string().optional().describe("ISO2, ISO3, or a country name. Optional when the lookup is unique.");
|
|
972
|
+
var titleWords = {
|
|
973
|
+
ip: "IP",
|
|
974
|
+
asn: "ASN",
|
|
975
|
+
id: "ID",
|
|
976
|
+
dns: "DNS",
|
|
977
|
+
mx: "MX",
|
|
978
|
+
vat: "VAT",
|
|
979
|
+
iban: "IBAN",
|
|
980
|
+
npi: "NPI",
|
|
981
|
+
naics: "NAICS",
|
|
982
|
+
vin: "VIN",
|
|
983
|
+
bin: "BIN",
|
|
984
|
+
us: "US",
|
|
985
|
+
ach: "ACH",
|
|
986
|
+
url: "URL",
|
|
987
|
+
hlr: "HLR",
|
|
988
|
+
mac: "MAC",
|
|
989
|
+
useragent: "User Agent"
|
|
990
|
+
};
|
|
969
991
|
var languageTools = /* @__PURE__ */ new Set([
|
|
970
992
|
"ip",
|
|
971
993
|
"ip_self",
|
|
@@ -1052,6 +1074,7 @@ function buildServer(key, transport, options = {}) {
|
|
|
1052
1074
|
server.registerTool(
|
|
1053
1075
|
name,
|
|
1054
1076
|
{
|
|
1077
|
+
title: name.split("_").map((word) => titleWords[word] ?? word.charAt(0).toUpperCase() + word.slice(1)).join(" "),
|
|
1055
1078
|
description,
|
|
1056
1079
|
inputSchema: schema,
|
|
1057
1080
|
annotations: { readOnlyHint: true }
|
package/dist/http.js
CHANGED
package/dist/registry.js
CHANGED
package/dist/stdio.js
CHANGED
package/package.json
CHANGED