@miraigent/free-ai-ops-mcp 0.1.35 → 0.1.37
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.37] - 2026-07-12
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added smoke-test coverage that verifies unsupported JSON-RPC methods return a
|
|
8
|
+
request-scoped error instead of a successful result.
|
|
9
|
+
|
|
10
|
+
## [0.1.36] - 2026-07-11
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added smoke-test coverage that verifies unknown MCP tool calls return a
|
|
15
|
+
JSON-RPC error with the request ID instead of being treated as a successful
|
|
16
|
+
tool result.
|
|
17
|
+
|
|
3
18
|
## [0.1.35] - 2026-07-10
|
|
4
19
|
|
|
5
20
|
### Changed
|
|
@@ -44,6 +44,15 @@ In raw JSON-RPC output, the tool result is wrapped by MCP as `content[0].text`.
|
|
|
44
44
|
Parse that text value as JSON, then check `gateStatus` before connecting a real
|
|
45
45
|
workflow or changing a desktop client config.
|
|
46
46
|
|
|
47
|
+
For a terminal-only check, you can read just the final response line from the
|
|
48
|
+
public sample and print the parsed tool result:
|
|
49
|
+
|
|
50
|
+
npm run mcp < examples/mcp-json-rpc-session/sample-session.jsonl | tail -n 1 | node -e 'process.stdin.on("data", c => { const r = JSON.parse(c); console.log(JSON.parse(r.result.content[0].text)); })'
|
|
51
|
+
|
|
52
|
+
That should print a public synthetic `human_review_gate` result with
|
|
53
|
+
`gateStatus: "stop"`. Use only the bundled sample input for this quick check,
|
|
54
|
+
not private customer records or desktop client logs.
|
|
55
|
+
|
|
47
56
|
If those fields appear in the terminal but not in Claude Desktop, Cursor, or
|
|
48
57
|
another client, the package is likely running and the next thing to check is the
|
|
49
58
|
client config, restart behavior, or command path.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miraigent/free-ai-ops-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "Free MCP server for developers adding human review gates, prompt risk checks, FAQ review, and CRM note safety to AI tools.",
|
|
5
5
|
"homepage": "https://github.com/Miraigent/miraigent-free-ai-ops-mcp",
|
|
6
6
|
"type": "module",
|
package/scripts/smoke-test.mjs
CHANGED
|
@@ -205,3 +205,29 @@ assert.equal(
|
|
|
205
205
|
promptRiskToolResult.boundary,
|
|
206
206
|
'This tool is a prompt risk helper. It is not legal advice and does not call an AI API.'
|
|
207
207
|
);
|
|
208
|
+
|
|
209
|
+
const unknownToolResponses = await runServerWithRequests([
|
|
210
|
+
JSON.stringify({
|
|
211
|
+
jsonrpc: '2.0',
|
|
212
|
+
id: 7,
|
|
213
|
+
method: 'tools/call',
|
|
214
|
+
params: { name: 'unknown_public_tool', arguments: {} }
|
|
215
|
+
})
|
|
216
|
+
]);
|
|
217
|
+
assert.equal(unknownToolResponses.length, 1);
|
|
218
|
+
assert.equal(unknownToolResponses[0].id, 7);
|
|
219
|
+
assert.equal(unknownToolResponses[0].error.code, -32000);
|
|
220
|
+
assert.equal(unknownToolResponses[0].error.message, 'Unknown tool: unknown_public_tool');
|
|
221
|
+
|
|
222
|
+
const unsupportedMethodResponses = await runServerWithRequests([
|
|
223
|
+
JSON.stringify({
|
|
224
|
+
jsonrpc: '2.0',
|
|
225
|
+
id: 8,
|
|
226
|
+
method: 'resources/list',
|
|
227
|
+
params: {}
|
|
228
|
+
})
|
|
229
|
+
]);
|
|
230
|
+
assert.equal(unsupportedMethodResponses.length, 1);
|
|
231
|
+
assert.equal(unsupportedMethodResponses[0].id, 8);
|
|
232
|
+
assert.equal(unsupportedMethodResponses[0].error.code, -32000);
|
|
233
|
+
assert.equal(unsupportedMethodResponses[0].error.message, 'Unsupported method: resources/list');
|