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