@formfeed/mcp 0.3.8 → 0.3.9

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.
@@ -81449,7 +81449,9 @@ var encoder2 = new TextEncoder();
81449
81449
  // packages/mcp/src/lib/server.ts
81450
81450
  import { z as z2 } from "zod";
81451
81451
  var CONVERT_LIMIT_BYTES = 20 * 1024 * 1024;
81452
- var SERVER_INFO = { name: "formfeed", version: "0.3.8" };
81452
+ var SERVER_INFO = { name: "formfeed", version: "0.3.9" };
81453
+ var READS = { readOnlyHint: true, destructiveHint: false, openWorldHint: false };
81454
+ var CREATES = { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false };
81453
81455
  var engineSchema = z2.enum(["jinja2", "liquid", "handlebars"]);
81454
81456
  var outputSchema = z2.enum(outputFormats);
81455
81457
  var kindSchema = z2.enum(["pdf", "image", "docx", "pptx"]);
@@ -81504,7 +81506,7 @@ function createFormfeedServer(options) {
81504
81506
  tag: z2.string().optional(),
81505
81507
  q: z2.string().optional().describe("Search in name and slug")
81506
81508
  },
81507
- annotations: { readOnlyHint: true }
81509
+ annotations: READS
81508
81510
  },
81509
81511
  async (args2) => {
81510
81512
  try {
@@ -81521,7 +81523,7 @@ function createFormfeedServer(options) {
81521
81523
  title: "Get the data schema of a template",
81522
81524
  description: "JSON Schema of the `data` object a template expects, plus the sample data it was designed with. Use it to build the data for render.",
81523
81525
  inputSchema: { template: z2.string().describe("Template slug or tpl_ id") },
81524
- annotations: { readOnlyHint: true }
81526
+ annotations: READS
81525
81527
  },
81526
81528
  async ({ template }) => {
81527
81529
  try {
@@ -81547,7 +81549,7 @@ function createFormfeedServer(options) {
81547
81549
  engine: engineSchema.optional().describe("Required with html"),
81548
81550
  data: z2.record(z2.string(), z2.unknown()).optional()
81549
81551
  },
81550
- annotations: { readOnlyHint: true }
81552
+ annotations: READS
81551
81553
  },
81552
81554
  async ({ template, html, engine, data }) => {
81553
81555
  try {
@@ -81605,7 +81607,7 @@ function createFormfeedServer(options) {
81605
81607
  locale: z2.string().optional().describe("BCP 47 tag for helpers and translations, e.g. de-DE"),
81606
81608
  wait: z2.boolean().default(true).describe("Wait for the render to finish (sync renders finish immediately)")
81607
81609
  },
81608
- annotations: { readOnlyHint: false, idempotentHint: false }
81610
+ annotations: CREATES
81609
81611
  },
81610
81612
  async ({ template, html, engine, data, output, filename, locale, wait }) => {
81611
81613
  try {
@@ -81647,7 +81649,7 @@ function createFormfeedServer(options) {
81647
81649
  single_page_sheets: z2.boolean().optional().describe("Each spreadsheet sheet on one page"),
81648
81650
  filename: z2.string().optional().describe("Name of the PDF")
81649
81651
  },
81650
- annotations: { readOnlyHint: false, idempotentHint: false }
81652
+ annotations: CREATES
81651
81653
  },
81652
81654
  async (args2) => {
81653
81655
  try {
@@ -81696,7 +81698,7 @@ function createFormfeedServer(options) {
81696
81698
  title: "Get a render",
81697
81699
  description: "Status, download URL and error of a render by id (rnd_\u2026).",
81698
81700
  inputSchema: { id: z2.string() },
81699
- annotations: { readOnlyHint: true }
81701
+ annotations: READS
81700
81702
  },
81701
81703
  async ({ id }) => {
81702
81704
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formfeed/mcp",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "mcpName": "io.github.formfeed-dev/formfeed",
5
5
  "description": "Model Context Protocol server for Formfeed: list templates, read data schemas, validate and render documents from AI agents.",
6
6
  "license": "MIT",