@remit/mcp-server 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/server.js +6 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -5,8 +5,13 @@ import { MCP_READ_SCOPE, MCP_RULES_SCOPE } from "./auth/scopes.js";
5
5
  import { registerFilterTools } from "./filter-tools.js";
6
6
  import { registerFolderTools } from "./folder-tools.js";
7
7
  import { registerReadTools } from "./read-tools.js";
8
+ const unusedJsonSchemaValidator = {
9
+ getValidator: () => {
10
+ throw new Error("JSON Schema validation is unused by this server: tools validate input with zod and declare no output schema");
11
+ },
12
+ };
8
13
  const buildServer = (principal, deps) => {
9
- const server = new McpServer({ name: "remit-reader", version: "1.0.0" });
14
+ const server = new McpServer({ name: "remit-reader", version: "1.0.0" }, { jsonSchemaValidator: unusedJsonSchemaValidator });
10
15
  if (principal.scopes.includes(MCP_READ_SCOPE)) {
11
16
  registerReadTools(server, deps, deriveAccountConfigId(principal.userId));
12
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/mcp-server",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The remit MCP server: mail tools over streamable HTTP and the OAuth authorization server that guards them.",
5
5
  "type": "module",
6
6
  "exports": {