@miraigent/free-ai-ops-mcp 0.1.7 → 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,14 @@
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
+
3
12
  ## [0.1.7] - 2026-06-10
4
13
 
5
14
  ### Added
package/README.md CHANGED
@@ -114,6 +114,35 @@ Use this as a small public proof before building a larger AI support workflow.
114
114
  See examples/human-review-gate/ for copy-ready JSON-RPC examples and a sample
115
115
  decision log that match the free Gumroad kit.
116
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
+
117
146
  ## Launch Flow
118
147
 
119
148
  See LAUNCH_FLOW.md for the first public posting plan, issue collection flow, and
@@ -140,6 +169,10 @@ Run the public FREE-004 example:
140
169
 
141
170
  npm run example:human-review-gate
142
171
 
172
+ Run the prompt risk review example:
173
+
174
+ npm run example:prompt-risk-review
175
+
143
176
  ## npm Package
144
177
 
145
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.7' };
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.7",
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": [