@mebular/mcp 0.2.1 → 0.2.2
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/package.json +3 -3
- package/src/serve.mjs +4 -1
- package/src/version.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mebular/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Mebular MCP server(stdio + Streamable HTTP):把 Mebular 记忆能力暴露给任意 MCP client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mebular/core": "^0.2.
|
|
32
|
+
"@mebular/core": "^0.2.2",
|
|
33
33
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
34
34
|
"zod": "^4.6.7",
|
|
35
|
-
"@mebular/fleet": "^0.2.
|
|
35
|
+
"@mebular/fleet": "^0.2.2"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/serve.mjs
CHANGED
|
@@ -298,8 +298,11 @@ export function consoleSecurityHeaders(res, { tls = false, embed = false, loopba
|
|
|
298
298
|
res.setHeader('referrer-policy', 'no-referrer');
|
|
299
299
|
const frameable = embed === true && loopback === true;
|
|
300
300
|
if (!frameable) res.setHeader('x-frame-options', 'DENY');
|
|
301
|
+
// DSH Web uses a loopback HTTP origin; DSH Desktop's top-level page is
|
|
302
|
+
// `dsh-app://app`. Both are explicit DSH embed hosts; ordinary browser
|
|
303
|
+
// navigation and non-embed requests remain denied.
|
|
301
304
|
const frameAncestors = frameable
|
|
302
|
-
? 'http://127.0.0.1:* http://localhost:*'
|
|
305
|
+
? 'http://127.0.0.1:* http://localhost:* dsh-app://app'
|
|
303
306
|
: "'none'";
|
|
304
307
|
res.setHeader(
|
|
305
308
|
'content-security-policy',
|
package/src/version.mjs
CHANGED