@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.
- package/dist/server.js +6 -1
- 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
|
}
|