@miraigent/free-ai-ops-mcp 0.1.6 → 0.1.8

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,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.8] - 2026-06-12
4
+
5
+ ### Added
6
+
7
+ - Added a copy-ready prompt_risk_review example for developers checking
8
+ customer-facing prompts before AI use.
9
+ - Added README input/output for the prompt risk workflow and a matching npm
10
+ example script.
11
+
12
+ ## [0.1.7] - 2026-06-10
13
+
14
+ ### Added
15
+
16
+ - Added Claude Desktop and Cursor MCP configuration example to README so
17
+ developers can copy-paste the mcpServers block directly.
18
+ - Added npm keywords: claude-desktop, cursor-mcp, mcp-tools, ai-agent-tools, npx.
19
+
3
20
  ## [0.1.6] - 2026-06-08
4
21
 
5
22
  ### Added
package/README.md CHANGED
@@ -21,6 +21,28 @@ first, download the free review kit:
21
21
 
22
22
  https://miraigent.gumroad.com/l/human-review-gate-ai-drafts?utm_source=github&utm_medium=readme&utm_campaign=free-ai-ops-mcp-013
23
23
 
24
+ ## Use With Claude Desktop or Cursor
25
+
26
+ Add to your `claude_desktop_config.json` or Cursor MCP settings:
27
+
28
+ {
29
+ "mcpServers": {
30
+ "miraigent-free-ai-ops-mcp": {
31
+ "command": "npx",
32
+ "args": ["-y", "@miraigent/free-ai-ops-mcp"]
33
+ }
34
+ }
35
+ }
36
+
37
+ After restarting Claude Desktop or Cursor, the four tools
38
+ (`human_review_gate`, `faq_candidate_review`, `ai_safe_crm_note`,
39
+ `prompt_risk_review`) will be available in the MCP tools panel.
40
+
41
+ Claude Desktop config location:
42
+
43
+ - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
44
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
45
+
24
46
  ## Who This Helps
25
47
 
26
48
  - Developers adding review gates to AI agents or MCP tools.
@@ -92,6 +114,35 @@ Use this as a small public proof before building a larger AI support workflow.
92
114
  See examples/human-review-gate/ for copy-ready JSON-RPC examples and a sample
93
115
  decision log that match the free Gumroad kit.
94
116
 
117
+ ## Check A Prompt Before AI Use
118
+
119
+ Use prompt_risk_review before a support, CRM, FAQ, or workflow prompt is sent to
120
+ AI. It helps developers decide whether a prompt can proceed with a checklist,
121
+ needs human review, or should stop before use because it touches sensitive data
122
+ or customer-facing output.
123
+
124
+ Example input:
125
+
126
+ {
127
+ "operation": "support automation",
128
+ "promptSummary": "Draft a customer reply from inquiry details and suggest the next support step.",
129
+ "dataTypes": ["customer email", "inquiry body", "plan name"],
130
+ "customerFacing": true,
131
+ "riskLevel": "medium"
132
+ }
133
+
134
+ Expected result:
135
+
136
+ {
137
+ "recommendation": "human_review_required",
138
+ "riskFlags": ["customer_facing", "sensitive_data_possible"],
139
+ "boundary": "This tool is a prompt risk helper. It is not legal advice and does not call an AI API."
140
+ }
141
+
142
+ Run the copy-ready example:
143
+
144
+ npm run example:prompt-risk-review
145
+
95
146
  ## Launch Flow
96
147
 
97
148
  See LAUNCH_FLOW.md for the first public posting plan, issue collection flow, and
@@ -118,6 +169,10 @@ Run the public FREE-004 example:
118
169
 
119
170
  npm run example:human-review-gate
120
171
 
172
+ Run the prompt risk review example:
173
+
174
+ npm run example:prompt-risk-review
175
+
121
176
  ## npm Package
122
177
 
123
178
  Package name: @miraigent/free-ai-ops-mcp
@@ -0,0 +1,33 @@
1
+ # Prompt Risk Review Example
2
+
3
+ This example shows how to call the public prompt_risk_review MCP tool before an
4
+ operational prompt is sent to AI.
5
+
6
+ Use it when a support, CRM, FAQ, or workflow automation prompt might include
7
+ customer-facing output or sensitive data.
8
+
9
+ ## Run
10
+
11
+ From the repository root:
12
+
13
+ npm run example:prompt-risk-review
14
+
15
+ The example sends sample-request.jsonl to the MCP server and prints the
16
+ prompt_risk_review result.
17
+
18
+ ## What To Look For
19
+
20
+ The sample includes a customer-facing support operation and customer email data,
21
+ so the tool should return:
22
+
23
+ - recommendation: human_review_required or stop_before_ai_use
24
+ - riskFlags: customer_facing and sensitive_data_possible
25
+ - saferNextStep: a human-reviewed data-handling step before real use
26
+
27
+ ## Safe Use
28
+
29
+ Use synthetic examples only. Do not paste private customer records, secrets,
30
+ contracts, payment details, or internal policy text into public issues,
31
+ examples, or screenshots.
32
+
33
+ This is an operations review helper, not legal or compliance advice.
@@ -0,0 +1,28 @@
1
+ import { spawn } from 'node:child_process';
2
+ import fs from 'node:fs';
3
+
4
+ const child = spawn(process.execPath, ['mcp/free-ai-ops-server.mjs'], {
5
+ stdio: ['pipe', 'pipe', 'inherit']
6
+ });
7
+
8
+ const request = fs.readFileSync('examples/prompt-risk-review/sample-request.jsonl', 'utf8');
9
+ let stdout = '';
10
+
11
+ child.stdout.on('data', (chunk) => {
12
+ stdout += chunk;
13
+ });
14
+
15
+ child.stdin.write(request.trim() + '\n');
16
+ child.stdin.end();
17
+
18
+ await new Promise((resolve, reject) => {
19
+ child.on('error', reject);
20
+ child.on('close', (code) => {
21
+ if (code !== 0) reject(new Error('server exited with ' + code));
22
+ else resolve();
23
+ });
24
+ });
25
+
26
+ const response = JSON.parse(stdout.trim());
27
+ const payload = JSON.parse(response.result.content[0].text);
28
+ console.log(JSON.stringify(payload, null, 2));
@@ -0,0 +1 @@
1
+ {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"prompt_risk_review","arguments":{"operation":"support automation","promptSummary":"Draft a customer reply from inquiry details and suggest the next support step.","dataTypes":["customer email","inquiry body","plan name"],"customerFacing":true,"riskLevel":"medium"}}}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const serverInfo = { name: 'miraigent-free-ai-ops-mcp', version: '0.1.6' };
3
+ const serverInfo = { name: 'miraigent-free-ai-ops-mcp', version: '0.1.8' };
4
4
 
5
5
  const tools = [
6
6
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miraigent/free-ai-ops-mcp",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
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",
@@ -24,6 +24,7 @@
24
24
  "check": "node --check mcp/free-ai-ops-server.mjs && node --check scripts/smoke-test.mjs && node --check scripts/secret-scan.mjs && node scripts/secret-scan.mjs",
25
25
  "test": "node scripts/smoke-test.mjs",
26
26
  "example:human-review-gate": "node examples/human-review-gate/run-example.mjs",
27
+ "example:prompt-risk-review": "node examples/prompt-risk-review/run-example.mjs",
27
28
  "mcp": "node mcp/free-ai-ops-server.mjs"
28
29
  },
29
30
  "keywords": [
@@ -43,7 +44,12 @@
43
44
  "workflow-automation",
44
45
  "review-gate",
45
46
  "human-in-the-loop",
46
- "developer-tools"
47
+ "developer-tools",
48
+ "claude-desktop",
49
+ "cursor-mcp",
50
+ "mcp-tools",
51
+ "ai-agent-tools",
52
+ "npx"
47
53
  ],
48
54
  "repository": {
49
55
  "type": "git",