offerguard-mcp-server 0.3.0 → 0.3.1
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/README.md +5 -5
- package/package.json +1 -1
- package/src/server.js +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ OfferGuard MCP Server provides real MCP tools for internship offer risk auditing
|
|
|
4
4
|
|
|
5
5
|
## Tools
|
|
6
6
|
|
|
7
|
-
- `offerguard_audit`: all-in-one workflow tool for XFYun Agent workflow nodes. Input: `
|
|
7
|
+
- `offerguard_audit`: all-in-one workflow tool for XFYun Agent workflow nodes. Input: `raw_input`.
|
|
8
8
|
- `risk_term_matcher`: matches risky JD terms and returns evidence.
|
|
9
9
|
- `internship_compliance_checker`: checks internship red lines such as unpaid trials, deposits, training loans, work hours, salary payment, and IP ownership.
|
|
10
10
|
- `offer_score_calculator`: calculates seven-dimension scores, overall score, risk level, and route.
|
|
@@ -17,7 +17,7 @@ For XFYun workflow MCP nodes, prefer the single entry tool:
|
|
|
17
17
|
{
|
|
18
18
|
"tool": "offerguard_audit",
|
|
19
19
|
"arguments": {
|
|
20
|
-
"
|
|
20
|
+
"raw_input": "{{开始 / AGENT_USER_INPUT}}"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
```
|
|
@@ -75,7 +75,7 @@ http://127.0.0.1:3000/health
|
|
|
75
75
|
## NPM Usage
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
npx -y offerguard-mcp-server@0.3.
|
|
78
|
+
npx -y offerguard-mcp-server@0.3.1
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
For MCP stdio clients:
|
|
@@ -85,7 +85,7 @@ For MCP stdio clients:
|
|
|
85
85
|
"mcpServers": {
|
|
86
86
|
"OfferGuard": {
|
|
87
87
|
"command": "npx",
|
|
88
|
-
"args": ["-y", "offerguard-mcp-server@0.3.
|
|
88
|
+
"args": ["-y", "offerguard-mcp-server@0.3.1"]
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -99,4 +99,4 @@ For MCP stdio clients:
|
|
|
99
99
|
- stdio initialization and `tools/list`.
|
|
100
100
|
- Calls to all four tools.
|
|
101
101
|
- Low/medium/high-risk demo cases.
|
|
102
|
-
- `offerguard_audit`
|
|
102
|
+
- `offerguard_audit` uses workflow-safe `raw_input`, bound to `Start / AGENT_USER_INPUT` in XFYun.
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./offerguard-tools.js";
|
|
15
15
|
|
|
16
16
|
const SERVICE_NAME = "OfferGuardMCP";
|
|
17
|
-
const SERVICE_VERSION = "0.3.
|
|
17
|
+
const SERVICE_VERSION = "0.3.1";
|
|
18
18
|
|
|
19
19
|
function jsonToolResult(result) {
|
|
20
20
|
return {
|
|
@@ -37,12 +37,12 @@ export function createOfferGuardMcpServer() {
|
|
|
37
37
|
server.registerTool(
|
|
38
38
|
"offerguard_audit",
|
|
39
39
|
{
|
|
40
|
-
description: "All-in-one OfferGuard audit for XFYun workflow MCP nodes. It accepts
|
|
40
|
+
description: "All-in-one OfferGuard audit for XFYun workflow MCP nodes. It accepts raw_input and returns route, scores, risk terms, compliance flags, negotiation cards, and MCP audit summary.",
|
|
41
41
|
inputSchema: {
|
|
42
|
-
|
|
42
|
+
raw_input: z
|
|
43
43
|
.string()
|
|
44
44
|
.min(1)
|
|
45
|
-
.describe("Raw user input from the Agent workflow, including JD, resume/profile, preferences, and risk tolerance.")
|
|
45
|
+
.describe("Raw user input from the Agent workflow, including JD, resume/profile, preferences, and risk tolerance. Bind this to Start / AGENT_USER_INPUT in XFYun.")
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
async input => jsonToolResult(auditOfferGuardInput(input))
|