@remit/mcp-server 0.5.0 → 0.5.2
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/auth/database.d.ts +2 -2
- package/dist/auth/database.js +1 -1
- package/dist/read-tools.js +4 -3
- package/package.json +1 -1
package/dist/auth/database.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Db, type SqliteHandle } from "@remit/drizzle-service/sqlite";
|
|
2
|
-
export type McpAuthDb = Db
|
|
2
|
+
export type McpAuthDb = Db;
|
|
3
3
|
export declare const refuseSharedTableWrites: (db: McpAuthDb) => McpAuthDb;
|
|
4
|
-
export declare const openMcpAuthDatabase: (filename: string) => SqliteHandle
|
|
4
|
+
export declare const openMcpAuthDatabase: (filename: string) => SqliteHandle;
|
package/dist/auth/database.js
CHANGED
|
@@ -19,4 +19,4 @@ export const refuseSharedTableWrites = (db) => new Proxy(db, {
|
|
|
19
19
|
};
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
|
-
export const openMcpAuthDatabase = (filename) => openSqlite({ filename, mode: "create"
|
|
22
|
+
export const openMcpAuthDatabase = (filename) => openSqlite({ filename, mode: "create" });
|
package/dist/read-tools.js
CHANGED
|
@@ -3,7 +3,8 @@ import { AddressRole, ContentDisposition, MediaType, } from "@remit/domain-enums
|
|
|
3
3
|
import { materializeBodyParts, ownedMessages } from "@remit/mailbox-service";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export const MAX_BODY_BYTES = 20 * 1024;
|
|
6
|
-
const DEFAULT_PAGE_SIZE =
|
|
6
|
+
const DEFAULT_PAGE_SIZE = 50;
|
|
7
|
+
const MAX_PAGE_SIZE = 50;
|
|
7
8
|
const READ_ONLY = { readOnlyHint: true, openWorldHint: false };
|
|
8
9
|
const asJson = (value) => ({
|
|
9
10
|
content: [{ type: "text", text: JSON.stringify(value) }],
|
|
@@ -12,9 +13,9 @@ const pageSize = z
|
|
|
12
13
|
.number()
|
|
13
14
|
.int()
|
|
14
15
|
.min(1)
|
|
15
|
-
.max(
|
|
16
|
+
.max(MAX_PAGE_SIZE)
|
|
16
17
|
.optional()
|
|
17
|
-
.describe(`Page size, default ${DEFAULT_PAGE_SIZE}`);
|
|
18
|
+
.describe(`Page size, default ${DEFAULT_PAGE_SIZE}, at most ${MAX_PAGE_SIZE}`);
|
|
18
19
|
const continuationToken = z
|
|
19
20
|
.string()
|
|
20
21
|
.optional()
|