@modelcontextprotocol/server-pdf 1.1.2 → 1.2.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/server.d.ts CHANGED
@@ -63,4 +63,25 @@ export interface PdfCache {
63
63
  * - CACHE_MAX_LIFETIME_MS from creation (absolute timeout)
64
64
  */
65
65
  export declare function createPdfCache(): PdfCache;
66
- export declare function createServer(): McpServer;
66
+ export interface CreateServerOptions {
67
+ /**
68
+ * Whether to honour MCP roots sent by the client.
69
+ *
70
+ * When a server is exposed over HTTP, the connecting client is
71
+ * typically remote and may advertise `roots` that refer to
72
+ * directories on the **client's** file system. Because the server
73
+ * resolves those paths locally, accepting them by default would give
74
+ * the remote client access to arbitrary directories on the
75
+ * **server's** machine.
76
+ *
77
+ * For stdio the client is typically local (e.g. Claude Desktop on the
78
+ * same machine), so roots are safe and enabled by default.
79
+ *
80
+ * Set this to `true` for HTTP only when you trust the client, or
81
+ * pass the `--use-client-roots` CLI flag.
82
+ *
83
+ * @default false
84
+ */
85
+ useClientRoots?: boolean;
86
+ }
87
+ export declare function createServer(options?: CreateServerOptions): McpServer;