@aventara/mcp 1.0.0-rc.3 → 1.0.0-rc.4
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/CHANGELOG.md +20 -0
- package/dist/mcp.binder.js +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @aventara/mcp
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d10639a: Faster reads. The read-only copies stages are told cost about half what they did: a read with a computed field
|
|
8
|
+
copies each row in one pass, a row with several computed fields shares its nested objects between the stages'
|
|
9
|
+
copies, and after hooks share one frozen copy of the result. A row whose computed field returns a value at once no
|
|
10
|
+
longer waits a turn per row. The MCP endpoint builds its JSON Schema validator once instead of on every request.
|
|
11
|
+
What stages are told, the order they run in and what a request answers are unchanged.
|
|
12
|
+
- Updated dependencies [e3d03a7]
|
|
13
|
+
- Updated dependencies [d10639a]
|
|
14
|
+
- Updated dependencies [f67e68c]
|
|
15
|
+
- Updated dependencies [708556c]
|
|
16
|
+
- Updated dependencies [3a0dfca]
|
|
17
|
+
- Updated dependencies [99169d2]
|
|
18
|
+
- Updated dependencies [0fd2608]
|
|
19
|
+
- Updated dependencies [154e440]
|
|
20
|
+
- Updated dependencies [2fcffdb]
|
|
21
|
+
- @aventara/core@1.0.0-rc.4
|
|
22
|
+
|
|
3
23
|
## 1.0.0-rc.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/mcp.binder.js
CHANGED
|
@@ -3,6 +3,7 @@ import { AvProtocol, } from "@aventara/core/protocol";
|
|
|
3
3
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
4
4
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
5
5
|
import { CallToolRequestSchema, ErrorCode, ListResourcesRequestSchema, ListToolsRequestSchema, McpError, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
6
|
+
import { AjvJsonSchemaValidator } from "@modelcontextprotocol/sdk/validation/ajv";
|
|
6
7
|
import { authorizedAccess, jsonAnswer, loopbackAccess, metadataAnswer, metadataPathOf, } from "./endpoint-access.policy.js";
|
|
7
8
|
import { translateOperationCall, translateTransactionCall, } from "./tool-call.translator.js";
|
|
8
9
|
import { CONTRACT_RESOURCE_URI, compileToolCatalog, OPERATION_FAMILIES, TRANSACTION_TOOL, } from "./tool-catalog.compiler.js";
|
|
@@ -31,6 +32,7 @@ export function bind(framework) {
|
|
|
31
32
|
}).body,
|
|
32
33
|
maxRequestBytes: agent.limits.maxRequestBytes,
|
|
33
34
|
reportFailure: mcpFailureReporterOf(framework),
|
|
35
|
+
schemaValidator: new AjvJsonSchemaValidator(),
|
|
34
36
|
};
|
|
35
37
|
const routes = Object.freeze([
|
|
36
38
|
Object.freeze({
|
|
@@ -186,6 +188,7 @@ function serverFor(bound, headers, state) {
|
|
|
186
188
|
const server = new Server({ name: "aventara", title: "Aventara", version: bound.identity.hash }, {
|
|
187
189
|
capabilities: { tools: {}, resources: {} },
|
|
188
190
|
instructions: SERVER_INSTRUCTIONS,
|
|
191
|
+
jsonSchemaValidator: bound.schemaValidator,
|
|
189
192
|
});
|
|
190
193
|
const options = state === undefined ? {} : { state };
|
|
191
194
|
server.setRequestHandler(ListToolsRequestSchema, guarded(bound, () => ({ tools: bound.tools })));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aventara/mcp",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "The MCP server for an Aventara application: its agent layer as Model Context Protocol tools.",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"CHANGELOG.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aventara/core": "1.0.0-rc.
|
|
25
|
+
"@aventara/core": "1.0.0-rc.4",
|
|
26
26
|
"@modelcontextprotocol/sdk": "1.30.1",
|
|
27
27
|
"zod": "^4.6.5"
|
|
28
28
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@aventara/testing": "1.0.0-rc.
|
|
33
|
+
"@aventara/testing": "1.0.0-rc.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "node ../../scripts/build/build-output.cleaner.ts dist && tsc -p tsconfig.json --removeComments --declaration false && tsc -p tsconfig.json --emitDeclarationOnly && node ../../scripts/build/declaration-comments.sanitizer.ts dist",
|