@reactionary/mcp 0.10.33 → 0.10.35

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.
@@ -9,7 +9,8 @@ import {
9
9
  import {
10
10
  createInitialRequestContext,
11
11
  MemoryCache,
12
- SessionSchema
12
+ SessionSchema,
13
+ traceProtocolInvocation
13
14
  } from "@reactionary/core";
14
15
  import * as z from "zod";
15
16
  import {
@@ -131,16 +132,29 @@ class ReactionaryMCPServer {
131
132
  inputSchema,
132
133
  outputSchema: toMcpOutputSchema(tool.entrypoint.outputSchema)
133
134
  },
134
- async (args) => {
135
- const result = await callReactionaryTool(
136
- tool,
137
- inputSchema ? args : void 0
138
- );
139
- if (sessionId) {
140
- await this.sessionStore.put(sessionId, requestContext.session);
141
- }
142
- return resultToCallToolResult(result);
143
- }
135
+ async (args) => traceProtocolInvocation(
136
+ {
137
+ protocol: "mcp",
138
+ operation: `tools/${tool.name}`,
139
+ attributes: {
140
+ "labels.capability": tool.entrypoint.capabilityName,
141
+ "labels.method": tool.entrypoint.methodName
142
+ }
143
+ },
144
+ async () => {
145
+ const result = await callReactionaryTool(
146
+ tool,
147
+ inputSchema ? args : void 0
148
+ );
149
+ if (sessionId) {
150
+ await this.sessionStore.put(sessionId, requestContext.session);
151
+ }
152
+ return resultToCallToolResult(result);
153
+ },
154
+ (callToolResult) => ({
155
+ "labels.status": callToolResult.isError ? "error" : "success"
156
+ })
157
+ )
144
158
  );
145
159
  }
146
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/mcp",
3
- "version": "0.10.33",
3
+ "version": "0.10.35",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -14,14 +14,14 @@
14
14
  "dependencies": {
15
15
  "@modelcontextprotocol/node": "2.1.0",
16
16
  "@modelcontextprotocol/server": "2.2.0",
17
- "@reactionary/algolia": "0.10.33",
18
- "@reactionary/commercetools": "0.10.33",
19
- "@reactionary/core": "0.10.33",
20
- "@reactionary/fake": "0.10.33",
21
- "@reactionary/magento": "0.10.33",
22
- "@reactionary/medusa": "0.10.33",
23
- "@reactionary/meilisearch": "0.10.33",
24
- "@reactionary/unomi": "0.10.33",
17
+ "@reactionary/algolia": "0.10.35",
18
+ "@reactionary/commercetools": "0.10.35",
19
+ "@reactionary/core": "0.10.35",
20
+ "@reactionary/fake": "0.10.35",
21
+ "@reactionary/magento": "0.10.35",
22
+ "@reactionary/medusa": "0.10.35",
23
+ "@reactionary/meilisearch": "0.10.35",
24
+ "@reactionary/unomi": "0.10.35",
25
25
  "dotenv": "^17.2.2",
26
26
  "zod": "4.1.9"
27
27
  },