@su-sws/synthetic-web-team-mcp 0.1.1 → 0.2.0
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 +1 -1
- package/package.json +2 -2
- package/src/scaffold.mjs +14 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
MCP server exposing Stanford Web Services standards to any MCP client.
|
|
4
4
|
|
|
5
5
|
**A second entry point, never a requirement.** Everything this server exposes is
|
|
6
|
-
also a plain file under
|
|
6
|
+
also a plain file under `.sws/standards/` that an agent can read directly. If the
|
|
7
7
|
server will not start, nothing else stops working.
|
|
8
8
|
|
|
9
9
|
## Add it to a client
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@su-sws/synthetic-web-team-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "MCP server exposing Stanford Web Services standards, the Global Footer contract, Decanter tokens, and the advisory compliance report to any MCP client.",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
19
|
-
"@su-sws/synthetic-web-team": "^0.
|
|
19
|
+
"@su-sws/synthetic-web-team": "^0.2.0",
|
|
20
20
|
"yaml": "^2.8.1",
|
|
21
21
|
"zod": "^4.1.13"
|
|
22
22
|
},
|
package/src/scaffold.mjs
CHANGED
|
@@ -67,19 +67,22 @@ export function scaffold(defaultRoot, { path, answers, editors, write = false, m
|
|
|
67
67
|
|
|
68
68
|
const c = r.counts;
|
|
69
69
|
const head = r.written
|
|
70
|
-
? (c.created === 0 && c.updated === 0
|
|
70
|
+
? (c.created === 0 && c.updated === 0 && !c.merged && !c.moved
|
|
71
71
|
? `Already installed in ${r.root}. ${c.unchanged + (c.preserved ?? 0)} files, nothing to change.`
|
|
72
72
|
: `Installed into ${r.root}. ${c.created} created, ${c.updated} updated, ${c.unchanged} unchanged` +
|
|
73
|
-
(c.preserved ? `, ${c.preserved} preserved` : '') +
|
|
74
|
-
|
|
73
|
+
(c.preserved ? `, ${c.preserved} preserved` : '') +
|
|
74
|
+
(c.merged ? `, ${c.merged} merged into the project's own file, which kept its content` : '') + '.' +
|
|
75
|
+
(c.moved ? ` ${c.moved} moved from standards/ to .sws/standards/.` : ''))
|
|
76
|
+
: `DRY RUN. Nothing was written. ${c.files} files would be installed into ${r.root}.` +
|
|
77
|
+
(r.moved?.length ? ` ${r.moved.length} would move from standards/ to .sws/standards/.` : '');
|
|
75
78
|
|
|
76
79
|
const parts = [head, ''];
|
|
77
80
|
|
|
78
81
|
parts.push(`Compliance tier: **${r.tier.tier}** — ${r.tier.because}`);
|
|
79
82
|
if (r.tier.tier !== 'low') {
|
|
80
83
|
parts.push(`This is above a basic static site. A Data Risk Assessment may be required`,
|
|
81
|
-
`before deploy. See standards/policy/privacy.md and route via`,
|
|
82
|
-
|
|
84
|
+
`before deploy. See .sws/standards/policy/privacy.md and route via`,
|
|
85
|
+
`.sws/standards/policy/escalation.md.`);
|
|
83
86
|
}
|
|
84
87
|
parts.push('');
|
|
85
88
|
|
|
@@ -95,9 +98,14 @@ export function scaffold(defaultRoot, { path, answers, editors, write = false, m
|
|
|
95
98
|
``);
|
|
96
99
|
}
|
|
97
100
|
|
|
101
|
+
// `update-references` carries the file and line of each reference that is
|
|
102
|
+
// holding a move back. Without them, the caller is told to fix references it
|
|
103
|
+
// has no way to find.
|
|
104
|
+
const refs = (n) => (n.references ?? []).map((x) =>
|
|
105
|
+
`\n - \`${x.file}${x.line ? `:${x.line}` : ''}\` ${x.text}`).join('');
|
|
98
106
|
parts.push(`## Next`, ...r.next.map((n) =>
|
|
99
107
|
`- **${n.kind}**${n.path ? ` \`${n.path}\`` : ''}${n.command ? ` \`${n.command}\`` : ''}` +
|
|
100
|
-
`${n.skill ? ` skill \`${n.skill}\`` : ''}\n ${n.why}`));
|
|
108
|
+
`${n.skill ? ` skill \`${n.skill}\`` : ''}\n ${n.why}${refs(n)}`));
|
|
101
109
|
|
|
102
110
|
if (!r.written) {
|
|
103
111
|
parts.push('', `To apply this, call again with \`write: true\`.`);
|