@talonic/mcp 0.1.51 → 0.1.52
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/content.js +4 -4
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +17 -5
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/server.js +17 -5
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -840,9 +840,13 @@ var DESCRIPTION5 = [
|
|
|
840
840
|
"STATUS: stable.",
|
|
841
841
|
"",
|
|
842
842
|
"List all saved schemas in the user's Talonic workspace.",
|
|
843
|
-
"Returns each schema
|
|
844
|
-
"
|
|
845
|
-
"
|
|
843
|
+
"Returns a COMPACT SUMMARY of each schema: id (UUID), short_id (SCH-XXXXXXXX), name,",
|
|
844
|
+
"description, version, and field_count. Either id form is accepted by talonic_extract's",
|
|
845
|
+
"`schema_id` parameter, so you can extract with a saved schema straight from this list.",
|
|
846
|
+
"",
|
|
847
|
+
"The full JSON Schema definition for each field is intentionally NOT included here \u2014 for",
|
|
848
|
+
"many schemas that payload is large and gets truncated by some clients. To inspect a",
|
|
849
|
+
"schema's full field definitions, read the `talonic://schemas` resource.",
|
|
846
850
|
"",
|
|
847
851
|
"USE WHEN:",
|
|
848
852
|
"- The user asks what schemas they have, or asks to see existing schemas.",
|
|
@@ -882,10 +886,18 @@ var outputSchema5 = {
|
|
|
882
886
|
next_cursor: z.string().nullable().optional()
|
|
883
887
|
}).optional().describe("Cursor-based pagination metadata.")
|
|
884
888
|
};
|
|
889
|
+
var LIST_ITEM_OMIT = /* @__PURE__ */ new Set(["definition", "links"]);
|
|
885
890
|
async function handleListSchemas(talonic) {
|
|
886
891
|
try {
|
|
887
892
|
const result = await talonic.schemas.list();
|
|
888
|
-
|
|
893
|
+
const data = Array.isArray(result?.data) ? result.data.map((schema) => {
|
|
894
|
+
const summary = {};
|
|
895
|
+
for (const [key, value] of Object.entries(schema)) {
|
|
896
|
+
if (!LIST_ITEM_OMIT.has(key)) summary[key] = value;
|
|
897
|
+
}
|
|
898
|
+
return summary;
|
|
899
|
+
}) : result?.data;
|
|
900
|
+
return jsonOk({ ...result, data });
|
|
889
901
|
} catch (err) {
|
|
890
902
|
return toolError(err);
|
|
891
903
|
}
|
|
@@ -1298,7 +1310,7 @@ function registerToMarkdown(server, getTalonic) {
|
|
|
1298
1310
|
|
|
1299
1311
|
// package.json
|
|
1300
1312
|
var package_default = {
|
|
1301
|
-
version: "0.1.
|
|
1313
|
+
version: "0.1.52"};
|
|
1302
1314
|
|
|
1303
1315
|
// src/version.ts
|
|
1304
1316
|
var VERSION = package_default.version;
|